]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-3.0/pm-wip/voltdm/0111-OMAP2-voltage-enable-VC-bypass-scale-method-when-VC-.patch
linux 3.0: updates
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-3.0 / pm-wip / voltdm / 0111-OMAP2-voltage-enable-VC-bypass-scale-method-when-VC-.patch
1 From 62a89781df3eef1d865b6da4c0714e19dad59535 Mon Sep 17 00:00:00 2001
2 From: Kevin Hilman <khilman@ti.com>
3 Date: Mon, 18 Jul 2011 15:48:22 -0700
4 Subject: [PATCH 111/149] OMAP2+: voltage: enable VC bypass scale method when VC is initialized
6 VC is initialized first, set default scaling method to VC bypass.
7 If/when VP is initialized, default scaling method will be changed to
8 VP force-update.
10 Enabling VC bypass as default as soon as VC is initialized allows for
11 VC bypass scaling to work when no VP is configured/initialized for a
12 given voltage domain.
14 Signed-off-by: Kevin Hilman <khilman@ti.com>
15 ---
16  arch/arm/mach-omap2/voltage.c |    4 +++-
17  1 files changed, 3 insertions(+), 1 deletions(-)
19 diff --git a/arch/arm/mach-omap2/voltage.c b/arch/arm/mach-omap2/voltage.c
20 index c6352e3..e1a22a3 100644
21 --- a/arch/arm/mach-omap2/voltage.c
22 +++ b/arch/arm/mach-omap2/voltage.c
23 @@ -802,8 +802,10 @@ int __init omap_voltage_late_init(void)
24                 if (!voltdm->scalable)
25                         continue;
26  
27 -               if (voltdm->vc)
28 +               if (voltdm->vc) {
29 +                       voltdm->vdd->volt_scale = omap_vc_bypass_scale;
30                         omap_vc_init_channel(voltdm);
31 +               }
32  
33                 if (voltdm->vdd) {
34                         if (omap_vdd_data_configure(voltdm))
35 -- 
36 1.6.6.1