ARM: tegra11: pluto: Add core edp initialization
Alex Frid [Wed, 19 Dec 2012 05:07:45 +0000 (21:07 -0800)]
Change-Id: I7c51acc1c2ff9cc62f699b684b41e5060828f206
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172603
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

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

index a29fc81..f227f69 100644 (file)
@@ -693,7 +693,6 @@ int __init pluto_suspend_init(void)
 
 int __init pluto_edp_init(void)
 {
-#ifdef CONFIG_TEGRA_EDP_LIMITS
        unsigned int regulator_mA;
 
        regulator_mA = get_maximum_cpu_current_supported();
@@ -701,9 +700,15 @@ int __init pluto_edp_init(void)
                regulator_mA = 9000;
 
        pr_info("%s: CPU regulator %d mA\n", __func__, regulator_mA);
-
        tegra_init_cpu_edp_limits(regulator_mA);
-#endif
+
+       regulator_mA = get_maximum_core_current_supported();
+       if (!regulator_mA)
+               regulator_mA = 4000;
+
+       pr_info("%s: core regulator %d mA\n", __func__, regulator_mA);
+       tegra_init_core_edp_limits(regulator_mA);
+
        return 0;
 }