aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2012-09-25 12:33:47 -0400
committerKevin Hilman <khilman@ti.com>2012-11-05 18:29:46 -0500
commit2ceec7b25c3cde53c68e49d64950f2ad1cab307d (patch)
tree6b16e346a61cc02d49f459bddf1e602417ddf990
parentd3965191a4d28fa6eb875c06e5cfaffa5a8aef29 (diff)
ARM: OMAP4: vc: fix channel configuration
RACEN bit should only be set if the voltage and command register addresses are the same. Signed-off-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
-rw-r--r--arch/arm/mach-omap2/vc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/vc.c b/arch/arm/mach-omap2/vc.c
index 5d5f9e52f89f..d72b787a0d83 100644
--- a/arch/arm/mach-omap2/vc.c
+++ b/arch/arm/mach-omap2/vc.c
@@ -592,9 +592,12 @@ void __init omap_vc_init_channel(struct voltagedomain *voltdm)
592 voltdm->rmw(vc->smps_cmdra_mask, 592 voltdm->rmw(vc->smps_cmdra_mask,
593 vc->cmd_reg_addr << __ffs(vc->smps_cmdra_mask), 593 vc->cmd_reg_addr << __ffs(vc->smps_cmdra_mask),
594 vc->smps_cmdra_reg); 594 vc->smps_cmdra_reg);
595 vc->cfg_channel |= vc_cfg_bits->rac | vc_cfg_bits->racen; 595 vc->cfg_channel |= vc_cfg_bits->rac;
596 } 596 }
597 597
598 if (vc->cmd_reg_addr == vc->volt_reg_addr)
599 vc->cfg_channel |= vc_cfg_bits->racen;
600
598 /* Set up the on, inactive, retention and off voltage */ 601 /* Set up the on, inactive, retention and off voltage */
599 on_vsel = omap_vc_calc_vsel(voltdm, voltdm->vc_param->on); 602 on_vsel = omap_vc_calc_vsel(voltdm, voltdm->vc_param->on);
600 onlp_vsel = omap_vc_calc_vsel(voltdm, voltdm->vc_param->onlp); 603 onlp_vsel = omap_vc_calc_vsel(voltdm, voltdm->vc_param->onlp);