diff options
author | Paul Walmsley <paul@pwsan.com> | 2008-08-19 04:08:43 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2008-08-19 04:08:43 -0400 |
commit | ecb24aa129c6d4b2152571f856320aa7dea41676 (patch) | |
tree | 9028db53fc4636b77b0ef27d4e26cb2d140a5876 /arch/arm/mach-omap2/powerdomains.h | |
parent | fe6a58f8f50500a4c9a82da4a9bdae41c1500fa0 (diff) |
ARM: OMAP: Powerdomain: Add OMAP3 powerdomains
Add OMAP3-specific powerdomains.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/powerdomains.h')
-rw-r--r-- | arch/arm/mach-omap2/powerdomains.h | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/powerdomains.h b/arch/arm/mach-omap2/powerdomains.h index 325e2ba04067..1e151faebbd3 100644 --- a/arch/arm/mach-omap2/powerdomains.h +++ b/arch/arm/mach-omap2/powerdomains.h | |||
@@ -98,16 +98,28 @@ static struct pwrdm_dep gfx_sgx_wkdeps[] = { | |||
98 | { NULL }, | 98 | { NULL }, |
99 | }; | 99 | }; |
100 | 100 | ||
101 | /* | ||
102 | * 3430: CM_SLEEPDEP_CAM: MPU | ||
103 | * 3430ES1: CM_SLEEPDEP_GFX: MPU | ||
104 | * 3430ES2: CM_SLEEPDEP_SGX: MPU | ||
105 | */ | ||
106 | static struct pwrdm_dep cam_gfx_sleepdeps[] = { | ||
107 | { | ||
108 | .pwrdm_name = "mpu_pwrdm", | ||
109 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430) | ||
110 | }, | ||
111 | { NULL }, | ||
112 | }; | ||
113 | |||
101 | 114 | ||
102 | #include "powerdomains24xx.h" | 115 | #include "powerdomains24xx.h" |
116 | #include "powerdomains34xx.h" | ||
103 | 117 | ||
104 | 118 | ||
105 | /* | 119 | /* |
106 | * OMAP2/3 common powerdomains | 120 | * OMAP2/3 common powerdomains |
107 | */ | 121 | */ |
108 | 122 | ||
109 | /* XXX add sleepdeps for this powerdomain : 3430 */ | ||
110 | |||
111 | /* | 123 | /* |
112 | * The GFX powerdomain is not present on 3430ES2, but currently we do not | 124 | * The GFX powerdomain is not present on 3430ES2, but currently we do not |
113 | * have a macro to filter it out at compile-time. | 125 | * have a macro to filter it out at compile-time. |
@@ -118,6 +130,7 @@ static struct powerdomain gfx_pwrdm = { | |||
118 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX | | 130 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX | |
119 | CHIP_IS_OMAP3430ES1), | 131 | CHIP_IS_OMAP3430ES1), |
120 | .wkdep_srcs = gfx_sgx_wkdeps, | 132 | .wkdep_srcs = gfx_sgx_wkdeps, |
133 | .sleepdep_srcs = cam_gfx_sleepdeps, | ||
121 | .pwrsts = PWRSTS_OFF_RET_ON, | 134 | .pwrsts = PWRSTS_OFF_RET_ON, |
122 | .pwrsts_logic_ret = PWRDM_POWER_RET, | 135 | .pwrsts_logic_ret = PWRDM_POWER_RET, |
123 | .banks = 1, | 136 | .banks = 1, |
@@ -154,6 +167,19 @@ static struct powerdomain *powerdomains_omap[] __initdata = { | |||
154 | &mdm_pwrdm, | 167 | &mdm_pwrdm, |
155 | #endif | 168 | #endif |
156 | 169 | ||
170 | #ifdef CONFIG_ARCH_OMAP34XX | ||
171 | &iva2_pwrdm, | ||
172 | &mpu_34xx_pwrdm, | ||
173 | &neon_pwrdm, | ||
174 | &core_34xx_pwrdm, | ||
175 | &cam_pwrdm, | ||
176 | &dss_pwrdm, | ||
177 | &per_pwrdm, | ||
178 | &emu_pwrdm, | ||
179 | &sgx_pwrdm, | ||
180 | &usbhost_pwrdm, | ||
181 | #endif | ||
182 | |||
157 | NULL | 183 | NULL |
158 | }; | 184 | }; |
159 | 185 | ||