aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/vc.h
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2011-03-16 16:35:22 -0400
committerKevin Hilman <khilman@ti.com>2011-09-15 14:39:09 -0400
commita7460daf15239563b3e7bb862580f90da78541bd (patch)
tree42faec056fe7dde136dadc6d7ed96861f5431325 /arch/arm/mach-omap2/vc.h
parentfa17f20f686a90004a8af403e24cc8443e8144f3 (diff)
OMAP2+: voltage: move PRCM mod offets into VC/VP structures
Eliminate need for global variables for the various PRM module offsets by making them part of the VP/VC common structures Eventually, these will likely be moved again, or more likely removed when VP/VC code is isolated, but for now just getting rid of them as global variabes so that the voltage domain initialization can be cleaned up. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/vc.h b/arch/arm/mach-omap2/vc.h
index e7767771de49..f7338af13d0b 100644
--- a/arch/arm/mach-omap2/vc.h
+++ b/arch/arm/mach-omap2/vc.h
@@ -23,6 +23,7 @@
23 * struct omap_vc_common_data - per-VC register/bitfield data 23 * struct omap_vc_common_data - per-VC register/bitfield data
24 * @cmd_on_mask: ON bitmask in PRM_VC_CMD_VAL* register 24 * @cmd_on_mask: ON bitmask in PRM_VC_CMD_VAL* register
25 * @valid: VALID bitmask in PRM_VC_BYPASS_VAL register 25 * @valid: VALID bitmask in PRM_VC_BYPASS_VAL register
26 * @prm_mod: PRM module id used for PRM register access
26 * @smps_sa_reg: Offset of PRM_VC_SMPS_SA reg from PRM start 27 * @smps_sa_reg: Offset of PRM_VC_SMPS_SA reg from PRM start
27 * @smps_volra_reg: Offset of PRM_VC_SMPS_VOL_RA reg from PRM start 28 * @smps_volra_reg: Offset of PRM_VC_SMPS_VOL_RA reg from PRM start
28 * @bypass_val_reg: Offset of PRM_VC_BYPASS_VAL reg from PRM start 29 * @bypass_val_reg: Offset of PRM_VC_BYPASS_VAL reg from PRM start
@@ -40,6 +41,7 @@
40struct omap_vc_common_data { 41struct omap_vc_common_data {
41 u32 cmd_on_mask; 42 u32 cmd_on_mask;
42 u32 valid; 43 u32 valid;
44 s16 prm_mod;
43 u8 smps_sa_reg; 45 u8 smps_sa_reg;
44 u8 smps_volra_reg; 46 u8 smps_volra_reg;
45 u8 bypass_val_reg; 47 u8 bypass_val_reg;