linux_dsm_epyc7002/arch/x86/platform/intel-mid/device_libs
David Cohen 40a96d54ee intel_mid: Move platform device setups to their own platform_<device>.* files
As Intel rolling out more SoC's after Moorestown, we need to
re-structure the code in a way that is backward compatible and easy to
expand. This patch implements a flexible way to support multiple boards
and devices.

This patch does not add any new functional support. It just refactors
the existing code to increase the modularity and decrease the code
duplication for supporting multiple soc's and boards.

Currently intel-mid.c has both board and soc related code in one file.
This patch moves the board related code to new files and let linker
script to create SFI devite table following this:

1. Move the SFI device specific code to
   arch/x86/platform/intel-mid/device-libs/platform_<device>.*
   A new device file is added for every supported device. This code will
   get conditionally compiled by using corresponding device driver
   CONFIG option.

2. Move the device_ids location to .x86_intel_mid_dev.init section by
   using new sfi_device() macro.

This patch was based on previous code from Sathyanarayanan Kuppuswamy.

Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: http://lkml.kernel.org/r/1382049336-21316-13-git-send-email-david.a.cohen@linux.intel.com
Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2013-10-17 16:41:50 -07:00
..
Makefile intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_bma023.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_emc1403.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_gpio_keys.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_ipc.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_ipc.h intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_lis331.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_max3111.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_max7315.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_mpu3050.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_msic_audio.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_msic_battery.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_msic_gpio.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_msic_ocd.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_msic_power_btn.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_msic_thermal.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_msic.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_msic.h intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_pmic_gpio.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_tc35876x.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00
platform_tca6416.c intel_mid: Move platform device setups to their own platform_<device>.* files 2013-10-17 16:41:50 -07:00