2 * OMAP3 powerdomain definitions
4 * Copyright (C) 2007-2008 Texas Instruments, Inc.
5 * Copyright (C) 2007-2010 Nokia Corporation
7 * Written by Paul Walmsley
8 * Debugging and integration fixes by Jouni Högander
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
15 #ifndef ARCH_ARM_MACH_OMAP2_POWERDOMAINS34XX
16 #define ARCH_ARM_MACH_OMAP2_POWERDOMAINS34XX
19 * N.B. If powerdomains are added or removed from this file, update
20 * the array in mach-omap2/powerdomains.h.
23 #include <plat/powerdomain.h>
25 #include "prcm-common.h"
27 #include "prm-regbits-34xx.h"
29 #include "cm-regbits-34xx.h"
32 * 34XX-specific powerdomains, dependencies
35 #ifdef CONFIG_ARCH_OMAP3
41 static struct powerdomain iva2_pwrdm = {
43 .prcm_offs = OMAP3430_IVA2_MOD,
44 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
45 .pwrsts = PWRSTS_OFF_RET_ON,
46 .pwrsts_logic_ret = PWRSTS_OFF_RET,
62 static struct powerdomain mpu_3xxx_pwrdm = {
65 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
66 .pwrsts = PWRSTS_OFF_RET_ON,
67 .pwrsts_logic_ret = PWRSTS_OFF_RET,
68 .flags = PWRDM_HAS_MPU_QUIRK,
78 static struct powerdomain core_3xxx_pre_es3_1_pwrdm = {
80 .prcm_offs = CORE_MOD,
81 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430ES1 |
83 CHIP_IS_OMAP3430ES3_0),
84 .pwrsts = PWRSTS_OFF_RET_ON,
87 [0] = PWRSTS_OFF_RET, /* MEM1RETSTATE */
88 [1] = PWRSTS_OFF_RET, /* MEM2RETSTATE */
91 [0] = PWRSTS_OFF_RET_ON, /* MEM1ONSTATE */
92 [1] = PWRSTS_OFF_RET_ON, /* MEM2ONSTATE */
96 static struct powerdomain core_3xxx_es3_1_pwrdm = {
98 .prcm_offs = CORE_MOD,
99 .omap_chip = OMAP_CHIP_INIT(CHIP_GE_OMAP3430ES3_1),
100 .pwrsts = PWRSTS_OFF_RET_ON,
101 .flags = PWRDM_HAS_HDWR_SAR, /* for USBTLL only */
104 [0] = PWRSTS_OFF_RET, /* MEM1RETSTATE */
105 [1] = PWRSTS_OFF_RET, /* MEM2RETSTATE */
108 [0] = PWRSTS_OFF_RET_ON, /* MEM1ONSTATE */
109 [1] = PWRSTS_OFF_RET_ON, /* MEM2ONSTATE */
113 static struct powerdomain dss_pwrdm = {
115 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
116 .prcm_offs = OMAP3430_DSS_MOD,
117 .pwrsts = PWRSTS_OFF_RET_ON,
118 .pwrsts_logic_ret = PWRDM_POWER_RET,
121 [0] = PWRDM_POWER_RET, /* MEMRETSTATE */
124 [0] = PWRDM_POWER_ON, /* MEMONSTATE */
129 * Although the 34XX TRM Rev K Table 4-371 notes that retention is a
130 * possible SGX powerstate, the SGX device itself does not support
133 static struct powerdomain sgx_pwrdm = {
135 .prcm_offs = OMAP3430ES2_SGX_MOD,
136 .omap_chip = OMAP_CHIP_INIT(CHIP_GE_OMAP3430ES2),
137 /* XXX This is accurate for 3430 SGX, but what about GFX? */
138 .pwrsts = PWRSTS_OFF_ON,
139 .pwrsts_logic_ret = PWRDM_POWER_RET,
142 [0] = PWRDM_POWER_RET, /* MEMRETSTATE */
145 [0] = PWRDM_POWER_ON, /* MEMONSTATE */
149 static struct powerdomain cam_pwrdm = {
151 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
152 .prcm_offs = OMAP3430_CAM_MOD,
153 .pwrsts = PWRSTS_OFF_RET_ON,
154 .pwrsts_logic_ret = PWRDM_POWER_RET,
157 [0] = PWRDM_POWER_RET, /* MEMRETSTATE */
160 [0] = PWRDM_POWER_ON, /* MEMONSTATE */
164 static struct powerdomain per_pwrdm = {
166 .prcm_offs = OMAP3430_PER_MOD,
167 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
168 .pwrsts = PWRSTS_OFF_RET_ON,
169 .pwrsts_logic_ret = PWRSTS_OFF_RET,
172 [0] = PWRDM_POWER_RET, /* MEMRETSTATE */
175 [0] = PWRDM_POWER_ON, /* MEMONSTATE */
179 static struct powerdomain emu_pwrdm = {
181 .prcm_offs = OMAP3430_EMU_MOD,
182 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
185 static struct powerdomain neon_pwrdm = {
186 .name = "neon_pwrdm",
187 .prcm_offs = OMAP3430_NEON_MOD,
188 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
189 .pwrsts = PWRSTS_OFF_RET_ON,
190 .pwrsts_logic_ret = PWRDM_POWER_RET,
193 static struct powerdomain usbhost_pwrdm = {
194 .name = "usbhost_pwrdm",
195 .prcm_offs = OMAP3430ES2_USBHOST_MOD,
196 .omap_chip = OMAP_CHIP_INIT(CHIP_GE_OMAP3430ES2),
197 .pwrsts = PWRSTS_OFF_RET_ON,
198 .pwrsts_logic_ret = PWRDM_POWER_RET,
200 * REVISIT: Enabling usb host save and restore mechanism seems to
201 * leave the usb host domain permanently in ACTIVE mode after
202 * changing the usb host power domain state from OFF to active once.
205 /*.flags = PWRDM_HAS_HDWR_SAR,*/ /* for USBHOST ctrlr only */
208 [0] = PWRDM_POWER_RET, /* MEMRETSTATE */
211 [0] = PWRDM_POWER_ON, /* MEMONSTATE */
215 static struct powerdomain dpll1_pwrdm = {
216 .name = "dpll1_pwrdm",
217 .prcm_offs = MPU_MOD,
218 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
221 static struct powerdomain dpll2_pwrdm = {
222 .name = "dpll2_pwrdm",
223 .prcm_offs = OMAP3430_IVA2_MOD,
224 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
227 static struct powerdomain dpll3_pwrdm = {
228 .name = "dpll3_pwrdm",
229 .prcm_offs = PLL_MOD,
230 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
233 static struct powerdomain dpll4_pwrdm = {
234 .name = "dpll4_pwrdm",
235 .prcm_offs = PLL_MOD,
236 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
239 static struct powerdomain dpll5_pwrdm = {
240 .name = "dpll5_pwrdm",
241 .prcm_offs = PLL_MOD,
242 .omap_chip = OMAP_CHIP_INIT(CHIP_GE_OMAP3430ES2),
246 #endif /* CONFIG_ARCH_OMAP3 */