2 * OMAP24XX powerdomain definitions
4 * Copyright (C) 2007-2008 Texas Instruments, Inc.
5 * Copyright (C) 2007-2009 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_POWERDOMAINS24XX
16 #define ARCH_ARM_MACH_OMAP2_POWERDOMAINS24XX
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-24xx.h"
29 #include "cm-regbits-24xx.h"
31 /* 24XX powerdomains and dependencies */
33 #ifdef CONFIG_ARCH_OMAP2
37 static struct powerdomain dsp_pwrdm
= {
39 .prcm_offs
= OMAP24XX_DSP_MOD
,
40 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP24XX
),
41 .pwrsts
= PWRSTS_OFF_RET_ON
,
42 .pwrsts_logic_ret
= PWRDM_POWER_RET
,
45 [0] = PWRDM_POWER_RET
,
52 static struct powerdomain mpu_24xx_pwrdm
= {
55 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP24XX
),
56 .pwrsts
= PWRSTS_OFF_RET_ON
,
57 .pwrsts_logic_ret
= PWRSTS_OFF_RET
,
60 [0] = PWRDM_POWER_RET
,
67 static struct powerdomain core_24xx_pwrdm
= {
69 .prcm_offs
= CORE_MOD
,
70 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP24XX
),
71 .pwrsts
= PWRSTS_OFF_RET_ON
,
74 [0] = PWRSTS_OFF_RET
, /* MEM1RETSTATE */
75 [1] = PWRSTS_OFF_RET
, /* MEM2RETSTATE */
76 [2] = PWRSTS_OFF_RET
, /* MEM3RETSTATE */
79 [0] = PWRSTS_OFF_RET_ON
, /* MEM1ONSTATE */
80 [1] = PWRSTS_OFF_RET_ON
, /* MEM2ONSTATE */
81 [2] = PWRSTS_OFF_RET_ON
, /* MEM3ONSTATE */
85 #endif /* CONFIG_ARCH_OMAP2 */
90 * 2430-specific powerdomains
93 #ifdef CONFIG_ARCH_OMAP2430
95 /* XXX 2430 KILLDOMAINWKUP bit? No current users apparently */
97 static struct powerdomain mdm_pwrdm
= {
99 .prcm_offs
= OMAP2430_MDM_MOD
,
100 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2430
),
101 .pwrsts
= PWRSTS_OFF_RET_ON
,
102 .pwrsts_logic_ret
= PWRDM_POWER_RET
,
105 [0] = PWRDM_POWER_RET
, /* MEMRETSTATE */
108 [0] = PWRDM_POWER_ON
, /* MEMONSTATE */
112 #endif /* CONFIG_ARCH_OMAP2430 */