diff options
author | Jinyoung Park <jinyoungp@nvidia.com> | 2013-12-04 13:21:02 +0900 |
---|---|---|
committer | Harry Hong <hhong@nvidia.com> | 2013-12-04 01:29:29 -0800 |
commit | 3f032d63a6b1912da7d82dc4f12fa2fa343d62f8 (patch) | |
tree | 02b369bcf5cd4ce8d6a986e8dcd88ce738997bbb | |
parent | 9c2fae2dde7cdd1ee96f0aead2999b93abd9af8d (diff) |
ARM: tegra: tegratab: Enable Tboard temp shutdown per board revision
Enable Tboard temp shutdown per board revision.
Bug 1366274
Change-Id: I0d6120d3a7a7447a06caf439027dd6751abcc5bc
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/338076
Reviewed-by: Yong Goo Yi <yyi@nvidia.com>
Tested-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-by: Harry Hong <hhong@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/board-tegratab-power.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/board-tegratab-power.c b/arch/arm/mach-tegra/board-tegratab-power.c index 46b38858a0aa..575c38ede345 100644 --- a/arch/arm/mach-tegra/board-tegratab-power.c +++ b/arch/arm/mach-tegra/board-tegratab-power.c @@ -435,9 +435,6 @@ static struct palmas_gpadc_platform_data palmas_adc_pdata = { .ch3_dual_current = true, .extended_delay = true, .iio_maps = palmas_adc_iio_maps, - - .auto_conversion_period_ms = 1000, - .adc_auto_conv1_data = &palmas_adc_auto_conv1_data, }; static struct palmas_pinctrl_config palmas_pincfg[] = { @@ -670,6 +667,15 @@ int __init tegratab_palmas_regulator_init(void) ARRAY_SIZE(tegratab_palmas_clk32k_idata); } + if (board_info.board_id != BOARD_E1569 && + (board_info.board_id == BOARD_P1640 && + (board_info.fab != BOARD_FAB_A00 && + board_info.fab != BOARD_FAB_A01))) { + palmas_adc_pdata.auto_conversion_period_ms = 1000; + palmas_adc_pdata.adc_auto_conv1_data = + &palmas_adc_auto_conv1_data; + } + if (get_androidboot_mode_charger()) palmas_pdata.long_press_delay = PALMAS_LONG_PRESS_KEY_TIME_12SECONDS; |