2 * DRA7xx Power domains framework
4 * Copyright (C) 2009-2013 Texas Instruments, Inc.
5 * Copyright (C) 2009-2011 Nokia Corporation
7 * Generated by code originally written by:
8 * Abhijit Pagare (abhijitpagare@ti.com)
9 * Benoit Cousson (b-cousson@ti.com)
10 * Paul Walmsley (paul@pwsan.com)
12 * This file is automatically generated from the OMAP hardware databases.
13 * We respectfully ask that any modifications to this file be coordinated
14 * with the public linux-omap@vger.kernel.org mailing list and the
15 * authors above to ensure that the autogeneration scripts are kept
16 * up-to-date with the file contents.
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License version 2 as
20 * published by the Free Software Foundation.
23 #include <linux/kernel.h>
24 #include <linux/init.h>
26 #include "powerdomain.h"
28 #include "prcm-common.h"
31 #include "prcm_mpu7xx.h"
33 /* iva_7xx_pwrdm: IVA-HD power domain */
34 static struct powerdomain iva_7xx_pwrdm
= {
36 .prcm_offs
= DRA7XX_PRM_IVA_INST
,
37 .prcm_partition
= DRA7XX_PRM_PARTITION
,
38 .pwrsts
= PWRSTS_OFF_ON
,
41 [0] = PWRSTS_ON
, /* hwa_mem */
42 [1] = PWRSTS_ON
, /* sl2_mem */
43 [2] = PWRSTS_ON
, /* tcm1_mem */
44 [3] = PWRSTS_ON
, /* tcm2_mem */
46 .flags
= PWRDM_HAS_LOWPOWERSTATECHANGE
,
50 static struct powerdomain rtc_7xx_pwrdm
= {
52 .prcm_offs
= DRA7XX_PRM_RTC_INST
,
53 .prcm_partition
= DRA7XX_PRM_PARTITION
,
57 /* custefuse_7xx_pwrdm: Customer efuse controller power domain */
58 static struct powerdomain custefuse_7xx_pwrdm
= {
59 .name
= "custefuse_pwrdm",
60 .prcm_offs
= DRA7XX_PRM_CUSTEFUSE_INST
,
61 .prcm_partition
= DRA7XX_PRM_PARTITION
,
62 .pwrsts
= PWRSTS_OFF_ON
,
63 .flags
= PWRDM_HAS_LOWPOWERSTATECHANGE
,
66 /* ipu_7xx_pwrdm: Audio back end power domain */
67 static struct powerdomain ipu_7xx_pwrdm
= {
69 .prcm_offs
= DRA7XX_PRM_IPU_INST
,
70 .prcm_partition
= DRA7XX_PRM_PARTITION
,
71 .pwrsts
= PWRSTS_OFF_ON
,
74 [0] = PWRSTS_ON
, /* aessmem */
75 [1] = PWRSTS_ON
, /* periphmem */
77 .flags
= PWRDM_HAS_LOWPOWERSTATECHANGE
,
80 /* dss_7xx_pwrdm: Display subsystem power domain */
81 static struct powerdomain dss_7xx_pwrdm
= {
83 .prcm_offs
= DRA7XX_PRM_DSS_INST
,
84 .prcm_partition
= DRA7XX_PRM_PARTITION
,
85 .pwrsts
= PWRSTS_OFF_ON
,
88 [0] = PWRSTS_ON
, /* dss_mem */
90 .flags
= PWRDM_HAS_LOWPOWERSTATECHANGE
,
93 /* l4per_7xx_pwrdm: Target peripherals power domain */
94 static struct powerdomain l4per_7xx_pwrdm
= {
95 .name
= "l4per_pwrdm",
96 .prcm_offs
= DRA7XX_PRM_L4PER_INST
,
97 .prcm_partition
= DRA7XX_PRM_PARTITION
,
101 [0] = PWRSTS_ON
, /* nonretained_bank */
102 [1] = PWRSTS_ON
, /* retained_bank */
104 .flags
= PWRDM_HAS_LOWPOWERSTATECHANGE
,
107 /* gpu_7xx_pwrdm: 3D accelerator power domain */
108 static struct powerdomain gpu_7xx_pwrdm
= {
110 .prcm_offs
= DRA7XX_PRM_GPU_INST
,
111 .prcm_partition
= DRA7XX_PRM_PARTITION
,
112 .pwrsts
= PWRSTS_OFF_ON
,
115 [0] = PWRSTS_ON
, /* gpu_mem */
117 .flags
= PWRDM_HAS_LOWPOWERSTATECHANGE
,
120 /* wkupaon_7xx_pwrdm: Wake-up power domain */
121 static struct powerdomain wkupaon_7xx_pwrdm
= {
122 .name
= "wkupaon_pwrdm",
123 .prcm_offs
= DRA7XX_PRM_WKUPAON_INST
,
124 .prcm_partition
= DRA7XX_PRM_PARTITION
,
128 [0] = PWRSTS_ON
, /* wkup_bank */
132 /* core_7xx_pwrdm: CORE power domain */
133 static struct powerdomain core_7xx_pwrdm
= {
134 .name
= "core_pwrdm",
135 .prcm_offs
= DRA7XX_PRM_CORE_INST
,
136 .prcm_partition
= DRA7XX_PRM_PARTITION
,
140 [0] = PWRSTS_ON
, /* core_nret_bank */
141 [1] = PWRSTS_ON
, /* core_ocmram */
142 [2] = PWRSTS_ON
, /* core_other_bank */
143 [3] = PWRSTS_ON
, /* ipu_l2ram */
144 [4] = PWRSTS_ON
, /* ipu_unicache */
146 .flags
= PWRDM_HAS_LOWPOWERSTATECHANGE
,
149 /* coreaon_7xx_pwrdm: Always ON logic that sits in VDD_CORE voltage domain */
150 static struct powerdomain coreaon_7xx_pwrdm
= {
151 .name
= "coreaon_pwrdm",
152 .prcm_offs
= DRA7XX_PRM_COREAON_INST
,
153 .prcm_partition
= DRA7XX_PRM_PARTITION
,
157 /* cpu0_7xx_pwrdm: MPU0 processor and Neon coprocessor power domain */
158 static struct powerdomain cpu0_7xx_pwrdm
= {
159 .name
= "cpu0_pwrdm",
160 .prcm_offs
= DRA7XX_MPU_PRCM_PRM_C0_INST
,
161 .prcm_partition
= DRA7XX_MPU_PRCM_PARTITION
,
162 .pwrsts
= PWRSTS_RET_ON
,
163 .pwrsts_logic_ret
= PWRSTS_RET
,
166 [0] = PWRSTS_OFF_RET
, /* cpu0_l1 */
169 [0] = PWRSTS_ON
, /* cpu0_l1 */
173 /* cpu1_7xx_pwrdm: MPU1 processor and Neon coprocessor power domain */
174 static struct powerdomain cpu1_7xx_pwrdm
= {
175 .name
= "cpu1_pwrdm",
176 .prcm_offs
= DRA7XX_MPU_PRCM_PRM_C1_INST
,
177 .prcm_partition
= DRA7XX_MPU_PRCM_PARTITION
,
178 .pwrsts
= PWRSTS_RET_ON
,
179 .pwrsts_logic_ret
= PWRSTS_RET
,
182 [0] = PWRSTS_OFF_RET
, /* cpu1_l1 */
185 [0] = PWRSTS_ON
, /* cpu1_l1 */
190 static struct powerdomain vpe_7xx_pwrdm
= {
192 .prcm_offs
= DRA7XX_PRM_VPE_INST
,
193 .prcm_partition
= DRA7XX_PRM_PARTITION
,
194 .pwrsts
= PWRSTS_OFF_ON
,
197 [0] = PWRSTS_ON
, /* vpe_bank */
199 .flags
= PWRDM_HAS_LOWPOWERSTATECHANGE
,
202 /* mpu_7xx_pwrdm: Modena processor and the Neon coprocessor power domain */
203 static struct powerdomain mpu_7xx_pwrdm
= {
205 .prcm_offs
= DRA7XX_PRM_MPU_INST
,
206 .prcm_partition
= DRA7XX_PRM_PARTITION
,
207 .pwrsts
= PWRSTS_RET_ON
,
208 .pwrsts_logic_ret
= PWRSTS_RET
,
211 [0] = PWRSTS_OFF_RET
, /* mpu_l2 */
212 [1] = PWRSTS_RET
, /* mpu_ram */
215 [0] = PWRSTS_ON
, /* mpu_l2 */
216 [1] = PWRSTS_ON
, /* mpu_ram */
220 /* l3init_7xx_pwrdm: L3 initators pheripherals power domain */
221 static struct powerdomain l3init_7xx_pwrdm
= {
222 .name
= "l3init_pwrdm",
223 .prcm_offs
= DRA7XX_PRM_L3INIT_INST
,
224 .prcm_partition
= DRA7XX_PRM_PARTITION
,
228 [0] = PWRSTS_ON
, /* gmac_bank */
229 [1] = PWRSTS_ON
, /* l3init_bank1 */
230 [2] = PWRSTS_ON
, /* l3init_bank2 */
232 .flags
= PWRDM_HAS_LOWPOWERSTATECHANGE
,
235 /* eve3_7xx_pwrdm: */
236 static struct powerdomain eve3_7xx_pwrdm
= {
237 .name
= "eve3_pwrdm",
238 .prcm_offs
= DRA7XX_PRM_EVE3_INST
,
239 .prcm_partition
= DRA7XX_PRM_PARTITION
,
240 .pwrsts
= PWRSTS_OFF_ON
,
243 [0] = PWRSTS_ON
, /* eve3_bank */
245 .flags
= PWRDM_HAS_LOWPOWERSTATECHANGE
,
248 /* emu_7xx_pwrdm: Emulation power domain */
249 static struct powerdomain emu_7xx_pwrdm
= {
251 .prcm_offs
= DRA7XX_PRM_EMU_INST
,
252 .prcm_partition
= DRA7XX_PRM_PARTITION
,
253 .pwrsts
= PWRSTS_OFF_ON
,
256 [0] = PWRSTS_ON
, /* emu_bank */
260 /* dsp2_7xx_pwrdm: */
261 static struct powerdomain dsp2_7xx_pwrdm
= {
262 .name
= "dsp2_pwrdm",
263 .prcm_offs
= DRA7XX_PRM_DSP2_INST
,
264 .prcm_partition
= DRA7XX_PRM_PARTITION
,
265 .pwrsts
= PWRSTS_OFF_ON
,
268 [0] = PWRSTS_ON
, /* dsp2_edma */
269 [1] = PWRSTS_ON
, /* dsp2_l1 */
270 [2] = PWRSTS_ON
, /* dsp2_l2 */
272 .flags
= PWRDM_HAS_LOWPOWERSTATECHANGE
,
275 /* dsp1_7xx_pwrdm: Tesla processor power domain */
276 static struct powerdomain dsp1_7xx_pwrdm
= {
277 .name
= "dsp1_pwrdm",
278 .prcm_offs
= DRA7XX_PRM_DSP1_INST
,
279 .prcm_partition
= DRA7XX_PRM_PARTITION
,
280 .pwrsts
= PWRSTS_OFF_ON
,
283 [0] = PWRSTS_ON
, /* dsp1_edma */
284 [1] = PWRSTS_ON
, /* dsp1_l1 */
285 [2] = PWRSTS_ON
, /* dsp1_l2 */
287 .flags
= PWRDM_HAS_LOWPOWERSTATECHANGE
,
290 /* cam_7xx_pwrdm: Camera subsystem power domain */
291 static struct powerdomain cam_7xx_pwrdm
= {
293 .prcm_offs
= DRA7XX_PRM_CAM_INST
,
294 .prcm_partition
= DRA7XX_PRM_PARTITION
,
295 .pwrsts
= PWRSTS_OFF_ON
,
298 [0] = PWRSTS_ON
, /* vip_bank */
300 .flags
= PWRDM_HAS_LOWPOWERSTATECHANGE
,
303 /* eve4_7xx_pwrdm: */
304 static struct powerdomain eve4_7xx_pwrdm
= {
305 .name
= "eve4_pwrdm",
306 .prcm_offs
= DRA7XX_PRM_EVE4_INST
,
307 .prcm_partition
= DRA7XX_PRM_PARTITION
,
308 .pwrsts
= PWRSTS_OFF_ON
,
311 [0] = PWRSTS_ON
, /* eve4_bank */
313 .flags
= PWRDM_HAS_LOWPOWERSTATECHANGE
,
316 /* eve2_7xx_pwrdm: */
317 static struct powerdomain eve2_7xx_pwrdm
= {
318 .name
= "eve2_pwrdm",
319 .prcm_offs
= DRA7XX_PRM_EVE2_INST
,
320 .prcm_partition
= DRA7XX_PRM_PARTITION
,
321 .pwrsts
= PWRSTS_OFF_ON
,
324 [0] = PWRSTS_ON
, /* eve2_bank */
326 .flags
= PWRDM_HAS_LOWPOWERSTATECHANGE
,
329 /* eve1_7xx_pwrdm: */
330 static struct powerdomain eve1_7xx_pwrdm
= {
331 .name
= "eve1_pwrdm",
332 .prcm_offs
= DRA7XX_PRM_EVE1_INST
,
333 .prcm_partition
= DRA7XX_PRM_PARTITION
,
334 .pwrsts
= PWRSTS_OFF_ON
,
337 [0] = PWRSTS_ON
, /* eve1_bank */
339 .flags
= PWRDM_HAS_LOWPOWERSTATECHANGE
,
343 * The following power domains are not under SW control
349 /* As powerdomains are added or removed above, this list must also be changed */
350 static struct powerdomain
*powerdomains_dra7xx
[] __initdata
= {
353 &custefuse_7xx_pwrdm
,
377 void __init
dra7xx_powerdomains_init(void)
379 pwrdm_register_platform_funcs(&omap4_pwrdm_operations
);
380 pwrdm_register_pwrdms(powerdomains_dra7xx
);
381 pwrdm_complete_init();