arm: tegra: tegratab: disable OC2 powergood alarm
Yong Goo Yi [Tue, 9 Jul 2013 11:26:17 +0000 (20:26 +0900)]
Disable PMIC powergood OC throttle(OC2 for P1640, OC4 for E1569).
PMIC powergood OC makes side effect of throttle SCPU when it's clock delivered from PLLX.
There can be noise during audio playback because of this side effect.

Bug 1322143
Bug 1302149

Change-Id: Ic942ae62940f1a1b0efd3ea68611fecc4e28ab40
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
(cherry picked from commit 1bd9f54ce22f1c3ec06d936a609d14177f2e8eeb)
Reviewed-on: http://git-master/r/302276
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harry Hong <hhong@nvidia.com>

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

index b2c42b4..f79823a 100644 (file)
@@ -926,21 +926,6 @@ static struct soctherm_platform_data tegratab_soctherm_data = {
                                },
                        },
                },
-               [THROTTLE_OC2] = {
-                       .throt_mode = BRIEF,
-                       .polarity = 1,
-                       .intr = true,
-                       .devs = {
-                               [THROTTLE_DEV_CPU] = {
-                                       .enable = true,
-                                       .depth = 50,
-                               },
-                               [THROTTLE_DEV_GPU] = {
-                                       .enable = false,
-                                       .depth = 50,
-                               },
-                       },
-               },
                [THROTTLE_OC4] = {
                        .throt_mode = BRIEF,
                        .polarity = 1,
@@ -966,11 +951,14 @@ int __init tegratab_soctherm_init(void)
 
        tegra_get_board_info(&board_info);
 
-       /* E1569 has only oc4 input for pmu powergood */
+       /*
+        * P1640 has oc4 from ina230. E1569 has oc4 from pmic powergood
+        * Disable oc4 throttle for E1569
+        */
        if (board_info.board_id == BOARD_E1569) {
-               tegratab_soctherm_data.throttle[THROTTLE_OC2]
+               tegratab_soctherm_data.throttle[THROTTLE_OC4]
                        .devs[THROTTLE_DEV_CPU].enable = false;
-               tegratab_soctherm_data.throttle[THROTTLE_OC2]
+               tegratab_soctherm_data.throttle[THROTTLE_OC4]
                        .devs[THROTTLE_DEV_GPU].enable = false;
        }