]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
OMAP4: PM: Program correct init voltages for scalable VDDs
authorThara Gopinath <thara@ti.com>
Sat, 29 May 2010 16:32:25 +0000 (22:02 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 22 Dec 2010 22:31:48 +0000 (14:31 -0800)
By default the system boots up at nominal voltage for every
voltage domain in the system. This patch puts vdd_mpu, vdd_iva
and vdd_core to the correct boot up voltage as per the opp tables
specified. This patch implements this by matching the rate of
the main clock of the voltage domain with the opp table and
picking up the correct voltage.

Signed-off-by: Thara Gopinath <thara@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/pm.c

index aac9bacf1bd18cacd679744ec8efae8f5f9078ab..d5a102c71989ae766ee99d9e543e041276823b69 100644 (file)
@@ -227,6 +227,16 @@ static void __init omap3_init_voltages(void)
        omap2_set_init_voltage("core", "l3_ick", l3_dev);
 }
 
+static void __init omap4_init_voltages(void)
+{
+       if (!cpu_is_omap44xx())
+               return;
+
+       omap2_set_init_voltage("mpu", "dpll_mpu_ck", mpu_dev);
+       omap2_set_init_voltage("core", "l3_div_ck", l3_dev);
+       omap2_set_init_voltage("iva", "dpll_iva_m5x2_ck", iva_dev);
+}
+
 static int __init omap2_common_pm_init(void)
 {
        omap2_init_processor_devices();
@@ -247,6 +257,7 @@ static int __init omap2_common_pm_late_init(void)
 
        /* Initialize the voltages */
        omap3_init_voltages();
+       omap4_init_voltages();
 
        /* Smartreflex device init */
        omap_devinit_smartreflex();