Refactored board files
authorGerman Monroy <german.monroy@intel.com>
Fri, 13 Apr 2012 20:30:32 +0000 (13:30 -0700)
committerbuildbot <buildbot@intel.com>
Sat, 14 Apr 2012 07:10:41 +0000 (00:10 -0700)
commit55c1ac6df8bfaf210eae8caab9f987d1f69623f6
tree5a8d997466e433d3fdd75dce57638752959579b8
parentbc776b3e491c630a2d86ea64db12a374f838a7bd
Refactored board files

BZ:28671

Board files for different platforms have lot of common code, hence
to avoid code duplication we have re-factored the current board
file structure into following.

For each device we have created a separate platform_*device_name*.c,h
files.

platform_*device_name*.c - Contains device init and helper
   functions.
platform_*device_name*.h - Contains extern declaration of init
   function.

Compilation of these platform files is controlled using corresponding
driver CONFIG options.

To use these devices, In board files we will have to just include the
header file and add reference to the device init function in the
device_id structure.

Change-Id: Id8b80d41fd8253b624bf46ef72e41f4a4bb7238d
Signed-off-by: sathyanarayanan kuppuswamy <sathyanarayanan.kuppuswamy@intel.com>
Signed-off-by: German Monroy <german.monroy@intel.com>
Reviewed-on: http://android.intel.com:8080/43334
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Tested-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
111 files changed:
arch/x86/include/asm/intel-mid.h
arch/x86/platform/intel-mid/Makefile
arch/x86/platform/intel-mid/board-blackbay.c
arch/x86/platform/intel-mid/board-ctp.c
arch/x86/platform/intel-mid/board-redridge.c
arch/x86/platform/intel-mid/device_libs/Makefile [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_a1026.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_a1026.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_apds990x.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_apds990x.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_bq24192.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_bq24192.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_btwilink.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_btwilink.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_camera.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_camera.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_clvs_audio.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_clvs_audio.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_cyttsp.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_cyttsp.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_ektf2136.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_ektf2136.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_emc1403.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_emc1403.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_gpio_keys.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_gpio_keys.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_hmc5883.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_hmc5883.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_hsi_modem.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_hsi_modem.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_hsu.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_hsu.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_i2c_gpio.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_i2c_gpio.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_ipc.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_ipc.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_kpd_led.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_kpd_led.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_kpd_led_gpio.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_kpd_led_gpio.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_l3g4200d.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_l3g4200d.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_lis331.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_lis331.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_lis3dh.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_lis3dh.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_lm3554.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_lm3554.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_lsm303.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_lsm303.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_ltr502als.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_ltr502als.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_max11871.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_max11871.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_max17042.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_max17042.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_max3111.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_max3111.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_max7315.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_max7315.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_mid_pwm.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_mid_pwm.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_mpu3050.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_mpu3050.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_ms5607.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_ms5607.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_msic_adc.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_msic_adc.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_msic_audio.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_msic_audio.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_msic_battery.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_msic_battery.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_msic_gpio.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_msic_gpio.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_msic_ocd.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_msic_ocd.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_msic_power_btn.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_msic_power_btn.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_msic_thermal.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_msic_thermal.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_mt9e013.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_mt9e013.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_mt9m114.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_mt9m114.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_mxt224.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_mxt224.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_mxt_ts.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_mxt_ts.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_ov8830.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_ov8830.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_pmic_audio.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_pmic_audio.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_pmic_gpio.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_pmic_gpio.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_pn544.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_pn544.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_s3202.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_s3202.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_smb347.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_smb347.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_switch_mid.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_switch_mid.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_tc35876x.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_tc35876x.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_tca6416.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_tca6416.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_usb_otg.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_usb_otg.h [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_wl12xx.c [new file with mode: 0644]
arch/x86/platform/intel-mid/device_libs/platform_wl12xx.h [new file with mode: 0644]
arch/x86/platform/intel-mid/intel-mid.c