new add rk30_factory_adc_battery driver for factorytool

This commit is contained in:
ywj 2012-08-16 14:29:57 +08:00
parent 03d6b5fe19
commit c353c8fed9
4 changed files with 1622 additions and 4 deletions

View File

@ -1316,7 +1316,7 @@ struct rk29_sdmmc_platform_data default_sdmmc1_data = {
* the end of setting for SDMMC devices
**************************************************************************************************/
#ifdef CONFIG_BATTERY_RK30_ADC
#if defined(CONFIG_BATTERY_RK30_ADC)||defined(CONFIG_BATTERY_RK30_ADC_FAC)
static struct rk30_adc_battery_platform_data rk30_adc_battery_platdata = {
.dc_det_pin = RK30_PIN6_PA5,
.batt_low_pin = RK30_PIN6_PA0,
@ -1439,7 +1439,7 @@ static struct platform_device *devices[] __initdata = {
#if defined(CONFIG_SEW868)
&rk30_device_sew868,
#endif
#ifdef CONFIG_BATTERY_RK30_ADC
#if defined(CONFIG_BATTERY_RK30_ADC)||defined(CONFIG_BATTERY_RK30_ADC_FAC)
&rk30_device_adc_battery,
#endif
#ifdef CONFIG_RFKILL_RK

View File

@ -323,15 +323,21 @@ config BATTERY_RK30_ADC
help
Say Y to enable support for the battery on the RK30.
config BATTERY_RK30_ADC_FAC
tristate "RK30 ADC Battery Factory"
depends on ADC_RK30
help
Say Y to enable support for the battery on the RK30.
config BATTERY_RK30_AC_CHARGE
tristate "RK30 AC CHARGE"
depends on BATTERY_RK30_ADC
depends on BATTERY_RK30_ADC||BATTERY_RK30_ADC_FAC
help
say Y to enable suspport for the AC battery charge
config BATTERY_RK30_VOL3V8
tristate "the battery voltage is 3.8V"
depends on BATTERY_RK30_ADC
depends on BATTERY_RK30_ADC||BATTERY_RK30_ADC_FAC
help
say Y to enable suspport for the battery voltage 3.8V

View File

@ -45,3 +45,4 @@ obj-$(CONFIG_TWL6030_BCI_BATTERY) += twl6030_bci_battery.o
obj-$(CONFIG_BATTERY_RK29_ADC) += rk29_adc_battery.o
obj-$(CONFIG_BATTERY_RK30_ADC) += rk30_adc_battery.o
obj-$(CONFIG_POWER_ON_CHARGER_DISPLAY) += rk29_charger_display.o
obj-$(CONFIG_BATTERY_RK30_ADC_FAC) += rk30_factory_adc_battery.o

File diff suppressed because it is too large Load Diff