diff options
author | Kevin Hilman <khilman@ti.com> | 2011-07-20 19:35:46 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-09-15 15:09:22 -0400 |
commit | 5876c940c0dee298e38fbf47ce67c9e220b0572c (patch) | |
tree | f4f9773abbc985e427b6c9892402064a473e9ba6 /arch/arm/mach-omap2/vc.c | |
parent | 6a62b78d9aa6661cae1a7d30b574daf435a14c47 (diff) |
OMAP2+: VC: more registers are per-channel starting with OMAP5
Starting with OMAP5, the following registers are per-channel and not
common to a all VC channels:
- SMPS I2C slave address
- SMPS voltage register address offset
- SMPS cmd/value register address offset
- VC channel configuration register
Move these from the channel-common struct into the per-channel struct
to support OMAP5.
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/vc.c')
-rw-r--r-- | arch/arm/mach-omap2/vc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/vc.c b/arch/arm/mach-omap2/vc.c index 6e586767a904..031d116fbf10 100644 --- a/arch/arm/mach-omap2/vc.c +++ b/arch/arm/mach-omap2/vc.c | |||
@@ -94,7 +94,7 @@ static int omap_vc_config_channel(struct voltagedomain *voltdm) | |||
94 | 94 | ||
95 | voltdm->rmw(CFG_CHANNEL_MASK << vc->cfg_channel_sa_shift, | 95 | voltdm->rmw(CFG_CHANNEL_MASK << vc->cfg_channel_sa_shift, |
96 | vc->cfg_channel << vc->cfg_channel_sa_shift, | 96 | vc->cfg_channel << vc->cfg_channel_sa_shift, |
97 | vc->common->cfg_channel_reg); | 97 | vc->cfg_channel_reg); |
98 | 98 | ||
99 | return 0; | 99 | return 0; |
100 | } | 100 | } |
@@ -319,7 +319,7 @@ void __init omap_vc_init_channel(struct voltagedomain *voltdm) | |||
319 | /* Configure the i2c slave address for this VC */ | 319 | /* Configure the i2c slave address for this VC */ |
320 | voltdm->rmw(vc->smps_sa_mask, | 320 | voltdm->rmw(vc->smps_sa_mask, |
321 | vc->i2c_slave_addr << __ffs(vc->smps_sa_mask), | 321 | vc->i2c_slave_addr << __ffs(vc->smps_sa_mask), |
322 | vc->common->smps_sa_reg); | 322 | vc->smps_sa_reg); |
323 | vc->cfg_channel |= vc_cfg_bits->sa; | 323 | vc->cfg_channel |= vc_cfg_bits->sa; |
324 | 324 | ||
325 | /* | 325 | /* |
@@ -327,13 +327,13 @@ void __init omap_vc_init_channel(struct voltagedomain *voltdm) | |||
327 | */ | 327 | */ |
328 | voltdm->rmw(vc->smps_volra_mask, | 328 | voltdm->rmw(vc->smps_volra_mask, |
329 | vc->volt_reg_addr << __ffs(vc->smps_volra_mask), | 329 | vc->volt_reg_addr << __ffs(vc->smps_volra_mask), |
330 | vc->common->smps_volra_reg); | 330 | vc->smps_volra_reg); |
331 | vc->cfg_channel |= vc_cfg_bits->rav; | 331 | vc->cfg_channel |= vc_cfg_bits->rav; |
332 | 332 | ||
333 | if (vc->cmd_reg_addr) { | 333 | if (vc->cmd_reg_addr) { |
334 | voltdm->rmw(vc->smps_cmdra_mask, | 334 | voltdm->rmw(vc->smps_cmdra_mask, |
335 | vc->cmd_reg_addr << __ffs(vc->smps_cmdra_mask), | 335 | vc->cmd_reg_addr << __ffs(vc->smps_cmdra_mask), |
336 | vc->common->smps_cmdra_reg); | 336 | vc->smps_cmdra_reg); |
337 | vc->cfg_channel |= vc_cfg_bits->rac | vc_cfg_bits->racen; | 337 | vc->cfg_channel |= vc_cfg_bits->rac | vc_cfg_bits->racen; |
338 | } | 338 | } |
339 | 339 | ||