diff options
Diffstat (limited to 'arch/arm/mach-omap2/powerdomains44xx_data.c')
-rw-r--r-- | arch/arm/mach-omap2/powerdomains44xx_data.c | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/arch/arm/mach-omap2/powerdomains44xx_data.c b/arch/arm/mach-omap2/powerdomains44xx_data.c index 247e79495115..704664c0e259 100644 --- a/arch/arm/mach-omap2/powerdomains44xx_data.c +++ b/arch/arm/mach-omap2/powerdomains44xx_data.c | |||
@@ -33,9 +33,9 @@ | |||
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 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | ||
39 | .pwrsts = PWRSTS_RET_ON, | 39 | .pwrsts = PWRSTS_RET_ON, |
40 | .pwrsts_logic_ret = PWRSTS_OFF_RET, | 40 | .pwrsts_logic_ret = PWRSTS_OFF_RET, |
41 | .banks = 5, | 41 | .banks = 5, |
@@ -59,9 +59,9 @@ static struct powerdomain core_44xx_pwrdm = { | |||
59 | /* gfx_44xx_pwrdm: 3D accelerator power domain */ | 59 | /* gfx_44xx_pwrdm: 3D accelerator power domain */ |
60 | static struct powerdomain gfx_44xx_pwrdm = { | 60 | static struct powerdomain gfx_44xx_pwrdm = { |
61 | .name = "gfx_pwrdm", | 61 | .name = "gfx_pwrdm", |
62 | .voltdm = { .name = "core" }, | ||
62 | .prcm_offs = OMAP4430_PRM_GFX_INST, | 63 | .prcm_offs = OMAP4430_PRM_GFX_INST, |
63 | .prcm_partition = OMAP4430_PRM_PARTITION, | 64 | .prcm_partition = OMAP4430_PRM_PARTITION, |
64 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | ||
65 | .pwrsts = PWRSTS_OFF_ON, | 65 | .pwrsts = PWRSTS_OFF_ON, |
66 | .banks = 1, | 66 | .banks = 1, |
67 | .pwrsts_mem_ret = { | 67 | .pwrsts_mem_ret = { |
@@ -76,9 +76,9 @@ static struct powerdomain gfx_44xx_pwrdm = { | |||
76 | /* abe_44xx_pwrdm: Audio back end power domain */ | 76 | /* abe_44xx_pwrdm: Audio back end power domain */ |
77 | static struct powerdomain abe_44xx_pwrdm = { | 77 | static struct powerdomain abe_44xx_pwrdm = { |
78 | .name = "abe_pwrdm", | 78 | .name = "abe_pwrdm", |
79 | .voltdm = { .name = "iva" }, | ||
79 | .prcm_offs = OMAP4430_PRM_ABE_INST, | 80 | .prcm_offs = OMAP4430_PRM_ABE_INST, |
80 | .prcm_partition = OMAP4430_PRM_PARTITION, | 81 | .prcm_partition = OMAP4430_PRM_PARTITION, |
81 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | ||
82 | .pwrsts = PWRSTS_OFF_RET_ON, | 82 | .pwrsts = PWRSTS_OFF_RET_ON, |
83 | .pwrsts_logic_ret = PWRSTS_OFF, | 83 | .pwrsts_logic_ret = PWRSTS_OFF, |
84 | .banks = 2, | 84 | .banks = 2, |
@@ -96,9 +96,9 @@ static struct powerdomain abe_44xx_pwrdm = { | |||
96 | /* dss_44xx_pwrdm: Display subsystem power domain */ | 96 | /* dss_44xx_pwrdm: Display subsystem power domain */ |
97 | static struct powerdomain dss_44xx_pwrdm = { | 97 | static struct powerdomain dss_44xx_pwrdm = { |
98 | .name = "dss_pwrdm", | 98 | .name = "dss_pwrdm", |
99 | .voltdm = { .name = "core" }, | ||
99 | .prcm_offs = OMAP4430_PRM_DSS_INST, | 100 | .prcm_offs = OMAP4430_PRM_DSS_INST, |
100 | .prcm_partition = OMAP4430_PRM_PARTITION, | 101 | .prcm_partition = OMAP4430_PRM_PARTITION, |
101 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | ||
102 | .pwrsts = PWRSTS_OFF_RET_ON, | 102 | .pwrsts = PWRSTS_OFF_RET_ON, |
103 | .pwrsts_logic_ret = PWRSTS_OFF, | 103 | .pwrsts_logic_ret = PWRSTS_OFF, |
104 | .banks = 1, | 104 | .banks = 1, |
@@ -114,9 +114,9 @@ static struct powerdomain dss_44xx_pwrdm = { | |||
114 | /* tesla_44xx_pwrdm: Tesla processor power domain */ | 114 | /* tesla_44xx_pwrdm: Tesla processor power domain */ |
115 | static struct powerdomain tesla_44xx_pwrdm = { | 115 | static struct powerdomain tesla_44xx_pwrdm = { |
116 | .name = "tesla_pwrdm", | 116 | .name = "tesla_pwrdm", |
117 | .voltdm = { .name = "iva" }, | ||
117 | .prcm_offs = OMAP4430_PRM_TESLA_INST, | 118 | .prcm_offs = OMAP4430_PRM_TESLA_INST, |
118 | .prcm_partition = OMAP4430_PRM_PARTITION, | 119 | .prcm_partition = OMAP4430_PRM_PARTITION, |
119 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | ||
120 | .pwrsts = PWRSTS_OFF_RET_ON, | 120 | .pwrsts = PWRSTS_OFF_RET_ON, |
121 | .pwrsts_logic_ret = PWRSTS_OFF_RET, | 121 | .pwrsts_logic_ret = PWRSTS_OFF_RET, |
122 | .banks = 3, | 122 | .banks = 3, |
@@ -136,9 +136,9 @@ static struct powerdomain tesla_44xx_pwrdm = { | |||
136 | /* wkup_44xx_pwrdm: Wake-up power domain */ | 136 | /* wkup_44xx_pwrdm: Wake-up power domain */ |
137 | static struct powerdomain wkup_44xx_pwrdm = { | 137 | static struct powerdomain wkup_44xx_pwrdm = { |
138 | .name = "wkup_pwrdm", | 138 | .name = "wkup_pwrdm", |
139 | .voltdm = { .name = "wakeup" }, | ||
139 | .prcm_offs = OMAP4430_PRM_WKUP_INST, | 140 | .prcm_offs = OMAP4430_PRM_WKUP_INST, |
140 | .prcm_partition = OMAP4430_PRM_PARTITION, | 141 | .prcm_partition = OMAP4430_PRM_PARTITION, |
141 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | ||
142 | .pwrsts = PWRSTS_ON, | 142 | .pwrsts = PWRSTS_ON, |
143 | .banks = 1, | 143 | .banks = 1, |
144 | .pwrsts_mem_ret = { | 144 | .pwrsts_mem_ret = { |
@@ -152,9 +152,9 @@ static struct powerdomain wkup_44xx_pwrdm = { | |||
152 | /* cpu0_44xx_pwrdm: MPU0 processor and Neon coprocessor power domain */ | 152 | /* cpu0_44xx_pwrdm: MPU0 processor and Neon coprocessor power domain */ |
153 | static struct powerdomain cpu0_44xx_pwrdm = { | 153 | static struct powerdomain cpu0_44xx_pwrdm = { |
154 | .name = "cpu0_pwrdm", | 154 | .name = "cpu0_pwrdm", |
155 | .voltdm = { .name = "mpu" }, | ||
155 | .prcm_offs = OMAP4430_PRCM_MPU_CPU0_INST, | 156 | .prcm_offs = OMAP4430_PRCM_MPU_CPU0_INST, |
156 | .prcm_partition = OMAP4430_PRCM_MPU_PARTITION, | 157 | .prcm_partition = OMAP4430_PRCM_MPU_PARTITION, |
157 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | ||
158 | .pwrsts = PWRSTS_OFF_RET_ON, | 158 | .pwrsts = PWRSTS_OFF_RET_ON, |
159 | .pwrsts_logic_ret = PWRSTS_OFF_RET, | 159 | .pwrsts_logic_ret = PWRSTS_OFF_RET, |
160 | .banks = 1, | 160 | .banks = 1, |
@@ -169,9 +169,9 @@ static struct powerdomain cpu0_44xx_pwrdm = { | |||
169 | /* cpu1_44xx_pwrdm: MPU1 processor and Neon coprocessor power domain */ | 169 | /* cpu1_44xx_pwrdm: MPU1 processor and Neon coprocessor power domain */ |
170 | static struct powerdomain cpu1_44xx_pwrdm = { | 170 | static struct powerdomain cpu1_44xx_pwrdm = { |
171 | .name = "cpu1_pwrdm", | 171 | .name = "cpu1_pwrdm", |
172 | .voltdm = { .name = "mpu" }, | ||
172 | .prcm_offs = OMAP4430_PRCM_MPU_CPU1_INST, | 173 | .prcm_offs = OMAP4430_PRCM_MPU_CPU1_INST, |
173 | .prcm_partition = OMAP4430_PRCM_MPU_PARTITION, | 174 | .prcm_partition = OMAP4430_PRCM_MPU_PARTITION, |
174 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | ||
175 | .pwrsts = PWRSTS_OFF_RET_ON, | 175 | .pwrsts = PWRSTS_OFF_RET_ON, |
176 | .pwrsts_logic_ret = PWRSTS_OFF_RET, | 176 | .pwrsts_logic_ret = PWRSTS_OFF_RET, |
177 | .banks = 1, | 177 | .banks = 1, |
@@ -186,9 +186,9 @@ static struct powerdomain cpu1_44xx_pwrdm = { | |||
186 | /* emu_44xx_pwrdm: Emulation power domain */ | 186 | /* emu_44xx_pwrdm: Emulation power domain */ |
187 | static struct powerdomain emu_44xx_pwrdm = { | 187 | static struct powerdomain emu_44xx_pwrdm = { |
188 | .name = "emu_pwrdm", | 188 | .name = "emu_pwrdm", |
189 | .voltdm = { .name = "wakeup" }, | ||
189 | .prcm_offs = OMAP4430_PRM_EMU_INST, | 190 | .prcm_offs = OMAP4430_PRM_EMU_INST, |
190 | .prcm_partition = OMAP4430_PRM_PARTITION, | 191 | .prcm_partition = OMAP4430_PRM_PARTITION, |
191 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | ||
192 | .pwrsts = PWRSTS_OFF_ON, | 192 | .pwrsts = PWRSTS_OFF_ON, |
193 | .banks = 1, | 193 | .banks = 1, |
194 | .pwrsts_mem_ret = { | 194 | .pwrsts_mem_ret = { |
@@ -202,9 +202,9 @@ static struct powerdomain emu_44xx_pwrdm = { | |||
202 | /* mpu_44xx_pwrdm: Modena processor and the Neon coprocessor power domain */ | 202 | /* mpu_44xx_pwrdm: Modena processor and the Neon coprocessor power domain */ |
203 | static struct powerdomain mpu_44xx_pwrdm = { | 203 | static struct powerdomain mpu_44xx_pwrdm = { |
204 | .name = "mpu_pwrdm", | 204 | .name = "mpu_pwrdm", |
205 | .voltdm = { .name = "mpu" }, | ||
205 | .prcm_offs = OMAP4430_PRM_MPU_INST, | 206 | .prcm_offs = OMAP4430_PRM_MPU_INST, |
206 | .prcm_partition = OMAP4430_PRM_PARTITION, | 207 | .prcm_partition = OMAP4430_PRM_PARTITION, |
207 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | ||
208 | .pwrsts = PWRSTS_RET_ON, | 208 | .pwrsts = PWRSTS_RET_ON, |
209 | .pwrsts_logic_ret = PWRSTS_OFF_RET, | 209 | .pwrsts_logic_ret = PWRSTS_OFF_RET, |
210 | .banks = 3, | 210 | .banks = 3, |
@@ -223,9 +223,9 @@ static struct powerdomain mpu_44xx_pwrdm = { | |||
223 | /* ivahd_44xx_pwrdm: IVA-HD power domain */ | 223 | /* ivahd_44xx_pwrdm: IVA-HD power domain */ |
224 | static struct powerdomain ivahd_44xx_pwrdm = { | 224 | static struct powerdomain ivahd_44xx_pwrdm = { |
225 | .name = "ivahd_pwrdm", | 225 | .name = "ivahd_pwrdm", |
226 | .voltdm = { .name = "iva" }, | ||
226 | .prcm_offs = OMAP4430_PRM_IVAHD_INST, | 227 | .prcm_offs = OMAP4430_PRM_IVAHD_INST, |
227 | .prcm_partition = OMAP4430_PRM_PARTITION, | 228 | .prcm_partition = OMAP4430_PRM_PARTITION, |
228 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | ||
229 | .pwrsts = PWRSTS_OFF_RET_ON, | 229 | .pwrsts = PWRSTS_OFF_RET_ON, |
230 | .pwrsts_logic_ret = PWRSTS_OFF, | 230 | .pwrsts_logic_ret = PWRSTS_OFF, |
231 | .banks = 4, | 231 | .banks = 4, |
@@ -247,9 +247,9 @@ static struct powerdomain ivahd_44xx_pwrdm = { | |||
247 | /* cam_44xx_pwrdm: Camera subsystem power domain */ | 247 | /* cam_44xx_pwrdm: Camera subsystem power domain */ |
248 | static struct powerdomain cam_44xx_pwrdm = { | 248 | static struct powerdomain cam_44xx_pwrdm = { |
249 | .name = "cam_pwrdm", | 249 | .name = "cam_pwrdm", |
250 | .voltdm = { .name = "core" }, | ||
250 | .prcm_offs = OMAP4430_PRM_CAM_INST, | 251 | .prcm_offs = OMAP4430_PRM_CAM_INST, |
251 | .prcm_partition = OMAP4430_PRM_PARTITION, | 252 | .prcm_partition = OMAP4430_PRM_PARTITION, |
252 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | ||
253 | .pwrsts = PWRSTS_OFF_ON, | 253 | .pwrsts = PWRSTS_OFF_ON, |
254 | .banks = 1, | 254 | .banks = 1, |
255 | .pwrsts_mem_ret = { | 255 | .pwrsts_mem_ret = { |
@@ -264,9 +264,9 @@ static struct powerdomain cam_44xx_pwrdm = { | |||
264 | /* l3init_44xx_pwrdm: L3 initators pheripherals power domain */ | 264 | /* l3init_44xx_pwrdm: L3 initators pheripherals power domain */ |
265 | static struct powerdomain l3init_44xx_pwrdm = { | 265 | static struct powerdomain l3init_44xx_pwrdm = { |
266 | .name = "l3init_pwrdm", | 266 | .name = "l3init_pwrdm", |
267 | .voltdm = { .name = "core" }, | ||
267 | .prcm_offs = OMAP4430_PRM_L3INIT_INST, | 268 | .prcm_offs = OMAP4430_PRM_L3INIT_INST, |
268 | .prcm_partition = OMAP4430_PRM_PARTITION, | 269 | .prcm_partition = OMAP4430_PRM_PARTITION, |
269 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | ||
270 | .pwrsts = PWRSTS_RET_ON, | 270 | .pwrsts = PWRSTS_RET_ON, |
271 | .pwrsts_logic_ret = PWRSTS_OFF_RET, | 271 | .pwrsts_logic_ret = PWRSTS_OFF_RET, |
272 | .banks = 1, | 272 | .banks = 1, |
@@ -282,9 +282,9 @@ static struct powerdomain l3init_44xx_pwrdm = { | |||
282 | /* l4per_44xx_pwrdm: Target peripherals power domain */ | 282 | /* l4per_44xx_pwrdm: Target peripherals power domain */ |
283 | static struct powerdomain l4per_44xx_pwrdm = { | 283 | static struct powerdomain l4per_44xx_pwrdm = { |
284 | .name = "l4per_pwrdm", | 284 | .name = "l4per_pwrdm", |
285 | .voltdm = { .name = "core" }, | ||
285 | .prcm_offs = OMAP4430_PRM_L4PER_INST, | 286 | .prcm_offs = OMAP4430_PRM_L4PER_INST, |
286 | .prcm_partition = OMAP4430_PRM_PARTITION, | 287 | .prcm_partition = OMAP4430_PRM_PARTITION, |
287 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | ||
288 | .pwrsts = PWRSTS_RET_ON, | 288 | .pwrsts = PWRSTS_RET_ON, |
289 | .pwrsts_logic_ret = PWRSTS_OFF_RET, | 289 | .pwrsts_logic_ret = PWRSTS_OFF_RET, |
290 | .banks = 2, | 290 | .banks = 2, |
@@ -305,18 +305,18 @@ static struct powerdomain l4per_44xx_pwrdm = { | |||
305 | */ | 305 | */ |
306 | static struct powerdomain always_on_core_44xx_pwrdm = { | 306 | static struct powerdomain always_on_core_44xx_pwrdm = { |
307 | .name = "always_on_core_pwrdm", | 307 | .name = "always_on_core_pwrdm", |
308 | .voltdm = { .name = "core" }, | ||
308 | .prcm_offs = OMAP4430_PRM_ALWAYS_ON_INST, | 309 | .prcm_offs = OMAP4430_PRM_ALWAYS_ON_INST, |
309 | .prcm_partition = OMAP4430_PRM_PARTITION, | 310 | .prcm_partition = OMAP4430_PRM_PARTITION, |
310 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | ||
311 | .pwrsts = PWRSTS_ON, | 311 | .pwrsts = PWRSTS_ON, |
312 | }; | 312 | }; |
313 | 313 | ||
314 | /* cefuse_44xx_pwrdm: Customer efuse controller power domain */ | 314 | /* cefuse_44xx_pwrdm: Customer efuse controller power domain */ |
315 | static struct powerdomain cefuse_44xx_pwrdm = { | 315 | static struct powerdomain cefuse_44xx_pwrdm = { |
316 | .name = "cefuse_pwrdm", | 316 | .name = "cefuse_pwrdm", |
317 | .voltdm = { .name = "core" }, | ||
317 | .prcm_offs = OMAP4430_PRM_CEFUSE_INST, | 318 | .prcm_offs = OMAP4430_PRM_CEFUSE_INST, |
318 | .prcm_partition = OMAP4430_PRM_PARTITION, | 319 | .prcm_partition = OMAP4430_PRM_PARTITION, |
319 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), | ||
320 | .pwrsts = PWRSTS_OFF_ON, | 320 | .pwrsts = PWRSTS_OFF_ON, |
321 | .flags = PWRDM_HAS_LOWPOWERSTATECHANGE, | 321 | .flags = PWRDM_HAS_LOWPOWERSTATECHANGE, |
322 | }; | 322 | }; |
@@ -352,5 +352,7 @@ static struct powerdomain *powerdomains_omap44xx[] __initdata = { | |||
352 | 352 | ||
353 | void __init omap44xx_powerdomains_init(void) | 353 | void __init omap44xx_powerdomains_init(void) |
354 | { | 354 | { |
355 | pwrdm_init(powerdomains_omap44xx, &omap4_pwrdm_operations); | 355 | pwrdm_register_platform_funcs(&omap4_pwrdm_operations); |
356 | pwrdm_register_pwrdms(powerdomains_omap44xx); | ||
357 | pwrdm_complete_init(); | ||
356 | } | 358 | } |