2 * OMAP2/3 common 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.
17 * -> Move the Sleep/Wakeup dependencies from Power Domain framework to
18 * Clock Domain Framework
21 #ifndef ARCH_ARM_MACH_OMAP2_POWERDOMAINS
22 #define ARCH_ARM_MACH_OMAP2_POWERDOMAINS
25 * This file contains all of the powerdomains that have some element
26 * of software control for the OMAP24xx and OMAP34xx chips.
28 * This is not an exhaustive listing of powerdomains on the chips; only
29 * powerdomains that can be controlled in software.
33 * The names for the DSP/IVA2 powerdomains are confusing.
35 * Most OMAP chips have an on-board DSP.
37 * On the 2420, this is a 'C55 DSP called, simply, the DSP. Its
38 * powerdomain is called the "DSP power domain." On the 2430, the
39 * on-board DSP is a 'C64 DSP, now called (along with its hardware
40 * accelerators) the IVA2 or IVA2.1. Its powerdomain is still called
41 * the "DSP power domain." On the 3430, the DSP is a 'C64 DSP like the
42 * 2430, also known as the IVA2; but its powerdomain is now called the
43 * "IVA2 power domain."
45 * The 2420 also has something called the IVA, which is a separate ARM
46 * core, and has nothing to do with the DSP/IVA2.
48 * Ideally the DSP/IVA2 could just be the same powerdomain, but the PRCM
49 * address offset is different between the C55 and C64 DSPs.
52 #include <plat/powerdomain.h>
54 #include "prcm-common.h"
57 #include "powerdomains24xx.h"
58 #include "powerdomains34xx.h"
59 #include "powerdomains44xx.h"
61 /* OMAP2/3-common powerdomains */
63 #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
66 * The GFX powerdomain is not present on 3430ES2, but currently we do not
67 * have a macro to filter it out at compile-time.
69 static struct powerdomain gfx_omap2_pwrdm = {
72 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX |
74 .pwrsts = PWRSTS_OFF_RET_ON,
75 .pwrsts_logic_ret = PWRDM_POWER_RET,
78 [0] = PWRDM_POWER_RET, /* MEMRETSTATE */
81 [0] = PWRDM_POWER_ON, /* MEMONSTATE */
85 static struct powerdomain wkup_omap2_pwrdm = {
87 .prcm_offs = WKUP_MOD,
88 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX | CHIP_IS_OMAP3430),
94 /* As powerdomains are added or removed above, this list must also be changed */
95 static struct powerdomain *powerdomains_omap[] __initdata = {
97 #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
102 #ifdef CONFIG_ARCH_OMAP2
108 #ifdef CONFIG_ARCH_OMAP2430
112 #ifdef CONFIG_ARCH_OMAP3
116 &core_3xxx_pre_es3_1_pwrdm,
117 &core_3xxx_es3_1_pwrdm,
131 #ifdef CONFIG_ARCH_OMAP4
146 &always_on_core_44xx_pwrdm,