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/vc44xx_data.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/vc44xx_data.c')
-rw-r--r-- | arch/arm/mach-omap2/vc44xx_data.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/vc44xx_data.c b/arch/arm/mach-omap2/vc44xx_data.c index 0a4fc37877cc..2740a968145e 100644 --- a/arch/arm/mach-omap2/vc44xx_data.c +++ b/arch/arm/mach-omap2/vc44xx_data.c | |||
@@ -31,9 +31,6 @@ | |||
31 | * XXX This stuff presumably belongs in the vc3xxx.c or vc.c file. | 31 | * XXX This stuff presumably belongs in the vc3xxx.c or vc.c file. |
32 | */ | 32 | */ |
33 | static const struct omap_vc_common omap4_vc_common = { | 33 | static const struct omap_vc_common omap4_vc_common = { |
34 | .smps_sa_reg = OMAP4_PRM_VC_SMPS_SA_OFFSET, | ||
35 | .smps_volra_reg = OMAP4_PRM_VC_VAL_SMPS_RA_VOL_OFFSET, | ||
36 | .smps_cmdra_reg = OMAP4_PRM_VC_VAL_SMPS_RA_CMD_OFFSET, | ||
37 | .bypass_val_reg = OMAP4_PRM_VC_VAL_BYPASS_OFFSET, | 34 | .bypass_val_reg = OMAP4_PRM_VC_VAL_BYPASS_OFFSET, |
38 | .data_shift = OMAP4430_DATA_SHIFT, | 35 | .data_shift = OMAP4430_DATA_SHIFT, |
39 | .slaveaddr_shift = OMAP4430_SLAVEADDR_SHIFT, | 36 | .slaveaddr_shift = OMAP4430_SLAVEADDR_SHIFT, |
@@ -44,7 +41,6 @@ static const struct omap_vc_common omap4_vc_common = { | |||
44 | .cmd_onlp_shift = OMAP4430_ONLP_SHIFT, | 41 | .cmd_onlp_shift = OMAP4430_ONLP_SHIFT, |
45 | .cmd_ret_shift = OMAP4430_RET_SHIFT, | 42 | .cmd_ret_shift = OMAP4430_RET_SHIFT, |
46 | .cmd_off_shift = OMAP4430_OFF_SHIFT, | 43 | .cmd_off_shift = OMAP4430_OFF_SHIFT, |
47 | .cfg_channel_reg = OMAP4_PRM_VC_CFG_CHANNEL_OFFSET, | ||
48 | .i2c_cfg_reg = OMAP4_PRM_VC_CFG_I2C_MODE_OFFSET, | 44 | .i2c_cfg_reg = OMAP4_PRM_VC_CFG_I2C_MODE_OFFSET, |
49 | .i2c_cfg_hsen_mask = OMAP4430_HSMODEEN_MASK, | 45 | .i2c_cfg_hsen_mask = OMAP4430_HSMODEEN_MASK, |
50 | .i2c_mcode_mask = OMAP4430_HSMCODE_MASK, | 46 | .i2c_mcode_mask = OMAP4430_HSMCODE_MASK, |
@@ -54,6 +50,10 @@ static const struct omap_vc_common omap4_vc_common = { | |||
54 | struct omap_vc_channel omap4_vc_mpu = { | 50 | struct omap_vc_channel omap4_vc_mpu = { |
55 | .flags = OMAP_VC_CHANNEL_DEFAULT | OMAP_VC_CHANNEL_CFG_MUTANT, | 51 | .flags = OMAP_VC_CHANNEL_DEFAULT | OMAP_VC_CHANNEL_CFG_MUTANT, |
56 | .common = &omap4_vc_common, | 52 | .common = &omap4_vc_common, |
53 | .smps_sa_reg = OMAP4_PRM_VC_SMPS_SA_OFFSET, | ||
54 | .smps_volra_reg = OMAP4_PRM_VC_VAL_SMPS_RA_VOL_OFFSET, | ||
55 | .smps_cmdra_reg = OMAP4_PRM_VC_VAL_SMPS_RA_CMD_OFFSET, | ||
56 | .cfg_channel_reg = OMAP4_PRM_VC_CFG_CHANNEL_OFFSET, | ||
57 | .cmdval_reg = OMAP4_PRM_VC_VAL_CMD_VDD_MPU_L_OFFSET, | 57 | .cmdval_reg = OMAP4_PRM_VC_VAL_CMD_VDD_MPU_L_OFFSET, |
58 | .smps_sa_mask = OMAP4430_SA_VDD_MPU_L_PRM_VC_SMPS_SA_MASK, | 58 | .smps_sa_mask = OMAP4430_SA_VDD_MPU_L_PRM_VC_SMPS_SA_MASK, |
59 | .smps_volra_mask = OMAP4430_VOLRA_VDD_MPU_L_MASK, | 59 | .smps_volra_mask = OMAP4430_VOLRA_VDD_MPU_L_MASK, |
@@ -63,6 +63,10 @@ struct omap_vc_channel omap4_vc_mpu = { | |||
63 | 63 | ||
64 | struct omap_vc_channel omap4_vc_iva = { | 64 | struct omap_vc_channel omap4_vc_iva = { |
65 | .common = &omap4_vc_common, | 65 | .common = &omap4_vc_common, |
66 | .smps_sa_reg = OMAP4_PRM_VC_SMPS_SA_OFFSET, | ||
67 | .smps_volra_reg = OMAP4_PRM_VC_VAL_SMPS_RA_VOL_OFFSET, | ||
68 | .smps_cmdra_reg = OMAP4_PRM_VC_VAL_SMPS_RA_CMD_OFFSET, | ||
69 | .cfg_channel_reg = OMAP4_PRM_VC_CFG_CHANNEL_OFFSET, | ||
66 | .cmdval_reg = OMAP4_PRM_VC_VAL_CMD_VDD_IVA_L_OFFSET, | 70 | .cmdval_reg = OMAP4_PRM_VC_VAL_CMD_VDD_IVA_L_OFFSET, |
67 | .smps_sa_mask = OMAP4430_SA_VDD_IVA_L_PRM_VC_SMPS_SA_MASK, | 71 | .smps_sa_mask = OMAP4430_SA_VDD_IVA_L_PRM_VC_SMPS_SA_MASK, |
68 | .smps_volra_mask = OMAP4430_VOLRA_VDD_IVA_L_MASK, | 72 | .smps_volra_mask = OMAP4430_VOLRA_VDD_IVA_L_MASK, |
@@ -72,6 +76,10 @@ struct omap_vc_channel omap4_vc_iva = { | |||
72 | 76 | ||
73 | struct omap_vc_channel omap4_vc_core = { | 77 | struct omap_vc_channel omap4_vc_core = { |
74 | .common = &omap4_vc_common, | 78 | .common = &omap4_vc_common, |
79 | .smps_sa_reg = OMAP4_PRM_VC_SMPS_SA_OFFSET, | ||
80 | .smps_volra_reg = OMAP4_PRM_VC_VAL_SMPS_RA_VOL_OFFSET, | ||
81 | .smps_cmdra_reg = OMAP4_PRM_VC_VAL_SMPS_RA_CMD_OFFSET, | ||
82 | .cfg_channel_reg = OMAP4_PRM_VC_CFG_CHANNEL_OFFSET, | ||
75 | .cmdval_reg = OMAP4_PRM_VC_VAL_CMD_VDD_CORE_L_OFFSET, | 83 | .cmdval_reg = OMAP4_PRM_VC_VAL_CMD_VDD_CORE_L_OFFSET, |
76 | .smps_sa_mask = OMAP4430_SA_VDD_CORE_L_0_6_MASK, | 84 | .smps_sa_mask = OMAP4430_SA_VDD_CORE_L_0_6_MASK, |
77 | .smps_volra_mask = OMAP4430_VOLRA_VDD_CORE_L_MASK, | 85 | .smps_volra_mask = OMAP4430_VOLRA_VDD_CORE_L_MASK, |