ARM: tegra11: dalmore: Add core EDP limits initialization
Alex Frid [Sat, 17 Nov 2012 06:13:38 +0000 (22:13 -0800)]
Bug 1165638

Change-Id: I5194de9f292c0a21fc262b80be07ab534755f92c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/164833
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

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

index 57b4844..c74f0d1 100644 (file)
@@ -1169,7 +1169,6 @@ int __init dalmore_suspend_init(void)
 
 int __init dalmore_edp_init(void)
 {
-#ifdef CONFIG_TEGRA_EDP_LIMITS
        unsigned int regulator_mA;
 
        regulator_mA = get_maximum_cpu_current_supported();
@@ -1177,9 +1176,15 @@ int __init dalmore_edp_init(void)
                regulator_mA = 15000;
 
        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;
 }