ARM: tegra: enterprise: allow 3mv tolerance for cpu voltage
Laxman Dewangan [Fri, 22 Jun 2012 06:53:36 +0000 (11:53 +0530)]
Allow 3mv tolerance on minimum voltage side for cpu voltage.
This saves power when system require 900/975mV.

bug 997415

Change-Id: I273cdeda6980f5ddf50be7980bced443b386dae8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/110524
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

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

index bbe39ec..ca39bae 100644 (file)
@@ -741,6 +741,9 @@ int __init enterprise_regulator_init(void)
        pmc_dpd_pads = readl(pmc + PMC_DPD_PADS_ORIDE);
        writel(pmc_dpd_pads & ~PMC_DPD_PADS_ORIDE_BLINK , pmc + PMC_DPD_PADS_ORIDE);
 
+       /* Setting CPU voltage tolerance in lower side for 3000uV */
+       pdata_smps1_common.tolerance_uv = 3000;
+
        /* Disable battery charging if power adapter is connected. */
        if (get_power_supply_type() == POWER_SUPPLY_TYPE_MAINS) {
                bcharger_pdata.num_consumer_supplies = 0;