OMAP3+: VC: use last nominal voltage setting to get current_vsel
authorKevin Hilman <khilman@ti.com>
Mon, 18 Jul 2011 22:31:00 +0000 (15:31 -0700)
committerKevin Hilman <khilman@ti.com>
Thu, 15 Sep 2011 19:08:58 +0000 (12:08 -0700)
commitd7b0de2b46803062148345ae6a976c1e44a457b6
tree8ba8d6a5623883caa389c05ec80a54992c6e164b
parent8abc0b58fdb89124d8278f110f523b27c666d36c
OMAP3+: VC: use last nominal voltage setting to get current_vsel

Instead of reading current vsel value from the VP's voltage register,
just use current nominal voltage translated into vsel via the PMIC.

Doing this allows VC bypass scaling to work even without a VP configured.

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