diff options
author | Kevin Hilman <khilman@ti.com> | 2011-03-22 19:14:57 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-09-15 14:39:10 -0400 |
commit | d84adcf46b9c235d1f4975b72a8c2763dbfb0081 (patch) | |
tree | 76f5d8877a3c99540267fc9fb63cae7e63f61236 /arch/arm/mach-omap2/vc.h | |
parent | ccd5ca7787df8f1bd267b90f03a09c31c160ffe2 (diff) |
OMAP2+: voltage: move VC into struct voltagedomain, misc. renames
Move the VC instance struct from omap_vdd_info into struct voltagedomain.
While moving, perform some misc. renames for readability.
No functional changes.
Summary of renames:
- rename omap_vc_instance to omap_vc_channel, since there is only
one instance of the VC IP and this actually represents channels
using TRM terminology.
- rename 'vc_common' field of VC channel which led to:
s/vc->vc_common/vc->common/
- remove redundant '_data' suffix
- OMAP3: vc1 --> vc_mpu, vc2 --> vc_core
- omap_vc_bypass_scale_voltage() -> omap_vc_bypass_scale()
Signed-off-by: Kevin Hilman <khilman@ti.com>
merge
Diffstat (limited to 'arch/arm/mach-omap2/vc.h')
-rw-r--r-- | arch/arm/mach-omap2/vc.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/arch/arm/mach-omap2/vc.h b/arch/arm/mach-omap2/vc.h index d0bf34831c0b..51d36a80b131 100644 --- a/arch/arm/mach-omap2/vc.h +++ b/arch/arm/mach-omap2/vc.h | |||
@@ -22,7 +22,7 @@ | |||
22 | struct voltagedomain; | 22 | struct voltagedomain; |
23 | 23 | ||
24 | /** | 24 | /** |
25 | * struct omap_vc_common_data - 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 | * @prm_mod: PRM module id used for PRM register access | 28 | * @prm_mod: PRM module id used for PRM register access |
@@ -40,7 +40,7 @@ struct voltagedomain; | |||
40 | * XXX One of cmd_on_mask and cmd_on_shift are not needed | 40 | * XXX One of cmd_on_mask and cmd_on_shift are not needed |
41 | * XXX VALID should probably be a shift, not a mask | 41 | * XXX VALID should probably be a shift, not a mask |
42 | */ | 42 | */ |
43 | struct omap_vc_common_data { | 43 | struct omap_vc_common { |
44 | u32 cmd_on_mask; | 44 | u32 cmd_on_mask; |
45 | u32 valid; | 45 | u32 valid; |
46 | s16 prm_mod; | 46 | s16 prm_mod; |
@@ -57,8 +57,8 @@ struct omap_vc_common_data { | |||
57 | }; | 57 | }; |
58 | 58 | ||
59 | /** | 59 | /** |
60 | * struct omap_vc_instance_data - VC per-instance data | 60 | * struct omap_vc_channel - VC per-instance data |
61 | * @vc_common: pointer to VC common data for this platform | 61 | * @common: pointer to VC common data for this platform |
62 | * @smps_sa_mask: SA* bitmask in the PRM_VC_SMPS_SA register | 62 | * @smps_sa_mask: SA* bitmask in the PRM_VC_SMPS_SA register |
63 | * @smps_volra_mask: VOLRA* bitmask in the PRM_VC_VOL_RA register | 63 | * @smps_volra_mask: VOLRA* bitmask in the PRM_VC_VOL_RA register |
64 | * @smps_sa_shift: SA* field shift in the PRM_VC_SMPS_SA register | 64 | * @smps_sa_shift: SA* field shift in the PRM_VC_SMPS_SA register |
@@ -67,8 +67,8 @@ struct omap_vc_common_data { | |||
67 | * XXX It is not necessary to have both a *_mask and a *_shift - | 67 | * XXX It is not necessary to have both a *_mask and a *_shift - |
68 | * remove one | 68 | * remove one |
69 | */ | 69 | */ |
70 | struct omap_vc_instance_data { | 70 | struct omap_vc_channel { |
71 | const struct omap_vc_common_data *vc_common; | 71 | const struct omap_vc_common *common; |
72 | u32 smps_sa_mask; | 72 | u32 smps_sa_mask; |
73 | u32 smps_volra_mask; | 73 | u32 smps_volra_mask; |
74 | u8 cmdval_reg; | 74 | u8 cmdval_reg; |
@@ -76,12 +76,12 @@ struct omap_vc_instance_data { | |||
76 | u8 smps_volra_shift; | 76 | u8 smps_volra_shift; |
77 | }; | 77 | }; |
78 | 78 | ||
79 | extern struct omap_vc_instance_data omap3_vc1_data; | 79 | extern struct omap_vc_channel omap3_vc_mpu; |
80 | extern struct omap_vc_instance_data omap3_vc2_data; | 80 | extern struct omap_vc_channel omap3_vc_core; |
81 | 81 | ||
82 | extern struct omap_vc_instance_data omap4_vc_mpu_data; | 82 | extern struct omap_vc_channel omap4_vc_mpu; |
83 | extern struct omap_vc_instance_data omap4_vc_iva_data; | 83 | extern struct omap_vc_channel omap4_vc_iva; |
84 | extern struct omap_vc_instance_data omap4_vc_core_data; | 84 | extern struct omap_vc_channel omap4_vc_core; |
85 | 85 | ||
86 | void omap_vc_init_channel(struct voltagedomain *voltdm); | 86 | void omap_vc_init_channel(struct voltagedomain *voltdm); |
87 | int omap_vc_pre_scale(struct voltagedomain *voltdm, | 87 | int omap_vc_pre_scale(struct voltagedomain *voltdm, |
@@ -90,8 +90,8 @@ int omap_vc_pre_scale(struct voltagedomain *voltdm, | |||
90 | void omap_vc_post_scale(struct voltagedomain *voltdm, | 90 | void omap_vc_post_scale(struct voltagedomain *voltdm, |
91 | unsigned long target_volt, | 91 | unsigned long target_volt, |
92 | u8 target_vsel, u8 current_vsel); | 92 | u8 target_vsel, u8 current_vsel); |
93 | int omap_vc_bypass_scale_voltage(struct voltagedomain *voltdm, | 93 | int omap_vc_bypass_scale(struct voltagedomain *voltdm, |
94 | unsigned long target_volt); | 94 | unsigned long target_volt); |
95 | 95 | ||
96 | #endif | 96 | #endif |
97 | 97 | ||