ARM: tegra: tegratab: Enable Tboard temp shutdown per board revision
Jinyoung Park [Wed, 4 Dec 2013 04:21:02 +0000 (13:21 +0900)]
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>

arch/arm/mach-tegra/board-tegratab-power.c

index 46b3885..575c38e 100644 (file)
@@ -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;