Ardbeg: Add LDO8 tracking flag for TI PMIC Ardbeg
Terry Wang [Wed, 21 Aug 2013 09:03:41 +0000 (17:03 +0800)]
The change is for Ardbeg with TI PMIC E1735.
Add flag to enable LDO8 tracking and to disable LDO8 tracking in LP0.

Bug 1317293

Change-Id: I37aeaee0e21ae41b44592725dad1a10892b19f9f
Signed-off-by: Terry Wang <terwang@nvidia.com>
Reviewed-on: http://git-master/r/264223
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

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

index a22ec09..36ef85a 100644 (file)
@@ -641,6 +641,12 @@ int __init ardbeg_tps65913_regulator_init(void)
         */
        pmc_ctrl = readl(pmc + PMC_CTRL);
        writel(pmc_ctrl | PMC_CTRL_INTR_LOW, pmc + PMC_CTRL);
+
+       /* Tracking configuration */
+       reg_init_data_ti913_ldo8.config_flags =
+               PALMAS_REGULATOR_CONFIG_TRACKING_ENABLE |
+               PALMAS_REGULATOR_CONFIG_SUSPEND_TRACKING_DISABLE;
+
        for (i = 0; i < PALMAS_NUM_REGS ; i++) {
                pmic_ti913_platform.reg_data[i] = ardbeg_1735_reg_data[i];
                pmic_ti913_platform.reg_init[i] = ardbeg_1735_reg_init[i];
@@ -648,6 +654,7 @@ int __init ardbeg_tps65913_regulator_init(void)
 
        /* Set vdd_gpu init uV to 1V */
        reg_idata_ti913_smps123.constraints.init_uV = 900000;
+
        i2c_register_board_info(4, palma_ti913_device,
                        ARRAY_SIZE(palma_ti913_device));
        return 0;