OMAP2+: voltage: enable VC bypass scale method when VC is initialized
authorKevin Hilman <khilman@ti.com>
Mon, 18 Jul 2011 22:48:22 +0000 (15:48 -0700)
committerKevin Hilman <khilman@ti.com>
Thu, 15 Sep 2011 18:39:10 +0000 (11:39 -0700)
VC is initialized first, set default scaling method to VC bypass.
If/when VP is initialized, default scaling method will be changed to
VP force-update.

Enabling VC bypass as default as soon as VC is initialized allows for
VC bypass scaling to work when no VP is configured/initialized for a
given voltage domain.

Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/voltage.c

index c6352e3..e1a22a3 100644 (file)
@@ -802,8 +802,10 @@ int __init omap_voltage_late_init(void)
                if (!voltdm->scalable)
                        continue;
 
-               if (voltdm->vc)
+               if (voltdm->vc) {
+                       voltdm->vdd->volt_scale = omap_vc_bypass_scale;
                        omap_vc_init_channel(voltdm);
+               }
 
                if (voltdm->vdd) {
                        if (omap_vdd_data_configure(voltdm))