diff options
author | Kevin Hilman <khilman@ti.com> | 2011-03-29 17:36:04 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-09-15 15:08:19 -0400 |
commit | 5892bb1fc6430d086f5c2a4216f9ed00070e31ad (patch) | |
tree | 6a64fdd3e6d4e80cae63c1fa3c947383b1024d7e /arch/arm/mach-omap2/vc.h | |
parent | 78614e0f8f32dca52beebaadfb53c2a3acf1604a (diff) |
OMAP3+: VC: cleanup voltage setup time configuration
- add setup_time field to struct omap_vc_channel (init'd from PMIC data)
- use VC/VP register access helper for read/modify/write
- move VFSM structure from omap_vdd_info into struct voltagedomain
- remove redunant _data suffix from VFSM structures and variables
- remove voltsetup_shift, use ffs() on the mask value to find the shift
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/vc.h b/arch/arm/mach-omap2/vc.h index 43a0c5c2b07a..6e8806b59823 100644 --- a/arch/arm/mach-omap2/vc.h +++ b/arch/arm/mach-omap2/vc.h | |||
@@ -61,6 +61,7 @@ struct omap_vc_common { | |||
61 | * @i2c_slave_addr: I2C slave address of PMIC for this VC channel | 61 | * @i2c_slave_addr: I2C slave address of PMIC for this VC channel |
62 | * @volt_reg_addr: voltage configuration register address | 62 | * @volt_reg_addr: voltage configuration register address |
63 | * @cmd_reg_addr: command configuration register address | 63 | * @cmd_reg_addr: command configuration register address |
64 | * @setup_time: setup time (in sys_clk cycles) of regulator for this channel | ||
64 | * @common: pointer to VC common data for this platform | 65 | * @common: pointer to VC common data for this platform |
65 | * @smps_sa_mask: i2c slave address bitmask in the PRM_VC_SMPS_SA register | 66 | * @smps_sa_mask: i2c slave address bitmask in the PRM_VC_SMPS_SA register |
66 | * @smps_volra_mask: VOLRA* bitmask in the PRM_VC_VOL_RA register | 67 | * @smps_volra_mask: VOLRA* bitmask in the PRM_VC_VOL_RA register |
@@ -72,6 +73,7 @@ struct omap_vc_channel { | |||
72 | u16 i2c_slave_addr; | 73 | u16 i2c_slave_addr; |
73 | u16 volt_reg_addr; | 74 | u16 volt_reg_addr; |
74 | u16 cmd_reg_addr; | 75 | u16 cmd_reg_addr; |
76 | u16 setup_time; | ||
75 | 77 | ||
76 | /* register access data */ | 78 | /* register access data */ |
77 | const struct omap_vc_common *common; | 79 | const struct omap_vc_common *common; |