1 #ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_24XX_H
2 #define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_24XX_H
3 
4 /*
5  * OMAP24XX Clock Management register bits
6  *
7  * Copyright (C) 2007 Texas Instruments, Inc.
8  * Copyright (C) 2007 Nokia Corporation
9  *
10  * Written by Paul Walmsley
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License version 2 as
14  * published by the Free Software Foundation.
15  */
16 
17 /* Bits shared between registers */
18 
19 /* CM_FCLKEN1_CORE and CM_ICLKEN1_CORE shared bits */
20 #define OMAP24XX_EN_CAM_SHIFT				31
21 #define OMAP24XX_EN_CAM_MASK				(1 << 31)
22 #define OMAP24XX_EN_WDT4_SHIFT				29
23 #define OMAP24XX_EN_WDT4_MASK				(1 << 29)
24 #define OMAP2420_EN_WDT3_SHIFT				28
25 #define OMAP2420_EN_WDT3_MASK				(1 << 28)
26 #define OMAP24XX_EN_MSPRO_SHIFT				27
27 #define OMAP24XX_EN_MSPRO_MASK				(1 << 27)
28 #define OMAP24XX_EN_FAC_SHIFT				25
29 #define OMAP24XX_EN_FAC_MASK				(1 << 25)
30 #define OMAP2420_EN_EAC_SHIFT				24
31 #define OMAP2420_EN_EAC_MASK				(1 << 24)
32 #define OMAP24XX_EN_HDQ_SHIFT				23
33 #define OMAP24XX_EN_HDQ_MASK				(1 << 23)
34 #define OMAP2420_EN_I2C2_SHIFT				20
35 #define OMAP2420_EN_I2C2_MASK				(1 << 20)
36 #define OMAP2420_EN_I2C1_SHIFT				19
37 #define OMAP2420_EN_I2C1_MASK				(1 << 19)
38 
39 /* CM_FCLKEN2_CORE and CM_ICLKEN2_CORE shared bits */
40 #define OMAP2430_EN_MCBSP5_SHIFT			5
41 #define OMAP2430_EN_MCBSP5_MASK				(1 << 5)
42 #define OMAP2430_EN_MCBSP4_SHIFT			4
43 #define OMAP2430_EN_MCBSP4_MASK				(1 << 4)
44 #define OMAP2430_EN_MCBSP3_SHIFT			3
45 #define OMAP2430_EN_MCBSP3_MASK				(1 << 3)
46 #define OMAP24XX_EN_SSI_SHIFT				1
47 #define OMAP24XX_EN_SSI_MASK				(1 << 1)
48 
49 /* CM_FCLKEN_WKUP and CM_ICLKEN_WKUP shared bits */
50 #define OMAP24XX_EN_MPU_WDT_SHIFT			3
51 #define OMAP24XX_EN_MPU_WDT_MASK			(1 << 3)
52 
53 /* Bits specific to each register */
54 
55 /* CM_IDLEST_MPU */
56 /* 2430 only */
57 #define OMAP2430_ST_MPU_MASK				(1 << 0)
58 
59 /* CM_CLKSEL_MPU */
60 #define OMAP24XX_CLKSEL_MPU_SHIFT			0
61 #define OMAP24XX_CLKSEL_MPU_MASK			(0x1f << 0)
62 
63 /* CM_CLKSTCTRL_MPU */
64 #define OMAP24XX_AUTOSTATE_MPU_SHIFT			0
65 #define OMAP24XX_AUTOSTATE_MPU_MASK			(1 << 0)
66 
67 /* CM_FCLKEN1_CORE specific bits*/
68 #define OMAP24XX_EN_TV_SHIFT				2
69 #define OMAP24XX_EN_TV_MASK				(1 << 2)
70 #define OMAP24XX_EN_DSS2_SHIFT				1
71 #define OMAP24XX_EN_DSS2_MASK				(1 << 1)
72 #define OMAP24XX_EN_DSS1_SHIFT				0
73 #define OMAP24XX_EN_DSS1_MASK				(1 << 0)
74 
75 /* CM_FCLKEN2_CORE specific bits */
76 #define OMAP2430_EN_I2CHS2_SHIFT			20
77 #define OMAP2430_EN_I2CHS2_MASK				(1 << 20)
78 #define OMAP2430_EN_I2CHS1_SHIFT			19
79 #define OMAP2430_EN_I2CHS1_MASK				(1 << 19)
80 #define OMAP2430_EN_MMCHSDB2_SHIFT			17
81 #define OMAP2430_EN_MMCHSDB2_MASK			(1 << 17)
82 #define OMAP2430_EN_MMCHSDB1_SHIFT			16
83 #define OMAP2430_EN_MMCHSDB1_MASK			(1 << 16)
84 
85 /* CM_ICLKEN1_CORE specific bits */
86 #define OMAP24XX_EN_MAILBOXES_SHIFT			30
87 #define OMAP24XX_EN_MAILBOXES_MASK			(1 << 30)
88 #define OMAP24XX_EN_DSS_SHIFT				0
89 #define OMAP24XX_EN_DSS_MASK				(1 << 0)
90 
91 /* CM_ICLKEN2_CORE specific bits */
92 
93 /* CM_ICLKEN3_CORE */
94 /* 2430 only */
95 #define OMAP2430_EN_SDRC_SHIFT				2
96 #define OMAP2430_EN_SDRC_MASK				(1 << 2)
97 
98 /* CM_ICLKEN4_CORE */
99 #define OMAP24XX_EN_PKA_SHIFT				4
100 #define OMAP24XX_EN_PKA_MASK				(1 << 4)
101 #define OMAP24XX_EN_AES_SHIFT				3
102 #define OMAP24XX_EN_AES_MASK				(1 << 3)
103 #define OMAP24XX_EN_RNG_SHIFT				2
104 #define OMAP24XX_EN_RNG_MASK				(1 << 2)
105 #define OMAP24XX_EN_SHA_SHIFT				1
106 #define OMAP24XX_EN_SHA_MASK				(1 << 1)
107 #define OMAP24XX_EN_DES_SHIFT				0
108 #define OMAP24XX_EN_DES_MASK				(1 << 0)
109 
110 /* CM_IDLEST1_CORE specific bits */
111 #define OMAP24XX_ST_MAILBOXES_SHIFT			30
112 #define OMAP24XX_ST_MAILBOXES_MASK			(1 << 30)
113 #define OMAP24XX_ST_WDT4_SHIFT				29
114 #define OMAP24XX_ST_WDT4_MASK				(1 << 29)
115 #define OMAP2420_ST_WDT3_SHIFT				28
116 #define OMAP2420_ST_WDT3_MASK				(1 << 28)
117 #define OMAP24XX_ST_MSPRO_SHIFT				27
118 #define OMAP24XX_ST_MSPRO_MASK				(1 << 27)
119 #define OMAP24XX_ST_FAC_SHIFT				25
120 #define OMAP24XX_ST_FAC_MASK				(1 << 25)
121 #define OMAP2420_ST_EAC_SHIFT				24
122 #define OMAP2420_ST_EAC_MASK				(1 << 24)
123 #define OMAP24XX_ST_HDQ_SHIFT				23
124 #define OMAP24XX_ST_HDQ_MASK				(1 << 23)
125 #define OMAP2420_ST_I2C2_SHIFT				20
126 #define OMAP2420_ST_I2C2_MASK				(1 << 20)
127 #define OMAP2430_ST_I2CHS1_SHIFT			19
128 #define OMAP2430_ST_I2CHS1_MASK				(1 << 19)
129 #define OMAP2420_ST_I2C1_SHIFT				19
130 #define OMAP2420_ST_I2C1_MASK				(1 << 19)
131 #define OMAP2430_ST_I2CHS2_SHIFT			20
132 #define OMAP2430_ST_I2CHS2_MASK				(1 << 20)
133 #define OMAP24XX_ST_MCBSP2_SHIFT			16
134 #define OMAP24XX_ST_MCBSP2_MASK				(1 << 16)
135 #define OMAP24XX_ST_MCBSP1_SHIFT			15
136 #define OMAP24XX_ST_MCBSP1_MASK				(1 << 15)
137 #define OMAP24XX_ST_DSS_SHIFT				0
138 #define OMAP24XX_ST_DSS_MASK				(1 << 0)
139 
140 /* CM_IDLEST2_CORE */
141 #define OMAP2430_ST_MCBSP5_SHIFT			5
142 #define OMAP2430_ST_MCBSP5_MASK				(1 << 5)
143 #define OMAP2430_ST_MCBSP4_SHIFT			4
144 #define OMAP2430_ST_MCBSP4_MASK				(1 << 4)
145 #define OMAP2430_ST_MCBSP3_SHIFT			3
146 #define OMAP2430_ST_MCBSP3_MASK				(1 << 3)
147 #define OMAP24XX_ST_SSI_SHIFT				1
148 #define OMAP24XX_ST_SSI_MASK				(1 << 1)
149 
150 /* CM_IDLEST3_CORE */
151 /* 2430 only */
152 #define OMAP2430_ST_SDRC_MASK				(1 << 2)
153 
154 /* CM_IDLEST4_CORE */
155 #define OMAP24XX_ST_PKA_SHIFT				4
156 #define OMAP24XX_ST_PKA_MASK				(1 << 4)
157 #define OMAP24XX_ST_AES_SHIFT				3
158 #define OMAP24XX_ST_AES_MASK				(1 << 3)
159 #define OMAP24XX_ST_RNG_SHIFT				2
160 #define OMAP24XX_ST_RNG_MASK				(1 << 2)
161 #define OMAP24XX_ST_SHA_SHIFT				1
162 #define OMAP24XX_ST_SHA_MASK				(1 << 1)
163 #define OMAP24XX_ST_DES_SHIFT				0
164 #define OMAP24XX_ST_DES_MASK				(1 << 0)
165 
166 /* CM_AUTOIDLE1_CORE */
167 #define OMAP24XX_AUTO_CAM_MASK				(1 << 31)
168 #define OMAP24XX_AUTO_MAILBOXES_MASK			(1 << 30)
169 #define OMAP24XX_AUTO_WDT4_MASK				(1 << 29)
170 #define OMAP2420_AUTO_WDT3_MASK				(1 << 28)
171 #define OMAP24XX_AUTO_MSPRO_MASK			(1 << 27)
172 #define OMAP2420_AUTO_MMC_MASK				(1 << 26)
173 #define OMAP24XX_AUTO_FAC_MASK				(1 << 25)
174 #define OMAP2420_AUTO_EAC_MASK				(1 << 24)
175 #define OMAP24XX_AUTO_HDQ_MASK				(1 << 23)
176 #define OMAP24XX_AUTO_UART2_MASK			(1 << 22)
177 #define OMAP24XX_AUTO_UART1_MASK			(1 << 21)
178 #define OMAP24XX_AUTO_I2C2_MASK				(1 << 20)
179 #define OMAP24XX_AUTO_I2C1_MASK				(1 << 19)
180 #define OMAP24XX_AUTO_MCSPI2_MASK			(1 << 18)
181 #define OMAP24XX_AUTO_MCSPI1_MASK			(1 << 17)
182 #define OMAP24XX_AUTO_MCBSP2_MASK			(1 << 16)
183 #define OMAP24XX_AUTO_MCBSP1_MASK			(1 << 15)
184 #define OMAP24XX_AUTO_GPT12_MASK			(1 << 14)
185 #define OMAP24XX_AUTO_GPT11_MASK			(1 << 13)
186 #define OMAP24XX_AUTO_GPT10_MASK			(1 << 12)
187 #define OMAP24XX_AUTO_GPT9_MASK				(1 << 11)
188 #define OMAP24XX_AUTO_GPT8_MASK				(1 << 10)
189 #define OMAP24XX_AUTO_GPT7_MASK				(1 << 9)
190 #define OMAP24XX_AUTO_GPT6_MASK				(1 << 8)
191 #define OMAP24XX_AUTO_GPT5_MASK				(1 << 7)
192 #define OMAP24XX_AUTO_GPT4_MASK				(1 << 6)
193 #define OMAP24XX_AUTO_GPT3_MASK				(1 << 5)
194 #define OMAP24XX_AUTO_GPT2_MASK				(1 << 4)
195 #define OMAP2420_AUTO_VLYNQ_MASK			(1 << 3)
196 #define OMAP24XX_AUTO_DSS_MASK				(1 << 0)
197 
198 /* CM_AUTOIDLE2_CORE */
199 #define OMAP2430_AUTO_MDM_INTC_MASK			(1 << 11)
200 #define OMAP2430_AUTO_GPIO5_MASK			(1 << 10)
201 #define OMAP2430_AUTO_MCSPI3_MASK			(1 << 9)
202 #define OMAP2430_AUTO_MMCHS2_MASK			(1 << 8)
203 #define OMAP2430_AUTO_MMCHS1_MASK			(1 << 7)
204 #define OMAP2430_AUTO_USBHS_MASK			(1 << 6)
205 #define OMAP2430_AUTO_MCBSP5_MASK			(1 << 5)
206 #define OMAP2430_AUTO_MCBSP4_MASK			(1 << 4)
207 #define OMAP2430_AUTO_MCBSP3_MASK			(1 << 3)
208 #define OMAP24XX_AUTO_UART3_MASK			(1 << 2)
209 #define OMAP24XX_AUTO_SSI_MASK				(1 << 1)
210 #define OMAP24XX_AUTO_USB_MASK				(1 << 0)
211 
212 /* CM_AUTOIDLE3_CORE */
213 #define OMAP24XX_AUTO_SDRC_SHIFT			2
214 #define OMAP24XX_AUTO_SDRC_MASK				(1 << 2)
215 #define OMAP24XX_AUTO_GPMC_MASK				(1 << 1)
216 #define OMAP24XX_AUTO_SDMA_MASK				(1 << 0)
217 
218 /* CM_AUTOIDLE4_CORE */
219 #define OMAP24XX_AUTO_PKA_MASK				(1 << 4)
220 #define OMAP24XX_AUTO_AES_MASK				(1 << 3)
221 #define OMAP24XX_AUTO_RNG_MASK				(1 << 2)
222 #define OMAP24XX_AUTO_SHA_MASK				(1 << 1)
223 #define OMAP24XX_AUTO_DES_MASK				(1 << 0)
224 
225 /* CM_CLKSEL1_CORE */
226 #define OMAP24XX_CLKSEL_USB_SHIFT			25
227 #define OMAP24XX_CLKSEL_USB_MASK			(0x7 << 25)
228 #define OMAP24XX_CLKSEL_SSI_SHIFT			20
229 #define OMAP24XX_CLKSEL_SSI_MASK			(0x1f << 20)
230 #define OMAP2420_CLKSEL_VLYNQ_SHIFT			15
231 #define OMAP2420_CLKSEL_VLYNQ_MASK			(0x1f << 15)
232 #define OMAP24XX_CLKSEL_DSS2_SHIFT			13
233 #define OMAP24XX_CLKSEL_DSS2_MASK			(0x1 << 13)
234 #define OMAP24XX_CLKSEL_DSS1_SHIFT			8
235 #define OMAP24XX_CLKSEL_DSS1_MASK			(0x1f << 8)
236 #define OMAP24XX_CLKSEL_L4_SHIFT			5
237 #define OMAP24XX_CLKSEL_L4_MASK				(0x3 << 5)
238 #define OMAP24XX_CLKSEL_L3_SHIFT			0
239 #define OMAP24XX_CLKSEL_L3_MASK				(0x1f << 0)
240 
241 /* CM_CLKSEL2_CORE */
242 #define OMAP24XX_CLKSEL_GPT12_SHIFT			22
243 #define OMAP24XX_CLKSEL_GPT12_MASK			(0x3 << 22)
244 #define OMAP24XX_CLKSEL_GPT11_SHIFT			20
245 #define OMAP24XX_CLKSEL_GPT11_MASK			(0x3 << 20)
246 #define OMAP24XX_CLKSEL_GPT10_SHIFT			18
247 #define OMAP24XX_CLKSEL_GPT10_MASK			(0x3 << 18)
248 #define OMAP24XX_CLKSEL_GPT9_SHIFT			16
249 #define OMAP24XX_CLKSEL_GPT9_MASK			(0x3 << 16)
250 #define OMAP24XX_CLKSEL_GPT8_SHIFT			14
251 #define OMAP24XX_CLKSEL_GPT8_MASK			(0x3 << 14)
252 #define OMAP24XX_CLKSEL_GPT7_SHIFT			12
253 #define OMAP24XX_CLKSEL_GPT7_MASK			(0x3 << 12)
254 #define OMAP24XX_CLKSEL_GPT6_SHIFT			10
255 #define OMAP24XX_CLKSEL_GPT6_MASK			(0x3 << 10)
256 #define OMAP24XX_CLKSEL_GPT5_SHIFT			8
257 #define OMAP24XX_CLKSEL_GPT5_MASK			(0x3 << 8)
258 #define OMAP24XX_CLKSEL_GPT4_SHIFT			6
259 #define OMAP24XX_CLKSEL_GPT4_MASK			(0x3 << 6)
260 #define OMAP24XX_CLKSEL_GPT3_SHIFT			4
261 #define OMAP24XX_CLKSEL_GPT3_MASK			(0x3 << 4)
262 #define OMAP24XX_CLKSEL_GPT2_SHIFT			2
263 #define OMAP24XX_CLKSEL_GPT2_MASK			(0x3 << 2)
264 
265 /* CM_CLKSTCTRL_CORE */
266 #define OMAP24XX_AUTOSTATE_DSS_SHIFT			2
267 #define OMAP24XX_AUTOSTATE_DSS_MASK			(1 << 2)
268 #define OMAP24XX_AUTOSTATE_L4_SHIFT			1
269 #define OMAP24XX_AUTOSTATE_L4_MASK			(1 << 1)
270 #define OMAP24XX_AUTOSTATE_L3_SHIFT			0
271 #define OMAP24XX_AUTOSTATE_L3_MASK			(1 << 0)
272 
273 /* CM_FCLKEN_GFX */
274 #define OMAP24XX_EN_3D_SHIFT				2
275 #define OMAP24XX_EN_3D_MASK				(1 << 2)
276 #define OMAP24XX_EN_2D_SHIFT				1
277 #define OMAP24XX_EN_2D_MASK				(1 << 1)
278 
279 /* CM_ICLKEN_GFX specific bits */
280 
281 /* CM_IDLEST_GFX specific bits */
282 
283 /* CM_CLKSEL_GFX specific bits */
284 
285 /* CM_CLKSTCTRL_GFX */
286 #define OMAP24XX_AUTOSTATE_GFX_SHIFT			0
287 #define OMAP24XX_AUTOSTATE_GFX_MASK			(1 << 0)
288 
289 /* CM_FCLKEN_WKUP specific bits */
290 
291 /* CM_ICLKEN_WKUP specific bits */
292 #define OMAP2430_EN_ICR_SHIFT				6
293 #define OMAP2430_EN_ICR_MASK				(1 << 6)
294 #define OMAP24XX_EN_OMAPCTRL_SHIFT			5
295 #define OMAP24XX_EN_OMAPCTRL_MASK			(1 << 5)
296 #define OMAP24XX_EN_WDT1_SHIFT				4
297 #define OMAP24XX_EN_WDT1_MASK				(1 << 4)
298 #define OMAP24XX_EN_32KSYNC_SHIFT			1
299 #define OMAP24XX_EN_32KSYNC_MASK			(1 << 1)
300 
301 /* CM_IDLEST_WKUP specific bits */
302 #define OMAP2430_ST_ICR_SHIFT				6
303 #define OMAP2430_ST_ICR_MASK				(1 << 6)
304 #define OMAP24XX_ST_OMAPCTRL_SHIFT			5
305 #define OMAP24XX_ST_OMAPCTRL_MASK			(1 << 5)
306 #define OMAP24XX_ST_WDT1_SHIFT				4
307 #define OMAP24XX_ST_WDT1_MASK				(1 << 4)
308 #define OMAP24XX_ST_MPU_WDT_SHIFT			3
309 #define OMAP24XX_ST_MPU_WDT_MASK			(1 << 3)
310 #define OMAP24XX_ST_32KSYNC_SHIFT			1
311 #define OMAP24XX_ST_32KSYNC_MASK			(1 << 1)
312 
313 /* CM_AUTOIDLE_WKUP */
314 #define OMAP24XX_AUTO_OMAPCTRL_MASK			(1 << 5)
315 #define OMAP24XX_AUTO_WDT1_MASK				(1 << 4)
316 #define OMAP24XX_AUTO_MPU_WDT_MASK			(1 << 3)
317 #define OMAP24XX_AUTO_GPIOS_MASK			(1 << 2)
318 #define OMAP24XX_AUTO_32KSYNC_MASK			(1 << 1)
319 #define OMAP24XX_AUTO_GPT1_MASK				(1 << 0)
320 
321 /* CM_CLKSEL_WKUP */
322 #define OMAP24XX_CLKSEL_GPT1_SHIFT			0
323 #define OMAP24XX_CLKSEL_GPT1_MASK			(0x3 << 0)
324 
325 /* CM_CLKEN_PLL */
326 #define OMAP24XX_EN_54M_PLL_SHIFT			6
327 #define OMAP24XX_EN_54M_PLL_MASK			(0x3 << 6)
328 #define OMAP24XX_EN_96M_PLL_SHIFT			2
329 #define OMAP24XX_EN_96M_PLL_MASK			(0x3 << 2)
330 #define OMAP24XX_EN_DPLL_SHIFT				0
331 #define OMAP24XX_EN_DPLL_MASK				(0x3 << 0)
332 
333 /* CM_IDLEST_CKGEN */
334 #define OMAP24XX_ST_54M_APLL_MASK			(1 << 9)
335 #define OMAP24XX_ST_96M_APLL_MASK			(1 << 8)
336 #define OMAP24XX_ST_54M_CLK_MASK			(1 << 6)
337 #define OMAP24XX_ST_12M_CLK_MASK			(1 << 5)
338 #define OMAP24XX_ST_48M_CLK_MASK			(1 << 4)
339 #define OMAP24XX_ST_96M_CLK_MASK			(1 << 2)
340 #define OMAP24XX_ST_CORE_CLK_SHIFT			0
341 #define OMAP24XX_ST_CORE_CLK_MASK			(0x3 << 0)
342 
343 /* CM_AUTOIDLE_PLL */
344 #define OMAP24XX_AUTO_54M_SHIFT				6
345 #define OMAP24XX_AUTO_54M_MASK				(0x3 << 6)
346 #define OMAP24XX_AUTO_96M_SHIFT				2
347 #define OMAP24XX_AUTO_96M_MASK				(0x3 << 2)
348 #define OMAP24XX_AUTO_DPLL_SHIFT			0
349 #define OMAP24XX_AUTO_DPLL_MASK				(0x3 << 0)
350 
351 /* CM_CLKSEL1_PLL */
352 #define OMAP2430_MAXDPLLFASTLOCK_SHIFT			28
353 #define OMAP2430_MAXDPLLFASTLOCK_MASK			(0x7 << 28)
354 #define OMAP24XX_APLLS_CLKIN_SHIFT			23
355 #define OMAP24XX_APLLS_CLKIN_MASK			(0x7 << 23)
356 #define OMAP24XX_DPLL_MULT_SHIFT			12
357 #define OMAP24XX_DPLL_MULT_MASK				(0x3ff << 12)
358 #define OMAP24XX_DPLL_DIV_SHIFT				8
359 #define OMAP24XX_DPLL_DIV_MASK				(0xf << 8)
360 #define OMAP24XX_54M_SOURCE_SHIFT			5
361 #define OMAP24XX_54M_SOURCE_MASK			(1 << 5)
362 #define OMAP2430_96M_SOURCE_SHIFT			4
363 #define OMAP2430_96M_SOURCE_MASK			(1 << 4)
364 #define OMAP24XX_48M_SOURCE_SHIFT			3
365 #define OMAP24XX_48M_SOURCE_MASK			(1 << 3)
366 #define OMAP2430_ALTCLK_SOURCE_SHIFT			0
367 #define OMAP2430_ALTCLK_SOURCE_MASK			(0x7 << 0)
368 
369 /* CM_CLKSEL2_PLL */
370 #define OMAP24XX_CORE_CLK_SRC_SHIFT			0
371 #define OMAP24XX_CORE_CLK_SRC_MASK			(0x3 << 0)
372 
373 /* CM_FCLKEN_DSP */
374 #define OMAP2420_EN_IVA_COP_SHIFT			10
375 #define OMAP2420_EN_IVA_COP_MASK			(1 << 10)
376 #define OMAP2420_EN_IVA_MPU_SHIFT			8
377 #define OMAP2420_EN_IVA_MPU_MASK			(1 << 8)
378 #define OMAP24XX_CM_FCLKEN_DSP_EN_DSP_SHIFT		0
379 #define OMAP24XX_CM_FCLKEN_DSP_EN_DSP_MASK		(1 << 0)
380 
381 /* CM_ICLKEN_DSP */
382 #define OMAP2420_EN_DSP_IPI_SHIFT			1
383 #define OMAP2420_EN_DSP_IPI_MASK			(1 << 1)
384 
385 /* CM_IDLEST_DSP */
386 #define OMAP2420_ST_IVA_MASK				(1 << 8)
387 #define OMAP2420_ST_IPI_MASK				(1 << 1)
388 #define OMAP24XX_ST_DSP_MASK				(1 << 0)
389 
390 /* CM_AUTOIDLE_DSP */
391 #define OMAP2420_AUTO_DSP_IPI_MASK			(1 << 1)
392 
393 /* CM_CLKSEL_DSP */
394 #define OMAP2420_SYNC_IVA_MASK				(1 << 13)
395 #define OMAP2420_CLKSEL_IVA_SHIFT			8
396 #define OMAP2420_CLKSEL_IVA_MASK			(0x1f << 8)
397 #define OMAP24XX_SYNC_DSP_MASK				(1 << 7)
398 #define OMAP24XX_CLKSEL_DSP_IF_SHIFT			5
399 #define OMAP24XX_CLKSEL_DSP_IF_MASK			(0x3 << 5)
400 #define OMAP24XX_CLKSEL_DSP_SHIFT			0
401 #define OMAP24XX_CLKSEL_DSP_MASK			(0x1f << 0)
402 
403 /* CM_CLKSTCTRL_DSP */
404 #define OMAP2420_AUTOSTATE_IVA_SHIFT			8
405 #define OMAP2420_AUTOSTATE_IVA_MASK			(1 << 8)
406 #define OMAP24XX_AUTOSTATE_DSP_SHIFT			0
407 #define OMAP24XX_AUTOSTATE_DSP_MASK			(1 << 0)
408 
409 /* CM_FCLKEN_MDM */
410 /* 2430 only */
411 #define OMAP2430_EN_OSC_SHIFT				1
412 #define OMAP2430_EN_OSC_MASK				(1 << 1)
413 
414 /* CM_ICLKEN_MDM */
415 /* 2430 only */
416 #define OMAP2430_CM_ICLKEN_MDM_EN_MDM_SHIFT		0
417 #define OMAP2430_CM_ICLKEN_MDM_EN_MDM_MASK		(1 << 0)
418 
419 /* CM_IDLEST_MDM specific bits */
420 /* 2430 only */
421 
422 /* CM_AUTOIDLE_MDM */
423 /* 2430 only */
424 #define OMAP2430_AUTO_OSC_MASK				(1 << 1)
425 #define OMAP2430_AUTO_MDM_MASK				(1 << 0)
426 
427 /* CM_CLKSEL_MDM */
428 /* 2430 only */
429 #define OMAP2430_SYNC_MDM_MASK				(1 << 4)
430 #define OMAP2430_CLKSEL_MDM_SHIFT			0
431 #define OMAP2430_CLKSEL_MDM_MASK			(0xf << 0)
432 
433 /* CM_CLKSTCTRL_MDM */
434 /* 2430 only */
435 #define OMAP2430_AUTOSTATE_MDM_SHIFT			0
436 #define OMAP2430_AUTOSTATE_MDM_MASK			(1 << 0)
437 
438 /* OMAP24XX CM_CLKSTCTRL_*.AUTOSTATE_* register bit values */
439 #define OMAP24XX_CLKSTCTRL_DISABLE_AUTO		0x0
440 #define OMAP24XX_CLKSTCTRL_ENABLE_AUTO		0x1
441 
442 
443 #endif
444