diff options
author | Diwakar Tundlam <dtundlam@nvidia.com> | 2011-10-20 16:43:56 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:50:03 -0800 |
commit | 6965cbe4e2d443931707069c34ef98c70a14e1d2 (patch) | |
tree | 1b31c3677afc5f19c96d7e24367c506f256e367a /arch/arm/mach-tegra/board-enterprise-power.c | |
parent | 1b7773b5b87bc5701998c3a0bcbc3148d93935cd (diff) |
ARM: Tegra: Power: use new api to get cpu regulator max_curr
used when the chip SKU is T33/T33S (cardhu case) or AP33 (enterprise case) to
initialize edp with a higher cpu regulator max_curr value.
bug 888679
Change-Id: Icb50b33b1fc9b1248886e040f4b9b927feee4242
(cherry picked from commit ea572ebf71bbced17f2df2313f03e032949fac68)
Reviewed-on: http://git-master/r/64210
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Rebase-Id: R248e17bf5ab3541dac91815b3cabd0d1dfab8a13
Diffstat (limited to 'arch/arm/mach-tegra/board-enterprise-power.c')
-rw-r--r-- | arch/arm/mach-tegra/board-enterprise-power.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-power.c b/arch/arm/mach-tegra/board-enterprise-power.c index c233e28f5c3d..15c236c30d54 100644 --- a/arch/arm/mach-tegra/board-enterprise-power.c +++ b/arch/arm/mach-tegra/board-enterprise-power.c @@ -542,7 +542,15 @@ int __init enterprise_suspend_init(void) int __init enterprise_edp_init(void) { - tegra_init_cpu_edp_limits(2500); /* 2.5A regulator */ + unsigned int regulator_mA; + + regulator_mA = get_maximum_cpu_current_supported(); + if (!regulator_mA) { + regulator_mA = 2500; /* regular AP30 */ + } + pr_info("%s: CPU regulator %d mA\n", __func__, regulator_mA); + + tegra_init_cpu_edp_limits(regulator_mA); return 0; } #endif |