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
22 * This file contains all of the powerdomains that have some element
23 * of software control for the OMAP24xx and OMAP34xx chips.
25 * This is not an exhaustive listing of powerdomains on the chips; only
26 * powerdomains that can be controlled in software.
30 * The names for the DSP/IVA2 powerdomains are confusing.
32 * Most OMAP chips have an on-board DSP.
34 * On the 2420, this is a 'C55 DSP called, simply, the DSP. Its
35 * powerdomain is called the "DSP power domain." On the 2430, the
36 * on-board DSP is a 'C64 DSP, now called (along with its hardware
37 * accelerators) the IVA2 or IVA2.1. Its powerdomain is still called
38 * the "DSP power domain." On the 3430, the DSP is a 'C64 DSP like the
39 * 2430, also known as the IVA2; but its powerdomain is now called the
40 * "IVA2 power domain."
42 * The 2420 also has something called the IVA, which is a separate ARM
43 * core, and has nothing to do with the DSP/IVA2.
45 * Ideally the DSP/IVA2 could just be the same powerdomain, but the PRCM
46 * address offset is different between the C55 and C64 DSPs.
49 #include <linux/init.h>
50 #include <plat/powerdomain.h>
52 #include "prcm-common.h"
55 #include "powerdomains24xx.h"
56 #include "powerdomains34xx.h"
57 #include "powerdomains44xx.h"
58 #include "powerdomains.h"
60 /* OMAP2/3-common powerdomains */
62 #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
65 * The GFX powerdomain is not present on 3430ES2, but currently we do not
66 * have a macro to filter it out at compile-time.
68 static struct powerdomain gfx_omap2_pwrdm = {
71 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX |
73 .pwrsts = PWRSTS_OFF_RET_ON,
74 .pwrsts_logic_ret = PWRDM_POWER_RET,
77 [0] = PWRDM_POWER_RET, /* MEMRETSTATE */
80 [0] = PWRDM_POWER_ON, /* MEMONSTATE */
84 static struct powerdomain wkup_omap2_pwrdm = {
86 .prcm_offs = WKUP_MOD,
87 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX | CHIP_IS_OMAP3430),
93 /* As powerdomains are added or removed above, this list must also be changed */
94 static struct powerdomain *powerdomains_omap[] __initdata = {
96 #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
101 #ifdef CONFIG_ARCH_OMAP2
107 #ifdef CONFIG_ARCH_OMAP2430
111 #ifdef CONFIG_ARCH_OMAP3
115 &core_3xxx_pre_es3_1_pwrdm,
116 &core_3xxx_es3_1_pwrdm,
130 #ifdef CONFIG_ARCH_OMAP4
145 &always_on_core_44xx_pwrdm,
151 void pwrdm_fw_init(void)
153 if (cpu_is_omap24xx())
154 pwrdm_init(powerdomains_omap, &omap2_pwrdm_operations);
155 else if (cpu_is_omap34xx())
156 pwrdm_init(powerdomains_omap, &omap3_pwrdm_operations);
157 else if (cpu_is_omap44xx())
158 pwrdm_init(powerdomains_omap, &omap4_pwrdm_operations);