diff options
author | Benoit Cousson <b-cousson@ti.com> | 2011-03-21 07:11:54 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-09-15 14:39:10 -0400 |
commit | 7e1b94059cea39218071fdb78c4075b83d52e222 (patch) | |
tree | 3de515f7fffe4369a16d7e5ed19010a2da510797 /arch/arm | |
parent | da03ce65b5431245b9cd20db3edaaa6b9f5c8dc1 (diff) |
OMAP4: powerdomain data: add voltage domains
Add voltage domain name to indicate which voltagedomain each
powerdomain is in.
The fixed voltage domain like ldo_wakeup for emu and wkup power
domain is added too.
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
[khilman@ti.com]: renamed wakeup domain: s/ldo_wakeup/wakeup/
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/powerdomains44xx_data.c | 16 | ||||
-rw-r--r-- | arch/arm/mach-omap2/voltagedomains44xx_data.c | 5 |
2 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/powerdomains44xx_data.c b/arch/arm/mach-omap2/powerdomains44xx_data.c index cbce0c9069cd..704664c0e259 100644 --- a/arch/arm/mach-omap2/powerdomains44xx_data.c +++ b/arch/arm/mach-omap2/powerdomains44xx_data.c | |||
@@ -33,6 +33,7 @@ | |||
33 | /* core_44xx_pwrdm: CORE power domain */ | 33 | /* core_44xx_pwrdm: CORE power domain */ |
34 | static struct powerdomain core_44xx_pwrdm = { | 34 | static struct powerdomain core_44xx_pwrdm = { |
35 | .name = "core_pwrdm", | 35 | .name = "core_pwrdm", |
36 | .voltdm = { .name = "core" }, | ||
36 | .prcm_offs = OMAP4430_PRM_CORE_INST, | 37 | .prcm_offs = OMAP4430_PRM_CORE_INST, |
37 | .prcm_partition = OMAP4430_PRM_PARTITION, | 38 | .prcm_partition = OMAP4430_PRM_PARTITION, |
38 | .pwrsts = PWRSTS_RET_ON, | 39 | .pwrsts = PWRSTS_RET_ON, |
@@ -58,6 +59,7 @@ static struct powerdomain core_44xx_pwrdm = { | |||
58 | /* gfx_44xx_pwrdm: 3D accelerator power domain */ | 59 | /* gfx_44xx_pwrdm: 3D accelerator power domain */ |
59 | static struct powerdomain gfx_44xx_pwrdm = { | 60 | static struct powerdomain gfx_44xx_pwrdm = { |
60 | .name = "gfx_pwrdm", | 61 | .name = "gfx_pwrdm", |
62 | .voltdm = { .name = "core" }, | ||
61 | .prcm_offs = OMAP4430_PRM_GFX_INST, | 63 | .prcm_offs = OMAP4430_PRM_GFX_INST, |
62 | .prcm_partition = OMAP4430_PRM_PARTITION, | 64 | .prcm_partition = OMAP4430_PRM_PARTITION, |
63 | .pwrsts = PWRSTS_OFF_ON, | 65 | .pwrsts = PWRSTS_OFF_ON, |
@@ -74,6 +76,7 @@ static struct powerdomain gfx_44xx_pwrdm = { | |||
74 | /* abe_44xx_pwrdm: Audio back end power domain */ | 76 | /* abe_44xx_pwrdm: Audio back end power domain */ |
75 | static struct powerdomain abe_44xx_pwrdm = { | 77 | static struct powerdomain abe_44xx_pwrdm = { |
76 | .name = "abe_pwrdm", | 78 | .name = "abe_pwrdm", |
79 | .voltdm = { .name = "iva" }, | ||
77 | .prcm_offs = OMAP4430_PRM_ABE_INST, | 80 | .prcm_offs = OMAP4430_PRM_ABE_INST, |
78 | .prcm_partition = OMAP4430_PRM_PARTITION, | 81 | .prcm_partition = OMAP4430_PRM_PARTITION, |
79 | .pwrsts = PWRSTS_OFF_RET_ON, | 82 | .pwrsts = PWRSTS_OFF_RET_ON, |
@@ -93,6 +96,7 @@ static struct powerdomain abe_44xx_pwrdm = { | |||
93 | /* dss_44xx_pwrdm: Display subsystem power domain */ | 96 | /* dss_44xx_pwrdm: Display subsystem power domain */ |
94 | static struct powerdomain dss_44xx_pwrdm = { | 97 | static struct powerdomain dss_44xx_pwrdm = { |
95 | .name = "dss_pwrdm", | 98 | .name = "dss_pwrdm", |
99 | .voltdm = { .name = "core" }, | ||
96 | .prcm_offs = OMAP4430_PRM_DSS_INST, | 100 | .prcm_offs = OMAP4430_PRM_DSS_INST, |
97 | .prcm_partition = OMAP4430_PRM_PARTITION, | 101 | .prcm_partition = OMAP4430_PRM_PARTITION, |
98 | .pwrsts = PWRSTS_OFF_RET_ON, | 102 | .pwrsts = PWRSTS_OFF_RET_ON, |
@@ -110,6 +114,7 @@ static struct powerdomain dss_44xx_pwrdm = { | |||
110 | /* tesla_44xx_pwrdm: Tesla processor power domain */ | 114 | /* tesla_44xx_pwrdm: Tesla processor power domain */ |
111 | static struct powerdomain tesla_44xx_pwrdm = { | 115 | static struct powerdomain tesla_44xx_pwrdm = { |
112 | .name = "tesla_pwrdm", | 116 | .name = "tesla_pwrdm", |
117 | .voltdm = { .name = "iva" }, | ||
113 | .prcm_offs = OMAP4430_PRM_TESLA_INST, | 118 | .prcm_offs = OMAP4430_PRM_TESLA_INST, |
114 | .prcm_partition = OMAP4430_PRM_PARTITION, | 119 | .prcm_partition = OMAP4430_PRM_PARTITION, |
115 | .pwrsts = PWRSTS_OFF_RET_ON, | 120 | .pwrsts = PWRSTS_OFF_RET_ON, |
@@ -131,6 +136,7 @@ static struct powerdomain tesla_44xx_pwrdm = { | |||
131 | /* wkup_44xx_pwrdm: Wake-up power domain */ | 136 | /* wkup_44xx_pwrdm: Wake-up power domain */ |
132 | static struct powerdomain wkup_44xx_pwrdm = { | 137 | static struct powerdomain wkup_44xx_pwrdm = { |
133 | .name = "wkup_pwrdm", | 138 | .name = "wkup_pwrdm", |
139 | .voltdm = { .name = "wakeup" }, | ||
134 | .prcm_offs = OMAP4430_PRM_WKUP_INST, | 140 | .prcm_offs = OMAP4430_PRM_WKUP_INST, |
135 | .prcm_partition = OMAP4430_PRM_PARTITION, | 141 | .prcm_partition = OMAP4430_PRM_PARTITION, |
136 | .pwrsts = PWRSTS_ON, | 142 | .pwrsts = PWRSTS_ON, |
@@ -146,6 +152,7 @@ static struct powerdomain wkup_44xx_pwrdm = { | |||
146 | /* cpu0_44xx_pwrdm: MPU0 processor and Neon coprocessor power domain */ | 152 | /* cpu0_44xx_pwrdm: MPU0 processor and Neon coprocessor power domain */ |
147 | static struct powerdomain cpu0_44xx_pwrdm = { | 153 | static struct powerdomain cpu0_44xx_pwrdm = { |
148 | .name = "cpu0_pwrdm", | 154 | .name = "cpu0_pwrdm", |
155 | .voltdm = { .name = "mpu" }, | ||
149 | .prcm_offs = OMAP4430_PRCM_MPU_CPU0_INST, | 156 | .prcm_offs = OMAP4430_PRCM_MPU_CPU0_INST, |
150 | .prcm_partition = OMAP4430_PRCM_MPU_PARTITION, | 157 | .prcm_partition = OMAP4430_PRCM_MPU_PARTITION, |
151 | .pwrsts = PWRSTS_OFF_RET_ON, | 158 | .pwrsts = PWRSTS_OFF_RET_ON, |
@@ -162,6 +169,7 @@ static struct powerdomain cpu0_44xx_pwrdm = { | |||
162 | /* cpu1_44xx_pwrdm: MPU1 processor and Neon coprocessor power domain */ | 169 | /* cpu1_44xx_pwrdm: MPU1 processor and Neon coprocessor power domain */ |
163 | static struct powerdomain cpu1_44xx_pwrdm = { | 170 | static struct powerdomain cpu1_44xx_pwrdm = { |
164 | .name = "cpu1_pwrdm", | 171 | .name = "cpu1_pwrdm", |
172 | .voltdm = { .name = "mpu" }, | ||
165 | .prcm_offs = OMAP4430_PRCM_MPU_CPU1_INST, | 173 | .prcm_offs = OMAP4430_PRCM_MPU_CPU1_INST, |
166 | .prcm_partition = OMAP4430_PRCM_MPU_PARTITION, | 174 | .prcm_partition = OMAP4430_PRCM_MPU_PARTITION, |
167 | .pwrsts = PWRSTS_OFF_RET_ON, | 175 | .pwrsts = PWRSTS_OFF_RET_ON, |
@@ -178,6 +186,7 @@ static struct powerdomain cpu1_44xx_pwrdm = { | |||
178 | /* emu_44xx_pwrdm: Emulation power domain */ | 186 | /* emu_44xx_pwrdm: Emulation power domain */ |
179 | static struct powerdomain emu_44xx_pwrdm = { | 187 | static struct powerdomain emu_44xx_pwrdm = { |
180 | .name = "emu_pwrdm", | 188 | .name = "emu_pwrdm", |
189 | .voltdm = { .name = "wakeup" }, | ||
181 | .prcm_offs = OMAP4430_PRM_EMU_INST, | 190 | .prcm_offs = OMAP4430_PRM_EMU_INST, |
182 | .prcm_partition = OMAP4430_PRM_PARTITION, | 191 | .prcm_partition = OMAP4430_PRM_PARTITION, |
183 | .pwrsts = PWRSTS_OFF_ON, | 192 | .pwrsts = PWRSTS_OFF_ON, |
@@ -193,6 +202,7 @@ static struct powerdomain emu_44xx_pwrdm = { | |||
193 | /* mpu_44xx_pwrdm: Modena processor and the Neon coprocessor power domain */ | 202 | /* mpu_44xx_pwrdm: Modena processor and the Neon coprocessor power domain */ |
194 | static struct powerdomain mpu_44xx_pwrdm = { | 203 | static struct powerdomain mpu_44xx_pwrdm = { |
195 | .name = "mpu_pwrdm", | 204 | .name = "mpu_pwrdm", |
205 | .voltdm = { .name = "mpu" }, | ||
196 | .prcm_offs = OMAP4430_PRM_MPU_INST, | 206 | .prcm_offs = OMAP4430_PRM_MPU_INST, |
197 | .prcm_partition = OMAP4430_PRM_PARTITION, | 207 | .prcm_partition = OMAP4430_PRM_PARTITION, |
198 | .pwrsts = PWRSTS_RET_ON, | 208 | .pwrsts = PWRSTS_RET_ON, |
@@ -213,6 +223,7 @@ static struct powerdomain mpu_44xx_pwrdm = { | |||
213 | /* ivahd_44xx_pwrdm: IVA-HD power domain */ | 223 | /* ivahd_44xx_pwrdm: IVA-HD power domain */ |
214 | static struct powerdomain ivahd_44xx_pwrdm = { | 224 | static struct powerdomain ivahd_44xx_pwrdm = { |
215 | .name = "ivahd_pwrdm", | 225 | .name = "ivahd_pwrdm", |
226 | .voltdm = { .name = "iva" }, | ||
216 | .prcm_offs = OMAP4430_PRM_IVAHD_INST, | 227 | .prcm_offs = OMAP4430_PRM_IVAHD_INST, |
217 | .prcm_partition = OMAP4430_PRM_PARTITION, | 228 | .prcm_partition = OMAP4430_PRM_PARTITION, |
218 | .pwrsts = PWRSTS_OFF_RET_ON, | 229 | .pwrsts = PWRSTS_OFF_RET_ON, |
@@ -236,6 +247,7 @@ static struct powerdomain ivahd_44xx_pwrdm = { | |||
236 | /* cam_44xx_pwrdm: Camera subsystem power domain */ | 247 | /* cam_44xx_pwrdm: Camera subsystem power domain */ |
237 | static struct powerdomain cam_44xx_pwrdm = { | 248 | static struct powerdomain cam_44xx_pwrdm = { |
238 | .name = "cam_pwrdm", | 249 | .name = "cam_pwrdm", |
250 | .voltdm = { .name = "core" }, | ||
239 | .prcm_offs = OMAP4430_PRM_CAM_INST, | 251 | .prcm_offs = OMAP4430_PRM_CAM_INST, |
240 | .prcm_partition = OMAP4430_PRM_PARTITION, | 252 | .prcm_partition = OMAP4430_PRM_PARTITION, |
241 | .pwrsts = PWRSTS_OFF_ON, | 253 | .pwrsts = PWRSTS_OFF_ON, |
@@ -252,6 +264,7 @@ static struct powerdomain cam_44xx_pwrdm = { | |||
252 | /* l3init_44xx_pwrdm: L3 initators pheripherals power domain */ | 264 | /* l3init_44xx_pwrdm: L3 initators pheripherals power domain */ |
253 | static struct powerdomain l3init_44xx_pwrdm = { | 265 | static struct powerdomain l3init_44xx_pwrdm = { |
254 | .name = "l3init_pwrdm", | 266 | .name = "l3init_pwrdm", |
267 | .voltdm = { .name = "core" }, | ||
255 | .prcm_offs = OMAP4430_PRM_L3INIT_INST, | 268 | .prcm_offs = OMAP4430_PRM_L3INIT_INST, |
256 | .prcm_partition = OMAP4430_PRM_PARTITION, | 269 | .prcm_partition = OMAP4430_PRM_PARTITION, |
257 | .pwrsts = PWRSTS_RET_ON, | 270 | .pwrsts = PWRSTS_RET_ON, |
@@ -269,6 +282,7 @@ static struct powerdomain l3init_44xx_pwrdm = { | |||
269 | /* l4per_44xx_pwrdm: Target peripherals power domain */ | 282 | /* l4per_44xx_pwrdm: Target peripherals power domain */ |
270 | static struct powerdomain l4per_44xx_pwrdm = { | 283 | static struct powerdomain l4per_44xx_pwrdm = { |
271 | .name = "l4per_pwrdm", | 284 | .name = "l4per_pwrdm", |
285 | .voltdm = { .name = "core" }, | ||
272 | .prcm_offs = OMAP4430_PRM_L4PER_INST, | 286 | .prcm_offs = OMAP4430_PRM_L4PER_INST, |
273 | .prcm_partition = OMAP4430_PRM_PARTITION, | 287 | .prcm_partition = OMAP4430_PRM_PARTITION, |
274 | .pwrsts = PWRSTS_RET_ON, | 288 | .pwrsts = PWRSTS_RET_ON, |
@@ -291,6 +305,7 @@ static struct powerdomain l4per_44xx_pwrdm = { | |||
291 | */ | 305 | */ |
292 | static struct powerdomain always_on_core_44xx_pwrdm = { | 306 | static struct powerdomain always_on_core_44xx_pwrdm = { |
293 | .name = "always_on_core_pwrdm", | 307 | .name = "always_on_core_pwrdm", |
308 | .voltdm = { .name = "core" }, | ||
294 | .prcm_offs = OMAP4430_PRM_ALWAYS_ON_INST, | 309 | .prcm_offs = OMAP4430_PRM_ALWAYS_ON_INST, |
295 | .prcm_partition = OMAP4430_PRM_PARTITION, | 310 | .prcm_partition = OMAP4430_PRM_PARTITION, |
296 | .pwrsts = PWRSTS_ON, | 311 | .pwrsts = PWRSTS_ON, |
@@ -299,6 +314,7 @@ static struct powerdomain always_on_core_44xx_pwrdm = { | |||
299 | /* cefuse_44xx_pwrdm: Customer efuse controller power domain */ | 314 | /* cefuse_44xx_pwrdm: Customer efuse controller power domain */ |
300 | static struct powerdomain cefuse_44xx_pwrdm = { | 315 | static struct powerdomain cefuse_44xx_pwrdm = { |
301 | .name = "cefuse_pwrdm", | 316 | .name = "cefuse_pwrdm", |
317 | .voltdm = { .name = "core" }, | ||
302 | .prcm_offs = OMAP4430_PRM_CEFUSE_INST, | 318 | .prcm_offs = OMAP4430_PRM_CEFUSE_INST, |
303 | .prcm_partition = OMAP4430_PRM_PARTITION, | 319 | .prcm_partition = OMAP4430_PRM_PARTITION, |
304 | .pwrsts = PWRSTS_OFF_ON, | 320 | .pwrsts = PWRSTS_OFF_ON, |
diff --git a/arch/arm/mach-omap2/voltagedomains44xx_data.c b/arch/arm/mach-omap2/voltagedomains44xx_data.c index 95e1ce5822ca..9a17b5ebf665 100644 --- a/arch/arm/mach-omap2/voltagedomains44xx_data.c +++ b/arch/arm/mach-omap2/voltagedomains44xx_data.c | |||
@@ -86,10 +86,15 @@ static struct voltagedomain omap4_voltdm_core = { | |||
86 | .vdd = &omap4_vdd_core_info, | 86 | .vdd = &omap4_vdd_core_info, |
87 | }; | 87 | }; |
88 | 88 | ||
89 | static struct voltagedomain omap4_voltdm_wkup = { | ||
90 | .name = "wakeup", | ||
91 | }; | ||
92 | |||
89 | static struct voltagedomain *voltagedomains_omap4[] __initdata = { | 93 | static struct voltagedomain *voltagedomains_omap4[] __initdata = { |
90 | &omap4_voltdm_mpu, | 94 | &omap4_voltdm_mpu, |
91 | &omap4_voltdm_iva, | 95 | &omap4_voltdm_iva, |
92 | &omap4_voltdm_core, | 96 | &omap4_voltdm_core, |
97 | &omap4_voltdm_wkup, | ||
93 | NULL, | 98 | NULL, |
94 | }; | 99 | }; |
95 | 100 | ||