2 * OMAP4 Power domains framework
4 * Copyright (C) 2009 Texas Instruments, Inc.
5 * Copyright (C) 2009 Nokia Corporation
7 * Abhijit Pagare (abhijitpagare@ti.com)
8 * Benoit Cousson (b-cousson@ti.com)
11 * This file is automatically generated from the OMAP hardware databases.
12 * We respectfully ask that any modifications to this file be coordinated
13 * with the public linux-omap@vger.kernel.org mailing list and the
14 * authors above to ensure that the autogeneration scripts are kept
15 * up-to-date with the file contents.
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License version 2 as
19 * published by the Free Software Foundation.
22 #ifndef __ARCH_ARM_MACH_OMAP2_POWERDOMAINS44XX_H
23 #define __ARCH_ARM_MACH_OMAP2_POWERDOMAINS44XX_H
25 #include <plat/powerdomain.h>
27 #include "prcm-common.h"
29 #include "cm-regbits-44xx.h"
31 #include "prm-regbits-44xx.h"
33 #if defined(CONFIG_ARCH_OMAP4)
35 /* core_44xx_pwrdm: CORE power domain */
36 static struct powerdomain core_44xx_pwrdm
= {
38 .prcm_offs
= OMAP4430_PRM_CORE_MOD
,
39 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP4430
),
40 .pwrsts
= PWRSTS_RET_ON
,
41 .pwrsts_logic_ret
= PWRSTS_OFF_RET
,
44 [0] = PWRDM_POWER_OFF
, /* core_nret_bank */
45 [1] = PWRSTS_OFF_RET
, /* core_ocmram */
46 [2] = PWRDM_POWER_RET
, /* core_other_bank */
47 [3] = PWRSTS_OFF_RET
, /* ducati_l2ram */
48 [4] = PWRSTS_OFF_RET
, /* ducati_unicache */
51 [0] = PWRDM_POWER_ON
, /* core_nret_bank */
52 [1] = PWRSTS_OFF_RET
, /* core_ocmram */
53 [2] = PWRDM_POWER_ON
, /* core_other_bank */
54 [3] = PWRDM_POWER_ON
, /* ducati_l2ram */
55 [4] = PWRDM_POWER_ON
, /* ducati_unicache */
59 /* gfx_44xx_pwrdm: 3D accelerator power domain */
60 static struct powerdomain gfx_44xx_pwrdm
= {
62 .prcm_offs
= OMAP4430_PRM_GFX_MOD
,
63 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP4430
),
64 .pwrsts
= PWRSTS_OFF_ON
,
67 [0] = PWRDM_POWER_OFF
, /* gfx_mem */
70 [0] = PWRDM_POWER_ON
, /* gfx_mem */
74 /* abe_44xx_pwrdm: Audio back end power domain */
75 static struct powerdomain abe_44xx_pwrdm
= {
77 .prcm_offs
= OMAP4430_PRM_ABE_MOD
,
78 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP4430
),
79 .pwrsts
= PWRSTS_OFF_RET_ON
,
80 .pwrsts_logic_ret
= PWRDM_POWER_OFF
,
83 [0] = PWRDM_POWER_RET
, /* aessmem */
84 [1] = PWRDM_POWER_OFF
, /* periphmem */
87 [0] = PWRDM_POWER_ON
, /* aessmem */
88 [1] = PWRDM_POWER_ON
, /* periphmem */
92 /* dss_44xx_pwrdm: Display subsystem power domain */
93 static struct powerdomain dss_44xx_pwrdm
= {
95 .prcm_offs
= OMAP4430_PRM_DSS_MOD
,
96 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP4430
),
97 .pwrsts
= PWRSTS_OFF_RET_ON
,
98 .pwrsts_logic_ret
= PWRSTS_OFF_RET
,
101 [0] = PWRDM_POWER_OFF
, /* dss_mem */
104 [0] = PWRDM_POWER_ON
, /* dss_mem */
108 /* tesla_44xx_pwrdm: Tesla processor power domain */
109 static struct powerdomain tesla_44xx_pwrdm
= {
110 .name
= "tesla_pwrdm",
111 .prcm_offs
= OMAP4430_PRM_TESLA_MOD
,
112 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP4430
),
113 .pwrsts
= PWRSTS_OFF_RET_ON
,
114 .pwrsts_logic_ret
= PWRSTS_OFF_RET
,
117 [0] = PWRDM_POWER_RET
, /* tesla_edma */
118 [1] = PWRSTS_OFF_RET
, /* tesla_l1 */
119 [2] = PWRSTS_OFF_RET
, /* tesla_l2 */
122 [0] = PWRDM_POWER_ON
, /* tesla_edma */
123 [1] = PWRDM_POWER_ON
, /* tesla_l1 */
124 [2] = PWRDM_POWER_ON
, /* tesla_l2 */
128 /* wkup_44xx_pwrdm: Wake-up power domain */
129 static struct powerdomain wkup_44xx_pwrdm
= {
130 .name
= "wkup_pwrdm",
131 .prcm_offs
= OMAP4430_PRM_WKUP_MOD
,
132 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP4430
),
133 .pwrsts
= PWRDM_POWER_ON
,
136 [0] = PWRDM_POWER_OFF
, /* wkup_bank */
139 [0] = PWRDM_POWER_ON
, /* wkup_bank */
143 /* cpu0_44xx_pwrdm: MPU0 processor and Neon coprocessor power domain */
144 static struct powerdomain cpu0_44xx_pwrdm
= {
145 .name
= "cpu0_pwrdm",
146 .prcm_offs
= OMAP4430_CHIRONSS_CHIRONSS_CPU0_MOD
,
147 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP4430
),
148 .pwrsts
= PWRSTS_OFF_RET_ON
,
149 .pwrsts_logic_ret
= PWRSTS_OFF_RET
,
152 [0] = PWRSTS_OFF_RET
, /* cpu0_l1 */
155 [0] = PWRDM_POWER_ON
, /* cpu0_l1 */
159 /* cpu1_44xx_pwrdm: MPU1 processor and Neon coprocessor power domain */
160 static struct powerdomain cpu1_44xx_pwrdm
= {
161 .name
= "cpu1_pwrdm",
162 .prcm_offs
= OMAP4430_CHIRONSS_CHIRONSS_CPU1_MOD
,
163 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP4430
),
164 .pwrsts
= PWRSTS_OFF_RET_ON
,
165 .pwrsts_logic_ret
= PWRSTS_OFF_RET
,
168 [0] = PWRSTS_OFF_RET
, /* cpu1_l1 */
171 [0] = PWRDM_POWER_ON
, /* cpu1_l1 */
175 /* emu_44xx_pwrdm: Emulation power domain */
176 static struct powerdomain emu_44xx_pwrdm
= {
178 .prcm_offs
= OMAP4430_PRM_EMU_MOD
,
179 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP4430
),
180 .pwrsts
= PWRSTS_OFF_ON
,
183 [0] = PWRDM_POWER_OFF
, /* emu_bank */
186 [0] = PWRDM_POWER_ON
, /* emu_bank */
190 /* mpu_44xx_pwrdm: Modena processor and the Neon coprocessor power domain */
191 static struct powerdomain mpu_44xx_pwrdm
= {
193 .prcm_offs
= OMAP4430_PRM_MPU_MOD
,
194 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP4430
),
195 .pwrsts
= PWRSTS_OFF_RET_ON
,
196 .pwrsts_logic_ret
= PWRSTS_OFF_RET
,
199 [0] = PWRSTS_OFF_RET
, /* mpu_l1 */
200 [1] = PWRSTS_OFF_RET
, /* mpu_l2 */
201 [2] = PWRDM_POWER_RET
, /* mpu_ram */
204 [0] = PWRDM_POWER_ON
, /* mpu_l1 */
205 [1] = PWRDM_POWER_ON
, /* mpu_l2 */
206 [2] = PWRDM_POWER_ON
, /* mpu_ram */
210 /* ivahd_44xx_pwrdm: IVA-HD power domain */
211 static struct powerdomain ivahd_44xx_pwrdm
= {
212 .name
= "ivahd_pwrdm",
213 .prcm_offs
= OMAP4430_PRM_IVAHD_MOD
,
214 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP4430
),
215 .pwrsts
= PWRSTS_OFF_RET_ON
,
216 .pwrsts_logic_ret
= PWRDM_POWER_OFF
,
219 [0] = PWRDM_POWER_OFF
, /* hwa_mem */
220 [1] = PWRSTS_OFF_RET
, /* sl2_mem */
221 [2] = PWRSTS_OFF_RET
, /* tcm1_mem */
222 [3] = PWRSTS_OFF_RET
, /* tcm2_mem */
225 [0] = PWRDM_POWER_ON
, /* hwa_mem */
226 [1] = PWRDM_POWER_ON
, /* sl2_mem */
227 [2] = PWRDM_POWER_ON
, /* tcm1_mem */
228 [3] = PWRDM_POWER_ON
, /* tcm2_mem */
232 /* cam_44xx_pwrdm: Camera subsystem power domain */
233 static struct powerdomain cam_44xx_pwrdm
= {
235 .prcm_offs
= OMAP4430_PRM_CAM_MOD
,
236 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP4430
),
237 .pwrsts
= PWRSTS_OFF_ON
,
240 [0] = PWRDM_POWER_OFF
, /* cam_mem */
243 [0] = PWRDM_POWER_ON
, /* cam_mem */
247 /* l3init_44xx_pwrdm: L3 initators pheripherals power domain */
248 static struct powerdomain l3init_44xx_pwrdm
= {
249 .name
= "l3init_pwrdm",
250 .prcm_offs
= OMAP4430_PRM_L3INIT_MOD
,
251 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP4430
),
252 .pwrsts
= PWRSTS_OFF_RET_ON
,
253 .pwrsts_logic_ret
= PWRSTS_OFF_RET
,
256 [0] = PWRDM_POWER_OFF
, /* l3init_bank1 */
259 [0] = PWRDM_POWER_ON
, /* l3init_bank1 */
263 /* l4per_44xx_pwrdm: Target peripherals power domain */
264 static struct powerdomain l4per_44xx_pwrdm
= {
265 .name
= "l4per_pwrdm",
266 .prcm_offs
= OMAP4430_PRM_L4PER_MOD
,
267 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP4430
),
268 .pwrsts
= PWRSTS_OFF_RET_ON
,
269 .pwrsts_logic_ret
= PWRSTS_OFF_RET
,
272 [0] = PWRDM_POWER_OFF
, /* nonretained_bank */
273 [1] = PWRDM_POWER_RET
, /* retained_bank */
276 [0] = PWRDM_POWER_ON
, /* nonretained_bank */
277 [1] = PWRDM_POWER_ON
, /* retained_bank */
282 * always_on_core_44xx_pwrdm: Always ON logic that sits in VDD_CORE voltage
285 static struct powerdomain always_on_core_44xx_pwrdm
= {
286 .name
= "always_on_core_pwrdm",
287 .prcm_offs
= OMAP4430_PRM_ALWAYS_ON_MOD
,
288 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP4430
),
289 .pwrsts
= PWRDM_POWER_ON
,
292 /* cefuse_44xx_pwrdm: Customer efuse controller power domain */
293 static struct powerdomain cefuse_44xx_pwrdm
= {
294 .name
= "cefuse_pwrdm",
295 .prcm_offs
= OMAP4430_PRM_CEFUSE_MOD
,
296 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP4430
),
297 .pwrsts
= PWRSTS_OFF_ON
,
301 * The following power domains are not under SW control