ARM: tegra: roth: set SMPS12, 3, 9 to NORMAL mode.
Laxman Dewangan [Wed, 6 Feb 2013 11:21:33 +0000 (16:21 +0530)]
This change sets the smps12, 3 and 9 to run at pfm mode
when working current is below 200mA to save IQ of 11mA.

Bug 1231109

Change-Id: Ie6c006555b5260aec09e6ec86519af46ff94f00d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/197926
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

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

index 9cc116f..8a09d22 100644 (file)
@@ -612,6 +612,11 @@ int __init roth_palmas_regulator_init(void)
                pmic_platform.reg_init[i] = roth_reg_init[i];
        }
 
+       /* Set SMPS12 and 3 to normal mode if it is not there. */
+       reg_idata_smps12.constraints.initial_mode = REGULATOR_MODE_NORMAL;
+       reg_idata_smps3.constraints.initial_mode = REGULATOR_MODE_NORMAL;
+       reg_idata_smps9.constraints.initial_mode = REGULATOR_MODE_NORMAL;
+
        i2c_register_board_info(4, palma_device,
                        ARRAY_SIZE(palma_device));
        return 0;