aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/vc.h
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2011-07-20 19:35:46 -0400
committerKevin Hilman <khilman@ti.com>2011-09-15 15:09:22 -0400
commit5876c940c0dee298e38fbf47ce67c9e220b0572c (patch)
treef4f9773abbc985e427b6c9892402064a473e9ba6 /arch/arm/mach-omap2/vc.h
parent6a62b78d9aa6661cae1a7d30b574daf435a14c47 (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.h')
-rw-r--r--arch/arm/mach-omap2/vc.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/vc.h b/arch/arm/mach-omap2/vc.h
index 7ed70e07becf..478bf6b432c4 100644
--- a/arch/arm/mach-omap2/vc.h
+++ b/arch/arm/mach-omap2/vc.h
@@ -25,9 +25,6 @@ struct voltagedomain;
25 * struct omap_vc_common - per-VC register/bitfield data 25 * struct omap_vc_common - per-VC register/bitfield data
26 * @cmd_on_mask: ON bitmask in PRM_VC_CMD_VAL* register 26 * @cmd_on_mask: ON bitmask in PRM_VC_CMD_VAL* register
27 * @valid: VALID bitmask in PRM_VC_BYPASS_VAL register 27 * @valid: VALID bitmask in PRM_VC_BYPASS_VAL register
28 * @smps_sa_reg: Offset of PRM_VC_SMPS_SA reg from PRM start
29 * @smps_volra_reg: Offset of PRM_VC_SMPS_VOL_RA reg from PRM start
30 * @smps_cmdra_reg: Offset of PRM_VC_SMPS_CMD_RA reg from PRM start
31 * @bypass_val_reg: Offset of PRM_VC_BYPASS_VAL reg from PRM start 28 * @bypass_val_reg: Offset of PRM_VC_BYPASS_VAL reg from PRM start
32 * @data_shift: DATA field shift in PRM_VC_BYPASS_VAL register 29 * @data_shift: DATA field shift in PRM_VC_BYPASS_VAL register
33 * @slaveaddr_shift: SLAVEADDR field shift in PRM_VC_BYPASS_VAL register 30 * @slaveaddr_shift: SLAVEADDR field shift in PRM_VC_BYPASS_VAL register
@@ -36,7 +33,6 @@ struct voltagedomain;
36 * @cmd_onlp_shift: ONLP field shift in PRM_VC_CMD_VAL_* register 33 * @cmd_onlp_shift: ONLP field shift in PRM_VC_CMD_VAL_* register
37 * @cmd_ret_shift: RET field shift in PRM_VC_CMD_VAL_* register 34 * @cmd_ret_shift: RET field shift in PRM_VC_CMD_VAL_* register
38 * @cmd_off_shift: OFF field shift in PRM_VC_CMD_VAL_* register 35 * @cmd_off_shift: OFF field shift in PRM_VC_CMD_VAL_* register
39 * @cfg_channel_reg: VC channel configuration register
40 * @i2c_cfg_reg: I2C configuration register offset 36 * @i2c_cfg_reg: I2C configuration register offset
41 * @i2c_cfg_hsen_mask: high-speed mode bit field mask in I2C config register 37 * @i2c_cfg_hsen_mask: high-speed mode bit field mask in I2C config register
42 * @i2c_mcode_mask: MCODE field mask for I2C config register 38 * @i2c_mcode_mask: MCODE field mask for I2C config register
@@ -47,9 +43,6 @@ struct voltagedomain;
47struct omap_vc_common { 43struct omap_vc_common {
48 u32 cmd_on_mask; 44 u32 cmd_on_mask;
49 u32 valid; 45 u32 valid;
50 u8 smps_sa_reg;
51 u8 smps_volra_reg;
52 u8 smps_cmdra_reg;
53 u8 bypass_val_reg; 46 u8 bypass_val_reg;
54 u8 data_shift; 47 u8 data_shift;
55 u8 slaveaddr_shift; 48 u8 slaveaddr_shift;
@@ -58,7 +51,6 @@ struct omap_vc_common {
58 u8 cmd_onlp_shift; 51 u8 cmd_onlp_shift;
59 u8 cmd_ret_shift; 52 u8 cmd_ret_shift;
60 u8 cmd_off_shift; 53 u8 cmd_off_shift;
61 u8 cfg_channel_reg;
62 u8 i2c_cfg_reg; 54 u8 i2c_cfg_reg;
63 u8 i2c_cfg_hsen_mask; 55 u8 i2c_cfg_hsen_mask;
64 u8 i2c_mcode_mask; 56 u8 i2c_mcode_mask;
@@ -82,6 +74,10 @@ struct omap_vc_common {
82 * @smps_volra_mask: VOLRA* bitmask in the PRM_VC_VOL_RA register 74 * @smps_volra_mask: VOLRA* bitmask in the PRM_VC_VOL_RA register
83 * @smps_cmdra_mask: CMDRA* bitmask in the PRM_VC_CMD_RA register 75 * @smps_cmdra_mask: CMDRA* bitmask in the PRM_VC_CMD_RA register
84 * @cmdval_reg: register for on/ret/off voltage level values for this channel 76 * @cmdval_reg: register for on/ret/off voltage level values for this channel
77 * @smps_sa_reg: Offset of PRM_VC_SMPS_SA reg from PRM start
78 * @smps_volra_reg: Offset of PRM_VC_SMPS_VOL_RA reg from PRM start
79 * @smps_cmdra_reg: Offset of PRM_VC_SMPS_CMD_RA reg from PRM start
80 * @cfg_channel_reg: VC channel configuration register
85 * @cfg_channel_sa_shift: bit shift for slave address cfg_channel register 81 * @cfg_channel_sa_shift: bit shift for slave address cfg_channel register
86 * @flags: VC channel-specific flags (optional) 82 * @flags: VC channel-specific flags (optional)
87 */ 83 */
@@ -100,6 +96,10 @@ struct omap_vc_channel {
100 u32 smps_volra_mask; 96 u32 smps_volra_mask;
101 u32 smps_cmdra_mask; 97 u32 smps_cmdra_mask;
102 u8 cmdval_reg; 98 u8 cmdval_reg;
99 u8 smps_sa_reg;
100 u8 smps_volra_reg;
101 u8 smps_cmdra_reg;
102 u8 cfg_channel_reg;
103 u8 cfg_channel_sa_shift; 103 u8 cfg_channel_sa_shift;
104 u8 flags; 104 u8 flags;
105}; 105};