Skip to content

Commit

Permalink
OMAP2+: voltage: enable VC bypass scale method when VC is initialized
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kevin Hilman committed Sep 15, 2011
1 parent d84adcf commit 4d47506
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/arm/mach-omap2/voltage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4d47506

Please sign in to comment.