diff options
author | Paul Walmsley <paul@pwsan.com> | 2010-01-26 22:12:59 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-01-26 22:12:59 -0500 |
commit | 3d309cdef37e238c108cade95a8192d5688bd56a (patch) | |
tree | fe83c602c6ac83555dd6e884d38525ded2eb11bb /arch | |
parent | a26017002847eef09625a94f897a0fb1ff58da4b (diff) |
OMAP2 clockdomain: modem clockdomain is only present on OMAP2430
For some reason, previously, we included the MDM clockdomain on all 24xx,
but the stacked die-on-die modem configuration (chassis mode) is only
available on OMAP2430.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/clockdomains.h | 49 |
1 files changed, 27 insertions, 22 deletions
diff --git a/arch/arm/mach-omap2/clockdomains.h b/arch/arm/mach-omap2/clockdomains.h index 9629ef1c7535..fb026dabfc37 100644 --- a/arch/arm/mach-omap2/clockdomains.h +++ b/arch/arm/mach-omap2/clockdomains.h | |||
@@ -110,10 +110,10 @@ static struct clkdm_dep dsp_24xx_wkdeps[] = { | |||
110 | }; | 110 | }; |
111 | 111 | ||
112 | /* | 112 | /* |
113 | * 2420/2430 PM_WKDEP_MDM: CORE, MPU, WKUP | 113 | * 2420 PM_WKDEP_MPU: CORE, DSP, WKUP |
114 | * XXX This is probably 2430-only; 2420 did not have a stacked modem config. | 114 | * 2430 adds MDM |
115 | */ | 115 | */ |
116 | static struct clkdm_dep mdm_24xx_wkdeps[] = { | 116 | static struct clkdm_dep mpu_24xx_wkdeps[] = { |
117 | { | 117 | { |
118 | .clkdm_name = "core_l3_clkdm", | 118 | .clkdm_name = "core_l3_clkdm", |
119 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) | 119 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) |
@@ -123,31 +123,35 @@ static struct clkdm_dep mdm_24xx_wkdeps[] = { | |||
123 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) | 123 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) |
124 | }, | 124 | }, |
125 | { | 125 | { |
126 | .clkdm_name = "mpu_clkdm", | 126 | .clkdm_name = "dsp_clkdm", |
127 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) | 127 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) |
128 | }, | 128 | }, |
129 | { | 129 | { |
130 | .clkdm_name = "wkup_clkdm", | 130 | .clkdm_name = "wkup_clkdm", |
131 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) | 131 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) |
132 | }, | 132 | }, |
133 | { | ||
134 | .clkdm_name = "mdm_clkdm", | ||
135 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430) | ||
136 | }, | ||
133 | { NULL }, | 137 | { NULL }, |
134 | }; | 138 | }; |
135 | 139 | ||
136 | /* | 140 | /* |
137 | * 2420 PM_WKDEP_MPU: CORE, DSP, WKUP | 141 | * 2420 PM_WKDEP_CORE: DSP, GFX, MPU, WKUP |
138 | * 2430 adds MDM | 142 | * 2430 adds MDM |
139 | */ | 143 | */ |
140 | static struct clkdm_dep mpu_24xx_wkdeps[] = { | 144 | static struct clkdm_dep core_24xx_wkdeps[] = { |
141 | { | 145 | { |
142 | .clkdm_name = "core_l3_clkdm", | 146 | .clkdm_name = "dsp_clkdm", |
143 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) | 147 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) |
144 | }, | 148 | }, |
145 | { | 149 | { |
146 | .clkdm_name = "core_l4_clkdm", | 150 | .clkdm_name = "gfx_clkdm", |
147 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) | 151 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) |
148 | }, | 152 | }, |
149 | { | 153 | { |
150 | .clkdm_name = "dsp_clkdm", | 154 | .clkdm_name = "mpu_clkdm", |
151 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) | 155 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) |
152 | }, | 156 | }, |
153 | { | 157 | { |
@@ -161,17 +165,21 @@ static struct clkdm_dep mpu_24xx_wkdeps[] = { | |||
161 | { NULL }, | 165 | { NULL }, |
162 | }; | 166 | }; |
163 | 167 | ||
164 | /* | 168 | #endif |
165 | * 2420 PM_WKDEP_CORE: DSP, GFX, MPU, WKUP | 169 | |
166 | * 2430 adds MDM | 170 | |
167 | */ | 171 | /* 2430-specific possible wakeup dependencies */ |
168 | static struct clkdm_dep core_24xx_wkdeps[] = { | 172 | |
173 | #ifdef CONFIG_ARCH_OMAP2430 | ||
174 | |||
175 | /* 2430 PM_WKDEP_MDM: CORE, MPU, WKUP */ | ||
176 | static struct clkdm_dep mdm_2430_wkdeps[] = { | ||
169 | { | 177 | { |
170 | .clkdm_name = "dsp_clkdm", | 178 | .clkdm_name = "core_l3_clkdm", |
171 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) | 179 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) |
172 | }, | 180 | }, |
173 | { | 181 | { |
174 | .clkdm_name = "gfx_clkdm", | 182 | .clkdm_name = "core_l4_clkdm", |
175 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) | 183 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) |
176 | }, | 184 | }, |
177 | { | 185 | { |
@@ -182,14 +190,11 @@ static struct clkdm_dep core_24xx_wkdeps[] = { | |||
182 | .clkdm_name = "wkup_clkdm", | 190 | .clkdm_name = "wkup_clkdm", |
183 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) | 191 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) |
184 | }, | 192 | }, |
185 | { | ||
186 | .clkdm_name = "mdm_clkdm", | ||
187 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430) | ||
188 | }, | ||
189 | { NULL }, | 193 | { NULL }, |
190 | }; | 194 | }; |
191 | 195 | ||
192 | #endif | 196 | #endif /* CONFIG_ARCH_OMAP2430 */ |
197 | |||
193 | 198 | ||
194 | /* 34XX-specific possible dependencies */ | 199 | /* 34XX-specific possible dependencies */ |
195 | 200 | ||
@@ -549,7 +554,7 @@ static struct clockdomain mdm_clkdm = { | |||
549 | .clkstctrl_reg = OMAP2430_CM_REGADDR(OMAP2430_MDM_MOD, | 554 | .clkstctrl_reg = OMAP2430_CM_REGADDR(OMAP2430_MDM_MOD, |
550 | OMAP2_CM_CLKSTCTRL), | 555 | OMAP2_CM_CLKSTCTRL), |
551 | .dep_bit = OMAP2430_PM_WKDEP_MPU_EN_MDM_SHIFT, | 556 | .dep_bit = OMAP2430_PM_WKDEP_MPU_EN_MDM_SHIFT, |
552 | .wkdep_srcs = mdm_24xx_wkdeps, | 557 | .wkdep_srcs = mdm_2430_wkdeps, |
553 | .clktrctrl_mask = OMAP2430_AUTOSTATE_MDM_MASK, | 558 | .clktrctrl_mask = OMAP2430_AUTOSTATE_MDM_MASK, |
554 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430), | 559 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430), |
555 | }; | 560 | }; |