arm: tegra: cardhu: Set LDO2 to 1200mV for E1208-A03
Laxman Dewangan [Wed, 17 Aug 2011 06:50:06 +0000 (11:50 +0530)]
The ldo2 power rail should be set to 1200mV on E1208-A03 based
pmu.

bug 863728

Original-Change-Id: I7730443bc052348a082d52a73e4f521ec34202f7
Reviewed-on: http://git-master/r/47491
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Vivek Aseeja <vaseeja@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: Rfc2975d5b80492523a4a767c001a8e22c9decaa7

arch/arm/mach-tegra/board-cardhu-power.c
arch/arm/mach-tegra/board-cardhu.h

index 319b9b1..dec55c0 100644 (file)
@@ -384,6 +384,13 @@ int __init cardhu_regulator_init(void)
        tegra_get_board_info(&board_info);
        tegra_get_pmu_board_info(&pmu_board_info);
 
+       /* PMU-E1208-A03, the ldo2 should be set to 1200mV */
+       if ((pmu_board_info.board_id == BOARD_E1208) &&
+               (pmu_board_info.fab == BOARD_FAB_A03)) {
+               pdata_ldo2_0.regulator.constraints.min_uV = 1200000;
+               pdata_ldo2_0.regulator.constraints.max_uV = 1200000;
+       }
+
        if ((board_info.board_id == BOARD_E1198) ||
                (board_info.board_id == BOARD_E1291)) {
                if (board_info.sku & SKU_DCDC_TPS62361_SUPPORT) {
index 3ee3fe6..e11ebe6 100644 (file)
@@ -33,6 +33,7 @@
 #define BOARD_E1291   0x0C5B
 #define BOARD_PM267   0x0243
 #define BOARD_PM269   0x0245
+#define BOARD_E1208   0x0C08
 
 /* SKU Information */
 #define SKU_DCDC_TPS62361_SUPPORT      0x1