aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/powerdomains_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/powerdomains_data.c')
-rw-r--r--arch/arm/mach-omap2/powerdomains_data.c153
1 files changed, 153 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/powerdomains_data.c b/arch/arm/mach-omap2/powerdomains_data.c
new file mode 100644
index 000000000000..475763e42f35
--- /dev/null
+++ b/arch/arm/mach-omap2/powerdomains_data.c
@@ -0,0 +1,153 @@
1/*
2 * OMAP2/3 common powerdomain definitions
3 *
4 * Copyright (C) 2007-2008 Texas Instruments, Inc.
5 * Copyright (C) 2007-2009 Nokia Corporation
6 *
7 * Written by Paul Walmsley
8 * Debugging and integration fixes by Jouni Högander
9 *
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.
13 */
14
15/*
16 * To Do List
17 * -> Move the Sleep/Wakeup dependencies from Power Domain framework to
18 * Clock Domain Framework
19 */
20
21/*
22 * This file contains all of the powerdomains that have some element
23 * of software control for the OMAP24xx and OMAP34xx chips.
24 *
25 * This is not an exhaustive listing of powerdomains on the chips; only
26 * powerdomains that can be controlled in software.
27 */
28
29/*
30 * The names for the DSP/IVA2 powerdomains are confusing.
31 *
32 * Most OMAP chips have an on-board DSP.
33 *
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."
41 *
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.
44 *
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.
47 */
48
49#include <linux/init.h>
50#include <plat/powerdomain.h>
51
52#include "prcm-common.h"
53#include "prm.h"
54#include "cm.h"
55#include "powerdomains24xx.h"
56#include "powerdomains34xx.h"
57#include "powerdomains44xx.h"
58
59/* OMAP2/3-common powerdomains */
60
61#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
62
63/*
64 * The GFX powerdomain is not present on 3430ES2, but currently we do not
65 * have a macro to filter it out at compile-time.
66 */
67static struct powerdomain gfx_omap2_pwrdm = {
68 .name = "gfx_pwrdm",
69 .prcm_offs = GFX_MOD,
70 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX |
71 CHIP_IS_OMAP3430ES1),
72 .pwrsts = PWRSTS_OFF_RET_ON,
73 .pwrsts_logic_ret = PWRDM_POWER_RET,
74 .banks = 1,
75 .pwrsts_mem_ret = {
76 [0] = PWRDM_POWER_RET, /* MEMRETSTATE */
77 },
78 .pwrsts_mem_on = {
79 [0] = PWRDM_POWER_ON, /* MEMONSTATE */
80 },
81};
82
83static struct powerdomain wkup_omap2_pwrdm = {
84 .name = "wkup_pwrdm",
85 .prcm_offs = WKUP_MOD,
86 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX | CHIP_IS_OMAP3430),
87};
88
89#endif
90
91
92/* As powerdomains are added or removed above, this list must also be changed */
93static struct powerdomain *powerdomains_omap[] __initdata = {
94
95#if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3)
96 &wkup_omap2_pwrdm,
97 &gfx_omap2_pwrdm,
98#endif
99
100#ifdef CONFIG_ARCH_OMAP2
101 &dsp_pwrdm,
102 &mpu_24xx_pwrdm,
103 &core_24xx_pwrdm,
104#endif
105
106#ifdef CONFIG_ARCH_OMAP2430
107 &mdm_pwrdm,
108#endif
109
110#ifdef CONFIG_ARCH_OMAP3
111 &iva2_pwrdm,
112 &mpu_3xxx_pwrdm,
113 &neon_pwrdm,
114 &core_3xxx_pre_es3_1_pwrdm,
115 &core_3xxx_es3_1_pwrdm,
116 &cam_pwrdm,
117 &dss_pwrdm,
118 &per_pwrdm,
119 &emu_pwrdm,
120 &sgx_pwrdm,
121 &usbhost_pwrdm,
122 &dpll1_pwrdm,
123 &dpll2_pwrdm,
124 &dpll3_pwrdm,
125 &dpll4_pwrdm,
126 &dpll5_pwrdm,
127#endif
128
129#ifdef CONFIG_ARCH_OMAP4
130 &core_44xx_pwrdm,
131 &gfx_44xx_pwrdm,
132 &abe_44xx_pwrdm,
133 &dss_44xx_pwrdm,
134 &tesla_44xx_pwrdm,
135 &wkup_44xx_pwrdm,
136 &cpu0_44xx_pwrdm,
137 &cpu1_44xx_pwrdm,
138 &emu_44xx_pwrdm,
139 &mpu_44xx_pwrdm,
140 &ivahd_44xx_pwrdm,
141 &cam_44xx_pwrdm,
142 &l3init_44xx_pwrdm,
143 &l4per_44xx_pwrdm,
144 &always_on_core_44xx_pwrdm,
145 &cefuse_44xx_pwrdm,
146#endif
147 NULL
148};
149
150void pwrdm_fw_init(void)
151{
152 pwrdm_init(powerdomains_omap);
153}