Browse Source

OMAP2+: voltage: enable VC bypass scale method when VC is initialized

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>
Kevin Hilman 14 năm trước cách đây
mục cha
commit
4d47506a85
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      arch/arm/mach-omap2/voltage.c

+ 3 - 1
arch/arm/mach-omap2/voltage.c

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