1 #ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_34XX_H
2 #define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_34XX_H
5 * OMAP3430 Clock Management register bits
7 * Copyright (C) 2007-2008 Texas Instruments, Inc.
8 * Copyright (C) 2007-2008 Nokia Corporation
10 * Written by Paul Walmsley
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.
19 /* Bits shared between registers */
21 /* CM_FCLKEN1_CORE and CM_ICLKEN1_CORE shared bits */
22 #define OMAP3430ES2_EN_MMC3_MASK (1 << 30)
23 #define OMAP3430ES2_EN_MMC3_SHIFT 30
24 #define OMAP3430_EN_MSPRO (1 << 23)
25 #define OMAP3430_EN_MSPRO_SHIFT 23
26 #define OMAP3430_EN_HDQ (1 << 22)
27 #define OMAP3430_EN_HDQ_SHIFT 22
28 #define OMAP3430ES1_EN_FSHOSTUSB (1 << 5)
29 #define OMAP3430ES1_EN_FSHOSTUSB_SHIFT 5
30 #define OMAP3430ES1_EN_D2D (1 << 3)
31 #define OMAP3430ES1_EN_D2D_SHIFT 3
32 #define OMAP3430_EN_SSI (1 << 0)
33 #define OMAP3430_EN_SSI_SHIFT 0
35 /* CM_FCLKEN3_CORE and CM_ICLKEN3_CORE shared bits */
36 #define OMAP3430ES2_EN_USBTLL_SHIFT 2
37 #define OMAP3430ES2_EN_USBTLL_MASK (1 << 2)
39 /* CM_FCLKEN_WKUP and CM_ICLKEN_WKUP shared bits */
40 #define OMAP3430_EN_WDT2 (1 << 5)
41 #define OMAP3430_EN_WDT2_SHIFT 5
43 /* CM_ICLKEN_CAM, CM_FCLKEN_CAM shared bits */
44 #define OMAP3430_EN_CAM (1 << 0)
45 #define OMAP3430_EN_CAM_SHIFT 0
47 /* CM_FCLKEN_PER, CM_ICLKEN_PER shared bits */
48 #define OMAP3430_EN_WDT3 (1 << 12)
49 #define OMAP3430_EN_WDT3_SHIFT 12
51 /* CM_CLKSEL2_EMU, CM_CLKSEL3_EMU shared bits */
52 #define OMAP3430_OVERRIDE_ENABLE (1 << 19)
55 /* Bits specific to each register */
58 #define OMAP3430_CM_FCLKEN_IVA2_EN_IVA2 (1 << 0)
59 #define OMAP3430_CM_FCLKEN_IVA2_EN_IVA2_SHIFT 0
61 /* CM_CLKEN_PLL_IVA2 */
62 #define OMAP3430_IVA2_DPLL_RAMPTIME_SHIFT 8
63 #define OMAP3430_IVA2_DPLL_RAMPTIME_MASK (0x3 << 8)
64 #define OMAP3430_IVA2_DPLL_FREQSEL_SHIFT 4
65 #define OMAP3430_IVA2_DPLL_FREQSEL_MASK (0xf << 4)
66 #define OMAP3430_EN_IVA2_DPLL_DRIFTGUARD_SHIFT 3
67 #define OMAP3430_EN_IVA2_DPLL_DRIFTGUARD_MASK (1 << 3)
68 #define OMAP3430_EN_IVA2_DPLL_SHIFT 0
69 #define OMAP3430_EN_IVA2_DPLL_MASK (0x7 << 0)
72 #define OMAP3430_ST_IVA2 (1 << 0)
74 /* CM_IDLEST_PLL_IVA2 */
75 #define OMAP3430_ST_IVA2_CLK_SHIFT 0
76 #define OMAP3430_ST_IVA2_CLK_MASK (1 << 0)
78 /* CM_AUTOIDLE_PLL_IVA2 */
79 #define OMAP3430_AUTO_IVA2_DPLL_SHIFT 0
80 #define OMAP3430_AUTO_IVA2_DPLL_MASK (0x7 << 0)
82 /* CM_CLKSEL1_PLL_IVA2 */
83 #define OMAP3430_IVA2_CLK_SRC_SHIFT 19
84 #define OMAP3430_IVA2_CLK_SRC_MASK (0x3 << 19)
85 #define OMAP3430_IVA2_DPLL_MULT_SHIFT 8
86 #define OMAP3430_IVA2_DPLL_MULT_MASK (0x7ff << 8)
87 #define OMAP3430_IVA2_DPLL_DIV_SHIFT 0
88 #define OMAP3430_IVA2_DPLL_DIV_MASK (0x7f << 0)
90 /* CM_CLKSEL2_PLL_IVA2 */
91 #define OMAP3430_IVA2_DPLL_CLKOUT_DIV_SHIFT 0
92 #define OMAP3430_IVA2_DPLL_CLKOUT_DIV_MASK (0x1f << 0)
94 /* CM_CLKSTCTRL_IVA2 */
95 #define OMAP3430_CLKTRCTRL_IVA2_SHIFT 0
96 #define OMAP3430_CLKTRCTRL_IVA2_MASK (0x3 << 0)
99 #define OMAP3430_CLKACTIVITY_IVA2_SHIFT 0
100 #define OMAP3430_CLKACTIVITY_IVA2_MASK (1 << 0)
102 /* CM_REVISION specific bits */
104 /* CM_SYSCONFIG specific bits */
106 /* CM_CLKEN_PLL_MPU */
107 #define OMAP3430_MPU_DPLL_RAMPTIME_SHIFT 8
108 #define OMAP3430_MPU_DPLL_RAMPTIME_MASK (0x3 << 8)
109 #define OMAP3430_MPU_DPLL_FREQSEL_SHIFT 4
110 #define OMAP3430_MPU_DPLL_FREQSEL_MASK (0xf << 4)
111 #define OMAP3430_EN_MPU_DPLL_DRIFTGUARD_SHIFT 3
112 #define OMAP3430_EN_MPU_DPLL_DRIFTGUARD_MASK (1 << 3)
113 #define OMAP3430_EN_MPU_DPLL_SHIFT 0
114 #define OMAP3430_EN_MPU_DPLL_MASK (0x7 << 0)
117 #define OMAP3430_ST_MPU (1 << 0)
119 /* CM_IDLEST_PLL_MPU */
120 #define OMAP3430_ST_MPU_CLK_SHIFT 0
121 #define OMAP3430_ST_MPU_CLK_MASK (1 << 0)
123 /* CM_AUTOIDLE_PLL_MPU */
124 #define OMAP3430_AUTO_MPU_DPLL_SHIFT 0
125 #define OMAP3430_AUTO_MPU_DPLL_MASK (0x7 << 0)
127 /* CM_CLKSEL1_PLL_MPU */
128 #define OMAP3430_MPU_CLK_SRC_SHIFT 19
129 #define OMAP3430_MPU_CLK_SRC_MASK (0x3 << 19)
130 #define OMAP3430_MPU_DPLL_MULT_SHIFT 8
131 #define OMAP3430_MPU_DPLL_MULT_MASK (0x7ff << 8)
132 #define OMAP3430_MPU_DPLL_DIV_SHIFT 0
133 #define OMAP3430_MPU_DPLL_DIV_MASK (0x7f << 0)
135 /* CM_CLKSEL2_PLL_MPU */
136 #define OMAP3430_MPU_DPLL_CLKOUT_DIV_SHIFT 0
137 #define OMAP3430_MPU_DPLL_CLKOUT_DIV_MASK (0x1f << 0)
139 /* CM_CLKSTCTRL_MPU */
140 #define OMAP3430_CLKTRCTRL_MPU_SHIFT 0
141 #define OMAP3430_CLKTRCTRL_MPU_MASK (0x3 << 0)
144 #define OMAP3430_CLKACTIVITY_MPU_SHIFT 0
145 #define OMAP3430_CLKACTIVITY_MPU_MASK (1 << 0)
147 /* CM_FCLKEN1_CORE specific bits */
149 /* CM_ICLKEN1_CORE specific bits */
150 #define OMAP3430_EN_ICR (1 << 29)
151 #define OMAP3430_EN_ICR_SHIFT 29
152 #define OMAP3430_EN_AES2 (1 << 28)
153 #define OMAP3430_EN_AES2_SHIFT 28
154 #define OMAP3430_EN_SHA12 (1 << 27)
155 #define OMAP3430_EN_SHA12_SHIFT 27
156 #define OMAP3430_EN_DES2 (1 << 26)
157 #define OMAP3430_EN_DES2_SHIFT 26
158 #define OMAP3430ES1_EN_FAC (1 << 8)
159 #define OMAP3430ES1_EN_FAC_SHIFT 8
160 #define OMAP3430_EN_MAILBOXES (1 << 7)
161 #define OMAP3430_EN_MAILBOXES_SHIFT 7
162 #define OMAP3430_EN_OMAPCTRL (1 << 6)
163 #define OMAP3430_EN_OMAPCTRL_SHIFT 6
164 #define OMAP3430_EN_SDRC (1 << 1)
165 #define OMAP3430_EN_SDRC_SHIFT 1
167 /* CM_ICLKEN2_CORE */
168 #define OMAP3430_EN_PKA (1 << 4)
169 #define OMAP3430_EN_PKA_SHIFT 4
170 #define OMAP3430_EN_AES1 (1 << 3)
171 #define OMAP3430_EN_AES1_SHIFT 3
172 #define OMAP3430_EN_RNG (1 << 2)
173 #define OMAP3430_EN_RNG_SHIFT 2
174 #define OMAP3430_EN_SHA11 (1 << 1)
175 #define OMAP3430_EN_SHA11_SHIFT 1
176 #define OMAP3430_EN_DES1 (1 << 0)
177 #define OMAP3430_EN_DES1_SHIFT 0
179 /* CM_FCLKEN3_CORE specific bits */
180 #define OMAP3430ES2_EN_TS_SHIFT 1
181 #define OMAP3430ES2_EN_TS_MASK (1 << 1)
182 #define OMAP3430ES2_EN_CPEFUSE_SHIFT 0
183 #define OMAP3430ES2_EN_CPEFUSE_MASK (1 << 0)
185 /* CM_IDLEST1_CORE specific bits */
186 #define OMAP3430_ST_ICR (1 << 29)
187 #define OMAP3430_ST_AES2 (1 << 28)
188 #define OMAP3430_ST_SHA12 (1 << 27)
189 #define OMAP3430_ST_DES2 (1 << 26)
190 #define OMAP3430_ST_MSPRO (1 << 23)
191 #define OMAP3430_ST_HDQ (1 << 22)
192 #define OMAP3430ES1_ST_FAC (1 << 8)
193 #define OMAP3430ES1_ST_MAILBOXES (1 << 7)
194 #define OMAP3430_ST_OMAPCTRL (1 << 6)
195 #define OMAP3430_ST_SDMA (1 << 2)
196 #define OMAP3430_ST_SDRC (1 << 1)
197 #define OMAP3430_ST_SSI (1 << 0)
199 /* CM_IDLEST2_CORE */
200 #define OMAP3430_ST_PKA (1 << 4)
201 #define OMAP3430_ST_AES1 (1 << 3)
202 #define OMAP3430_ST_RNG (1 << 2)
203 #define OMAP3430_ST_SHA11 (1 << 1)
204 #define OMAP3430_ST_DES1 (1 << 0)
206 /* CM_IDLEST3_CORE */
207 #define OMAP3430ES2_ST_USBTLL_SHIFT 2
208 #define OMAP3430ES2_ST_USBTLL_MASK (1 << 2)
210 /* CM_AUTOIDLE1_CORE */
211 #define OMAP3430_AUTO_AES2 (1 << 28)
212 #define OMAP3430_AUTO_AES2_SHIFT 28
213 #define OMAP3430_AUTO_SHA12 (1 << 27)
214 #define OMAP3430_AUTO_SHA12_SHIFT 27
215 #define OMAP3430_AUTO_DES2 (1 << 26)
216 #define OMAP3430_AUTO_DES2_SHIFT 26
217 #define OMAP3430_AUTO_MMC2 (1 << 25)
218 #define OMAP3430_AUTO_MMC2_SHIFT 25
219 #define OMAP3430_AUTO_MMC1 (1 << 24)
220 #define OMAP3430_AUTO_MMC1_SHIFT 24
221 #define OMAP3430_AUTO_MSPRO (1 << 23)
222 #define OMAP3430_AUTO_MSPRO_SHIFT 23
223 #define OMAP3430_AUTO_HDQ (1 << 22)
224 #define OMAP3430_AUTO_HDQ_SHIFT 22
225 #define OMAP3430_AUTO_MCSPI4 (1 << 21)
226 #define OMAP3430_AUTO_MCSPI4_SHIFT 21
227 #define OMAP3430_AUTO_MCSPI3 (1 << 20)
228 #define OMAP3430_AUTO_MCSPI3_SHIFT 20
229 #define OMAP3430_AUTO_MCSPI2 (1 << 19)
230 #define OMAP3430_AUTO_MCSPI2_SHIFT 19
231 #define OMAP3430_AUTO_MCSPI1 (1 << 18)
232 #define OMAP3430_AUTO_MCSPI1_SHIFT 18
233 #define OMAP3430_AUTO_I2C3 (1 << 17)
234 #define OMAP3430_AUTO_I2C3_SHIFT 17
235 #define OMAP3430_AUTO_I2C2 (1 << 16)
236 #define OMAP3430_AUTO_I2C2_SHIFT 16
237 #define OMAP3430_AUTO_I2C1 (1 << 15)
238 #define OMAP3430_AUTO_I2C1_SHIFT 15
239 #define OMAP3430_AUTO_UART2 (1 << 14)
240 #define OMAP3430_AUTO_UART2_SHIFT 14
241 #define OMAP3430_AUTO_UART1 (1 << 13)
242 #define OMAP3430_AUTO_UART1_SHIFT 13
243 #define OMAP3430_AUTO_GPT11 (1 << 12)
244 #define OMAP3430_AUTO_GPT11_SHIFT 12
245 #define OMAP3430_AUTO_GPT10 (1 << 11)
246 #define OMAP3430_AUTO_GPT10_SHIFT 11
247 #define OMAP3430_AUTO_MCBSP5 (1 << 10)
248 #define OMAP3430_AUTO_MCBSP5_SHIFT 10
249 #define OMAP3430_AUTO_MCBSP1 (1 << 9)
250 #define OMAP3430_AUTO_MCBSP1_SHIFT 9
251 #define OMAP3430ES1_AUTO_FAC (1 << 8)
252 #define OMAP3430ES1_AUTO_FAC_SHIFT 8
253 #define OMAP3430_AUTO_MAILBOXES (1 << 7)
254 #define OMAP3430_AUTO_MAILBOXES_SHIFT 7
255 #define OMAP3430_AUTO_OMAPCTRL (1 << 6)
256 #define OMAP3430_AUTO_OMAPCTRL_SHIFT 6
257 #define OMAP3430ES1_AUTO_FSHOSTUSB (1 << 5)
258 #define OMAP3430ES1_AUTO_FSHOSTUSB_SHIFT 5
259 #define OMAP3430_AUTO_HSOTGUSB (1 << 4)
260 #define OMAP3430_AUTO_HSOTGUSB_SHIFT 4
261 #define OMAP3430ES1_AUTO_D2D (1 << 3)
262 #define OMAP3430ES1_AUTO_D2D_SHIFT 3
263 #define OMAP3430_AUTO_SSI (1 << 0)
264 #define OMAP3430_AUTO_SSI_SHIFT 0
266 /* CM_AUTOIDLE2_CORE */
267 #define OMAP3430_AUTO_PKA (1 << 4)
268 #define OMAP3430_AUTO_PKA_SHIFT 4
269 #define OMAP3430_AUTO_AES1 (1 << 3)
270 #define OMAP3430_AUTO_AES1_SHIFT 3
271 #define OMAP3430_AUTO_RNG (1 << 2)
272 #define OMAP3430_AUTO_RNG_SHIFT 2
273 #define OMAP3430_AUTO_SHA11 (1 << 1)
274 #define OMAP3430_AUTO_SHA11_SHIFT 1
275 #define OMAP3430_AUTO_DES1 (1 << 0)
276 #define OMAP3430_AUTO_DES1_SHIFT 0
278 /* CM_AUTOIDLE3_CORE */
279 #define OMAP3430ES2_AUTO_USBTLL_SHIFT 2
280 #define OMAP3430ES2_AUTO_USBTLL_MASK (1 << 2)
283 #define OMAP3430_CLKSEL_SSI_SHIFT 8
284 #define OMAP3430_CLKSEL_SSI_MASK (0xf << 8)
285 #define OMAP3430_CLKSEL_GPT11_MASK (1 << 7)
286 #define OMAP3430_CLKSEL_GPT11_SHIFT 7
287 #define OMAP3430_CLKSEL_GPT10_MASK (1 << 6)
288 #define OMAP3430_CLKSEL_GPT10_SHIFT 6
289 #define OMAP3430ES1_CLKSEL_FSHOSTUSB_SHIFT 4
290 #define OMAP3430ES1_CLKSEL_FSHOSTUSB_MASK (0x3 << 4)
291 #define OMAP3430_CLKSEL_L4_SHIFT 2
292 #define OMAP3430_CLKSEL_L4_MASK (0x3 << 2)
293 #define OMAP3430_CLKSEL_L3_SHIFT 0
294 #define OMAP3430_CLKSEL_L3_MASK (0x3 << 0)
296 /* CM_CLKSTCTRL_CORE */
297 #define OMAP3430ES1_CLKTRCTRL_D2D_SHIFT 4
298 #define OMAP3430ES1_CLKTRCTRL_D2D_MASK (0x3 << 4)
299 #define OMAP3430_CLKTRCTRL_L4_SHIFT 2
300 #define OMAP3430_CLKTRCTRL_L4_MASK (0x3 << 2)
301 #define OMAP3430_CLKTRCTRL_L3_SHIFT 0
302 #define OMAP3430_CLKTRCTRL_L3_MASK (0x3 << 0)
304 /* CM_CLKSTST_CORE */
305 #define OMAP3430ES1_CLKACTIVITY_D2D_SHIFT 2
306 #define OMAP3430ES1_CLKACTIVITY_D2D_MASK (1 << 2)
307 #define OMAP3430_CLKACTIVITY_L4_SHIFT 1
308 #define OMAP3430_CLKACTIVITY_L4_MASK (1 << 1)
309 #define OMAP3430_CLKACTIVITY_L3_SHIFT 0
310 #define OMAP3430_CLKACTIVITY_L3_MASK (1 << 0)
313 #define OMAP3430ES1_EN_3D (1 << 2)
314 #define OMAP3430ES1_EN_3D_SHIFT 2
315 #define OMAP3430ES1_EN_2D (1 << 1)
316 #define OMAP3430ES1_EN_2D_SHIFT 1
318 /* CM_ICLKEN_GFX specific bits */
320 /* CM_IDLEST_GFX specific bits */
322 /* CM_CLKSEL_GFX specific bits */
324 /* CM_SLEEPDEP_GFX specific bits */
326 /* CM_CLKSTCTRL_GFX */
327 #define OMAP3430ES1_CLKTRCTRL_GFX_SHIFT 0
328 #define OMAP3430ES1_CLKTRCTRL_GFX_MASK (0x3 << 0)
331 #define OMAP3430ES1_CLKACTIVITY_GFX_SHIFT 0
332 #define OMAP3430ES1_CLKACTIVITY_GFX_MASK (1 << 0)
335 #define OMAP3430ES2_EN_SGX_SHIFT 1
336 #define OMAP3430ES2_EN_SGX_MASK (1 << 1)
339 #define OMAP3430ES2_CLKSEL_SGX_SHIFT 0
340 #define OMAP3430ES2_CLKSEL_SGX_MASK (0x7 << 0)
342 /* CM_CLKSTCTRL_SGX */
343 #define OMAP3430ES2_CLKTRCTRL_SGX_SHIFT 0
344 #define OMAP3430ES2_CLKTRCTRL_SGX_MASK (0x3 << 0)
347 #define OMAP3430ES2_CLKACTIVITY_SGX_SHIFT 0
348 #define OMAP3430ES2_CLKACTIVITY_SGX_MASK (1 << 0)
350 /* CM_FCLKEN_WKUP specific bits */
351 #define OMAP3430ES2_EN_USIMOCP_SHIFT 9
353 /* CM_ICLKEN_WKUP specific bits */
354 #define OMAP3430_EN_WDT1 (1 << 4)
355 #define OMAP3430_EN_WDT1_SHIFT 4
356 #define OMAP3430_EN_32KSYNC (1 << 2)
357 #define OMAP3430_EN_32KSYNC_SHIFT 2
359 /* CM_IDLEST_WKUP specific bits */
360 #define OMAP3430_ST_WDT2 (1 << 5)
361 #define OMAP3430_ST_WDT1 (1 << 4)
362 #define OMAP3430_ST_32KSYNC (1 << 2)
364 /* CM_AUTOIDLE_WKUP */
365 #define OMAP3430_AUTO_WDT2 (1 << 5)
366 #define OMAP3430_AUTO_WDT2_SHIFT 5
367 #define OMAP3430_AUTO_WDT1 (1 << 4)
368 #define OMAP3430_AUTO_WDT1_SHIFT 4
369 #define OMAP3430_AUTO_GPIO1 (1 << 3)
370 #define OMAP3430_AUTO_GPIO1_SHIFT 3
371 #define OMAP3430_AUTO_32KSYNC (1 << 2)
372 #define OMAP3430_AUTO_32KSYNC_SHIFT 2
373 #define OMAP3430_AUTO_GPT12 (1 << 1)
374 #define OMAP3430_AUTO_GPT12_SHIFT 1
375 #define OMAP3430_AUTO_GPT1 (1 << 0)
376 #define OMAP3430_AUTO_GPT1_SHIFT 0
379 #define OMAP3430ES2_CLKSEL_USIMOCP_MASK (0xf << 3)
380 #define OMAP3430_CLKSEL_RM_SHIFT 1
381 #define OMAP3430_CLKSEL_RM_MASK (0x3 << 1)
382 #define OMAP3430_CLKSEL_GPT1_SHIFT 0
383 #define OMAP3430_CLKSEL_GPT1_MASK (1 << 0)
386 #define OMAP3430_PWRDN_EMU_PERIPH_SHIFT 31
387 #define OMAP3430_PWRDN_CAM_SHIFT 30
388 #define OMAP3430_PWRDN_DSS1_SHIFT 29
389 #define OMAP3430_PWRDN_TV_SHIFT 28
390 #define OMAP3430_PWRDN_96M_SHIFT 27
391 #define OMAP3430_PERIPH_DPLL_RAMPTIME_SHIFT 24
392 #define OMAP3430_PERIPH_DPLL_RAMPTIME_MASK (0x3 << 24)
393 #define OMAP3430_PERIPH_DPLL_FREQSEL_SHIFT 20
394 #define OMAP3430_PERIPH_DPLL_FREQSEL_MASK (0xf << 20)
395 #define OMAP3430_EN_PERIPH_DPLL_DRIFTGUARD_SHIFT 19
396 #define OMAP3430_EN_PERIPH_DPLL_DRIFTGUARD_MASK (1 << 19)
397 #define OMAP3430_EN_PERIPH_DPLL_SHIFT 16
398 #define OMAP3430_EN_PERIPH_DPLL_MASK (0x7 << 16)
399 #define OMAP3430_PWRDN_EMU_CORE_SHIFT 12
400 #define OMAP3430_CORE_DPLL_RAMPTIME_SHIFT 8
401 #define OMAP3430_CORE_DPLL_RAMPTIME_MASK (0x3 << 8)
402 #define OMAP3430_CORE_DPLL_FREQSEL_SHIFT 4
403 #define OMAP3430_CORE_DPLL_FREQSEL_MASK (0xf << 4)
404 #define OMAP3430_EN_CORE_DPLL_DRIFTGUARD_SHIFT 3
405 #define OMAP3430_EN_CORE_DPLL_DRIFTGUARD_MASK (1 << 3)
406 #define OMAP3430_EN_CORE_DPLL_SHIFT 0
407 #define OMAP3430_EN_CORE_DPLL_MASK (0x7 << 0)
410 #define OMAP3430ES2_EN_PERIPH2_DPLL_LPMODE_SHIFT 10
411 #define OMAP3430ES2_PERIPH2_DPLL_RAMPTIME_MASK (0x3 << 8)
412 #define OMAP3430ES2_PERIPH2_DPLL_FREQSEL_SHIFT 4
413 #define OMAP3430ES2_PERIPH2_DPLL_FREQSEL_MASK (0xf << 4)
414 #define OMAP3430ES2_EN_PERIPH2_DPLL_DRIFTGUARD_SHIFT 3
415 #define OMAP3430ES2_EN_PERIPH2_DPLL_SHIFT 0
416 #define OMAP3430ES2_EN_PERIPH2_DPLL_MASK (0x7 << 0)
418 /* CM_IDLEST_CKGEN */
419 #define OMAP3430_ST_54M_CLK (1 << 5)
420 #define OMAP3430_ST_12M_CLK (1 << 4)
421 #define OMAP3430_ST_48M_CLK (1 << 3)
422 #define OMAP3430_ST_96M_CLK (1 << 2)
423 #define OMAP3430_ST_PERIPH_CLK_SHIFT 1
424 #define OMAP3430_ST_PERIPH_CLK_MASK (1 << 1)
425 #define OMAP3430_ST_CORE_CLK_SHIFT 0
426 #define OMAP3430_ST_CORE_CLK_MASK (1 << 0)
428 /* CM_IDLEST2_CKGEN */
429 #define OMAP3430ES2_ST_120M_CLK_SHIFT 1
430 #define OMAP3430ES2_ST_120M_CLK_MASK (1 << 1)
431 #define OMAP3430ES2_ST_PERIPH2_CLK_SHIFT 0
432 #define OMAP3430ES2_ST_PERIPH2_CLK_MASK (1 << 0)
434 /* CM_AUTOIDLE_PLL */
435 #define OMAP3430_AUTO_PERIPH_DPLL_SHIFT 3
436 #define OMAP3430_AUTO_PERIPH_DPLL_MASK (0x7 << 3)
437 #define OMAP3430_AUTO_CORE_DPLL_SHIFT 0
438 #define OMAP3430_AUTO_CORE_DPLL_MASK (0x7 << 0)
440 /* CM_AUTOIDLE2_PLL */
441 #define OMAP3430ES2_AUTO_PERIPH2_DPLL_SHIFT 0
442 #define OMAP3430ES2_AUTO_PERIPH2_DPLL_MASK (0x7 << 0)
445 /* Note that OMAP3430_CORE_DPLL_CLKOUT_DIV_MASK was (0x3 << 27) on 3430ES1 */
446 #define OMAP3430_CORE_DPLL_CLKOUT_DIV_SHIFT 27
447 #define OMAP3430_CORE_DPLL_CLKOUT_DIV_MASK (0x1f << 27)
448 #define OMAP3430_CORE_DPLL_MULT_SHIFT 16
449 #define OMAP3430_CORE_DPLL_MULT_MASK (0x7ff << 16)
450 #define OMAP3430_CORE_DPLL_DIV_SHIFT 8
451 #define OMAP3430_CORE_DPLL_DIV_MASK (0x7f << 8)
452 #define OMAP3430_SOURCE_54M (1 << 5)
453 #define OMAP3430_SOURCE_48M (1 << 3)
456 #define OMAP3430_PERIPH_DPLL_MULT_SHIFT 8
457 #define OMAP3430_PERIPH_DPLL_MULT_MASK (0x7ff << 8)
458 #define OMAP3430_PERIPH_DPLL_DIV_SHIFT 0
459 #define OMAP3430_PERIPH_DPLL_DIV_MASK (0x7f << 0)
462 #define OMAP3430_DIV_96M_SHIFT 0
463 #define OMAP3430_DIV_96M_MASK (0x1f << 0)
466 #define OMAP3430ES2_PERIPH2_DPLL_MULT_SHIFT 8
467 #define OMAP3430ES2_PERIPH2_DPLL_MULT_MASK (0x7ff << 8)
468 #define OMAP3430ES2_PERIPH2_DPLL_DIV_SHIFT 0
469 #define OMAP3430ES2_PERIPH2_DPLL_DIV_MASK (0x7f << 0)
472 #define OMAP3430ES2_DIV_120M_SHIFT 0
473 #define OMAP3430ES2_DIV_120M_MASK (0x1f << 0)
476 #define OMAP3430_CLKOUT2_EN_SHIFT 7
477 #define OMAP3430_CLKOUT2_EN (1 << 7)
478 #define OMAP3430_CLKOUT2_DIV_SHIFT 3
479 #define OMAP3430_CLKOUT2_DIV_MASK (0x7 << 3)
480 #define OMAP3430_CLKOUT2SOURCE_SHIFT 0
481 #define OMAP3430_CLKOUT2SOURCE_MASK (0x3 << 0)
484 #define OMAP3430_EN_TV (1 << 2)
485 #define OMAP3430_EN_TV_SHIFT 2
486 #define OMAP3430_EN_DSS2 (1 << 1)
487 #define OMAP3430_EN_DSS2_SHIFT 1
488 #define OMAP3430_EN_DSS1 (1 << 0)
489 #define OMAP3430_EN_DSS1_SHIFT 0
492 #define OMAP3430_CM_ICLKEN_DSS_EN_DSS (1 << 0)
493 #define OMAP3430_CM_ICLKEN_DSS_EN_DSS_SHIFT 0
496 #define OMAP3430_ST_DSS (1 << 0)
498 /* CM_AUTOIDLE_DSS */
499 #define OMAP3430_AUTO_DSS (1 << 0)
500 #define OMAP3430_AUTO_DSS_SHIFT 0
503 #define OMAP3430_CLKSEL_TV_SHIFT 8
504 #define OMAP3430_CLKSEL_TV_MASK (0x1f << 8)
505 #define OMAP3430_CLKSEL_DSS1_SHIFT 0
506 #define OMAP3430_CLKSEL_DSS1_MASK (0x1f << 0)
508 /* CM_SLEEPDEP_DSS specific bits */
510 /* CM_CLKSTCTRL_DSS */
511 #define OMAP3430_CLKTRCTRL_DSS_SHIFT 0
512 #define OMAP3430_CLKTRCTRL_DSS_MASK (0x3 << 0)
515 #define OMAP3430_CLKACTIVITY_DSS_SHIFT 0
516 #define OMAP3430_CLKACTIVITY_DSS_MASK (1 << 0)
518 /* CM_FCLKEN_CAM specific bits */
520 /* CM_ICLKEN_CAM specific bits */
523 #define OMAP3430_ST_CAM (1 << 0)
525 /* CM_AUTOIDLE_CAM */
526 #define OMAP3430_AUTO_CAM (1 << 0)
527 #define OMAP3430_AUTO_CAM_SHIFT 0
530 #define OMAP3430_CLKSEL_CAM_SHIFT 0
531 #define OMAP3430_CLKSEL_CAM_MASK (0x1f << 0)
533 /* CM_SLEEPDEP_CAM specific bits */
535 /* CM_CLKSTCTRL_CAM */
536 #define OMAP3430_CLKTRCTRL_CAM_SHIFT 0
537 #define OMAP3430_CLKTRCTRL_CAM_MASK (0x3 << 0)
540 #define OMAP3430_CLKACTIVITY_CAM_SHIFT 0
541 #define OMAP3430_CLKACTIVITY_CAM_MASK (1 << 0)
543 /* CM_FCLKEN_PER specific bits */
545 /* CM_ICLKEN_PER specific bits */
548 #define OMAP3430_ST_WDT3 (1 << 12)
549 #define OMAP3430_ST_MCBSP4 (1 << 2)
550 #define OMAP3430_ST_MCBSP3 (1 << 1)
551 #define OMAP3430_ST_MCBSP2 (1 << 0)
553 /* CM_AUTOIDLE_PER */
554 #define OMAP3430_AUTO_GPIO6 (1 << 17)
555 #define OMAP3430_AUTO_GPIO6_SHIFT 17
556 #define OMAP3430_AUTO_GPIO5 (1 << 16)
557 #define OMAP3430_AUTO_GPIO5_SHIFT 16
558 #define OMAP3430_AUTO_GPIO4 (1 << 15)
559 #define OMAP3430_AUTO_GPIO4_SHIFT 15
560 #define OMAP3430_AUTO_GPIO3 (1 << 14)
561 #define OMAP3430_AUTO_GPIO3_SHIFT 14
562 #define OMAP3430_AUTO_GPIO2 (1 << 13)
563 #define OMAP3430_AUTO_GPIO2_SHIFT 13
564 #define OMAP3430_AUTO_WDT3 (1 << 12)
565 #define OMAP3430_AUTO_WDT3_SHIFT 12
566 #define OMAP3430_AUTO_UART3 (1 << 11)
567 #define OMAP3430_AUTO_UART3_SHIFT 11
568 #define OMAP3430_AUTO_GPT9 (1 << 10)
569 #define OMAP3430_AUTO_GPT9_SHIFT 10
570 #define OMAP3430_AUTO_GPT8 (1 << 9)
571 #define OMAP3430_AUTO_GPT8_SHIFT 9
572 #define OMAP3430_AUTO_GPT7 (1 << 8)
573 #define OMAP3430_AUTO_GPT7_SHIFT 8
574 #define OMAP3430_AUTO_GPT6 (1 << 7)
575 #define OMAP3430_AUTO_GPT6_SHIFT 7
576 #define OMAP3430_AUTO_GPT5 (1 << 6)
577 #define OMAP3430_AUTO_GPT5_SHIFT 6
578 #define OMAP3430_AUTO_GPT4 (1 << 5)
579 #define OMAP3430_AUTO_GPT4_SHIFT 5
580 #define OMAP3430_AUTO_GPT3 (1 << 4)
581 #define OMAP3430_AUTO_GPT3_SHIFT 4
582 #define OMAP3430_AUTO_GPT2 (1 << 3)
583 #define OMAP3430_AUTO_GPT2_SHIFT 3
584 #define OMAP3430_AUTO_MCBSP4 (1 << 2)
585 #define OMAP3430_AUTO_MCBSP4_SHIFT 2
586 #define OMAP3430_AUTO_MCBSP3 (1 << 1)
587 #define OMAP3430_AUTO_MCBSP3_SHIFT 1
588 #define OMAP3430_AUTO_MCBSP2 (1 << 0)
589 #define OMAP3430_AUTO_MCBSP2_SHIFT 0
592 #define OMAP3430_CLKSEL_GPT9_MASK (1 << 7)
593 #define OMAP3430_CLKSEL_GPT9_SHIFT 7
594 #define OMAP3430_CLKSEL_GPT8_MASK (1 << 6)
595 #define OMAP3430_CLKSEL_GPT8_SHIFT 6
596 #define OMAP3430_CLKSEL_GPT7_MASK (1 << 5)
597 #define OMAP3430_CLKSEL_GPT7_SHIFT 5
598 #define OMAP3430_CLKSEL_GPT6_MASK (1 << 4)
599 #define OMAP3430_CLKSEL_GPT6_SHIFT 4
600 #define OMAP3430_CLKSEL_GPT5_MASK (1 << 3)
601 #define OMAP3430_CLKSEL_GPT5_SHIFT 3
602 #define OMAP3430_CLKSEL_GPT4_MASK (1 << 2)
603 #define OMAP3430_CLKSEL_GPT4_SHIFT 2
604 #define OMAP3430_CLKSEL_GPT3_MASK (1 << 1)
605 #define OMAP3430_CLKSEL_GPT3_SHIFT 1
606 #define OMAP3430_CLKSEL_GPT2_MASK (1 << 0)
607 #define OMAP3430_CLKSEL_GPT2_SHIFT 0
609 /* CM_SLEEPDEP_PER specific bits */
610 #define OMAP3430_CM_SLEEPDEP_PER_EN_IVA2 (1 << 2)
612 /* CM_CLKSTCTRL_PER */
613 #define OMAP3430_CLKTRCTRL_PER_SHIFT 0
614 #define OMAP3430_CLKTRCTRL_PER_MASK (0x3 << 0)
617 #define OMAP3430_CLKACTIVITY_PER_SHIFT 0
618 #define OMAP3430_CLKACTIVITY_PER_MASK (1 << 0)
621 #define OMAP3430_DIV_DPLL4_SHIFT 24
622 #define OMAP3430_DIV_DPLL4_MASK (0x1f << 24)
623 #define OMAP3430_DIV_DPLL3_SHIFT 16
624 #define OMAP3430_DIV_DPLL3_MASK (0x1f << 16)
625 #define OMAP3430_CLKSEL_TRACECLK_SHIFT 11
626 #define OMAP3430_CLKSEL_TRACECLK_MASK (0x7 << 11)
627 #define OMAP3430_CLKSEL_PCLK_SHIFT 8
628 #define OMAP3430_CLKSEL_PCLK_MASK (0x7 << 8)
629 #define OMAP3430_CLKSEL_PCLKX2_SHIFT 6
630 #define OMAP3430_CLKSEL_PCLKX2_MASK (0x3 << 6)
631 #define OMAP3430_CLKSEL_ATCLK_SHIFT 4
632 #define OMAP3430_CLKSEL_ATCLK_MASK (0x3 << 4)
633 #define OMAP3430_TRACE_MUX_CTRL_SHIFT 2
634 #define OMAP3430_TRACE_MUX_CTRL_MASK (0x3 << 2)
635 #define OMAP3430_MUX_CTRL_SHIFT 0
636 #define OMAP3430_MUX_CTRL_MASK (0x3 << 0)
638 /* CM_CLKSTCTRL_EMU */
639 #define OMAP3430_CLKTRCTRL_EMU_SHIFT 0
640 #define OMAP3430_CLKTRCTRL_EMU_MASK (0x3 << 0)
643 #define OMAP3430_CLKACTIVITY_EMU_SHIFT 0
644 #define OMAP3430_CLKACTIVITY_EMU_MASK (1 << 0)
646 /* CM_CLKSEL2_EMU specific bits */
647 #define OMAP3430_CORE_DPLL_EMU_MULT_SHIFT 8
648 #define OMAP3430_CORE_DPLL_EMU_MULT_MASK (0x7ff << 8)
649 #define OMAP3430_CORE_DPLL_EMU_DIV_SHIFT 0
650 #define OMAP3430_CORE_DPLL_EMU_DIV_MASK (0x7f << 0)
652 /* CM_CLKSEL3_EMU specific bits */
653 #define OMAP3430_PERIPH_DPLL_EMU_MULT_SHIFT 8
654 #define OMAP3430_PERIPH_DPLL_EMU_MULT_MASK (0x7ff << 8)
655 #define OMAP3430_PERIPH_DPLL_EMU_DIV_SHIFT 0
656 #define OMAP3430_PERIPH_DPLL_EMU_DIV_MASK (0x7f << 0)
659 #define OMAP3430_CLKOUT2_POL (1 << 0)
662 #define OMAP3430_ST_NEON (1 << 0)
664 /* CM_CLKSTCTRL_NEON */
665 #define OMAP3430_CLKTRCTRL_NEON_SHIFT 0
666 #define OMAP3430_CLKTRCTRL_NEON_MASK (0x3 << 0)
668 /* CM_FCLKEN_USBHOST */
669 #define OMAP3430ES2_EN_USBHOST2_SHIFT 1
670 #define OMAP3430ES2_EN_USBHOST2_MASK (1 << 1)
671 #define OMAP3430ES2_EN_USBHOST1_SHIFT 0
672 #define OMAP3430ES2_EN_USBHOST1_MASK (1 << 0)
674 /* CM_ICLKEN_USBHOST */
675 #define OMAP3430ES2_EN_USBHOST_SHIFT 0
676 #define OMAP3430ES2_EN_USBHOST_MASK (1 << 0)
678 /* CM_IDLEST_USBHOST */
680 /* CM_AUTOIDLE_USBHOST */
681 #define OMAP3430ES2_AUTO_USBHOST_SHIFT 0
682 #define OMAP3430ES2_AUTO_USBHOST_MASK (1 << 0)
684 /* CM_SLEEPDEP_USBHOST */
685 #define OMAP3430ES2_EN_MPU_SHIFT 1
686 #define OMAP3430ES2_EN_MPU_MASK (1 << 1)
687 #define OMAP3430ES2_EN_IVA2_SHIFT 2
688 #define OMAP3430ES2_EN_IVA2_MASK (1 << 2)
690 /* CM_CLKSTCTRL_USBHOST */
691 #define OMAP3430ES2_CLKTRCTRL_USBHOST_SHIFT 0
692 #define OMAP3430ES2_CLKTRCTRL_USBHOST_MASK (3 << 0)
694 /* CM_CLKSTST_USBHOST */
695 #define OMAP3430ES2_CLKACTIVITY_USBHOST_SHIFT 0
696 #define OMAP3430ES2_CLKACTIVITY_USBHOST_MASK (1 << 0)