ARM: cpu topology: Add debugfs interface for cpu_power
[cmplus.git] / arch / arm / mach-omap2 / cm-regbits-44xx.h
blob9166c844f9357c5c2da319cb7c65a9f2c2fff3f2
1 /*
2 * OMAP44xx Clock Management register bits
4 * Copyright (C) 2009-2010 Texas Instruments, Inc.
5 * Copyright (C) 2009-2010 Nokia Corporation
7 * Paul Walmsley (paul@pwsan.com)
8 * Rajendra Nayak (rnayak@ti.com)
9 * Benoit Cousson (b-cousson@ti.com)
11 * This file is automatically generated from the OMAP hardware databases.
12 * We respectfully ask that any modifications to this file be coordinated
13 * with the public linux-omap@vger.kernel.org mailing list and the
14 * authors above to ensure that the autogeneration scripts are kept
15 * up-to-date with the file contents.
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License version 2 as
19 * published by the Free Software Foundation.
22 #ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_44XX_H
23 #define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_44XX_H
26 * Used by CM_L3_1_DYNAMICDEP, CM_L3_1_DYNAMICDEP_RESTORE, CM_MPU_DYNAMICDEP,
27 * CM_TESLA_DYNAMICDEP
29 #define OMAP4430_ABE_DYNDEP_SHIFT 3
30 #define OMAP4430_ABE_DYNDEP_MASK (1 << 3)
33 * Used by CM_D2D_STATICDEP, CM_D2D_STATICDEP_RESTORE, CM_DUCATI_STATICDEP,
34 * CM_L3INIT_STATICDEP, CM_MPU_STATICDEP, CM_SDMA_STATICDEP,
35 * CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
37 #define OMAP4430_ABE_STATDEP_SHIFT 3
38 #define OMAP4430_ABE_STATDEP_MASK (1 << 3)
40 /* Used by CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE */
41 #define OMAP4430_ALWONCORE_DYNDEP_SHIFT 16
42 #define OMAP4430_ALWONCORE_DYNDEP_MASK (1 << 16)
44 /* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_TESLA_STATICDEP */
45 #define OMAP4430_ALWONCORE_STATDEP_SHIFT 16
46 #define OMAP4430_ALWONCORE_STATDEP_MASK (1 << 16)
49 * Used by CM_AUTOIDLE_DPLL_ABE, CM_AUTOIDLE_DPLL_CORE,
50 * CM_AUTOIDLE_DPLL_CORE_RESTORE, CM_AUTOIDLE_DPLL_DDRPHY,
51 * CM_AUTOIDLE_DPLL_IVA, CM_AUTOIDLE_DPLL_MPU, CM_AUTOIDLE_DPLL_PER,
52 * CM_AUTOIDLE_DPLL_UNIPRO, CM_AUTOIDLE_DPLL_USB
54 #define OMAP4430_AUTO_DPLL_MODE_SHIFT 0
55 #define OMAP4430_AUTO_DPLL_MODE_MASK (0x7 << 0)
57 /* Used by CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE */
58 #define OMAP4430_CEFUSE_DYNDEP_SHIFT 17
59 #define OMAP4430_CEFUSE_DYNDEP_MASK (1 << 17)
61 /* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_TESLA_STATICDEP */
62 #define OMAP4430_CEFUSE_STATDEP_SHIFT 17
63 #define OMAP4430_CEFUSE_STATDEP_MASK (1 << 17)
65 /* Used by CM1_ABE_CLKSTCTRL */
66 #define OMAP4430_CLKACTIVITY_ABE_24M_GFCLK_SHIFT 13
67 #define OMAP4430_CLKACTIVITY_ABE_24M_GFCLK_MASK (1 << 13)
69 /* Used by CM1_ABE_CLKSTCTRL */
70 #define OMAP4430_CLKACTIVITY_ABE_ALWON_32K_CLK_SHIFT 12
71 #define OMAP4430_CLKACTIVITY_ABE_ALWON_32K_CLK_MASK (1 << 12)
73 /* Used by CM_WKUP_CLKSTCTRL */
74 #define OMAP4430_CLKACTIVITY_ABE_LP_CLK_SHIFT 9
75 #define OMAP4430_CLKACTIVITY_ABE_LP_CLK_MASK (1 << 9)
77 /* Used by CM1_ABE_CLKSTCTRL */
78 #define OMAP4430_CLKACTIVITY_ABE_SYSCLK_SHIFT 11
79 #define OMAP4430_CLKACTIVITY_ABE_SYSCLK_MASK (1 << 11)
81 /* Used by CM1_ABE_CLKSTCTRL */
82 #define OMAP4430_CLKACTIVITY_ABE_X2_CLK_SHIFT 8
83 #define OMAP4430_CLKACTIVITY_ABE_X2_CLK_MASK (1 << 8)
85 /* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
86 #define OMAP4430_CLKACTIVITY_ASYNC_DLL_CLK_SHIFT 11
87 #define OMAP4430_CLKACTIVITY_ASYNC_DLL_CLK_MASK (1 << 11)
89 /* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
90 #define OMAP4430_CLKACTIVITY_ASYNC_PHY1_CLK_SHIFT 12
91 #define OMAP4430_CLKACTIVITY_ASYNC_PHY1_CLK_MASK (1 << 12)
93 /* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
94 #define OMAP4430_CLKACTIVITY_ASYNC_PHY2_CLK_SHIFT 13
95 #define OMAP4430_CLKACTIVITY_ASYNC_PHY2_CLK_MASK (1 << 13)
97 /* Used by CM_CAM_CLKSTCTRL */
98 #define OMAP4430_CLKACTIVITY_CAM_PHY_CTRL_GCLK_SHIFT 9
99 #define OMAP4430_CLKACTIVITY_CAM_PHY_CTRL_GCLK_MASK (1 << 9)
101 /* Used by CM_ALWON_CLKSTCTRL */
102 #define OMAP4430_CLKACTIVITY_CORE_ALWON_32K_GFCLK_SHIFT 12
103 #define OMAP4430_CLKACTIVITY_CORE_ALWON_32K_GFCLK_MASK (1 << 12)
105 /* Used by CM_EMU_CLKSTCTRL */
106 #define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_SHIFT 9
107 #define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_MASK (1 << 9)
109 /* Used by CM_L4CFG_CLKSTCTRL */
110 #define OMAP4460_CLKACTIVITY_CORE_TS_GFCLK_SHIFT 9
111 #define OMAP4460_CLKACTIVITY_CORE_TS_GFCLK_MASK (1 << 9)
113 /* Used by CM_CEFUSE_CLKSTCTRL */
114 #define OMAP4430_CLKACTIVITY_CUST_EFUSE_SYS_CLK_SHIFT 9
115 #define OMAP4430_CLKACTIVITY_CUST_EFUSE_SYS_CLK_MASK (1 << 9)
117 /* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
118 #define OMAP4430_CLKACTIVITY_DLL_CLK_SHIFT 9
119 #define OMAP4430_CLKACTIVITY_DLL_CLK_MASK (1 << 9)
121 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
122 #define OMAP4430_CLKACTIVITY_DMT10_GFCLK_SHIFT 9
123 #define OMAP4430_CLKACTIVITY_DMT10_GFCLK_MASK (1 << 9)
125 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
126 #define OMAP4430_CLKACTIVITY_DMT11_GFCLK_SHIFT 10
127 #define OMAP4430_CLKACTIVITY_DMT11_GFCLK_MASK (1 << 10)
129 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
130 #define OMAP4430_CLKACTIVITY_DMT2_GFCLK_SHIFT 11
131 #define OMAP4430_CLKACTIVITY_DMT2_GFCLK_MASK (1 << 11)
133 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
134 #define OMAP4430_CLKACTIVITY_DMT3_GFCLK_SHIFT 12
135 #define OMAP4430_CLKACTIVITY_DMT3_GFCLK_MASK (1 << 12)
137 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
138 #define OMAP4430_CLKACTIVITY_DMT4_GFCLK_SHIFT 13
139 #define OMAP4430_CLKACTIVITY_DMT4_GFCLK_MASK (1 << 13)
141 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
142 #define OMAP4430_CLKACTIVITY_DMT9_GFCLK_SHIFT 14
143 #define OMAP4430_CLKACTIVITY_DMT9_GFCLK_MASK (1 << 14)
145 /* Used by CM_DSS_CLKSTCTRL */
146 #define OMAP4430_CLKACTIVITY_DSS_ALWON_SYS_CLK_SHIFT 10
147 #define OMAP4430_CLKACTIVITY_DSS_ALWON_SYS_CLK_MASK (1 << 10)
149 /* Used by CM_DSS_CLKSTCTRL */
150 #define OMAP4430_CLKACTIVITY_DSS_FCLK_SHIFT 9
151 #define OMAP4430_CLKACTIVITY_DSS_FCLK_MASK (1 << 9)
153 /* Used by CM_DUCATI_CLKSTCTRL */
154 #define OMAP4430_CLKACTIVITY_DUCATI_GCLK_SHIFT 8
155 #define OMAP4430_CLKACTIVITY_DUCATI_GCLK_MASK (1 << 8)
157 /* Used by CM_EMU_CLKSTCTRL */
158 #define OMAP4430_CLKACTIVITY_EMU_SYS_CLK_SHIFT 8
159 #define OMAP4430_CLKACTIVITY_EMU_SYS_CLK_MASK (1 << 8)
161 /* Used by CM_CAM_CLKSTCTRL */
162 #define OMAP4430_CLKACTIVITY_FDIF_GFCLK_SHIFT 10
163 #define OMAP4430_CLKACTIVITY_FDIF_GFCLK_MASK (1 << 10)
165 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
166 #define OMAP4430_CLKACTIVITY_FUNC_12M_GFCLK_SHIFT 15
167 #define OMAP4430_CLKACTIVITY_FUNC_12M_GFCLK_MASK (1 << 15)
169 /* Used by CM1_ABE_CLKSTCTRL */
170 #define OMAP4430_CLKACTIVITY_FUNC_24M_GFCLK_SHIFT 10
171 #define OMAP4430_CLKACTIVITY_FUNC_24M_GFCLK_MASK (1 << 10)
173 /* Used by CM_DSS_CLKSTCTRL */
174 #define OMAP4430_CLKACTIVITY_HDMI_PHY_48MHZ_GFCLK_SHIFT 11
175 #define OMAP4430_CLKACTIVITY_HDMI_PHY_48MHZ_GFCLK_MASK (1 << 11)
177 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
178 #define OMAP4430_CLKACTIVITY_HSIC_P1_480M_GFCLK_SHIFT 20
179 #define OMAP4430_CLKACTIVITY_HSIC_P1_480M_GFCLK_MASK (1 << 20)
181 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
182 #define OMAP4430_CLKACTIVITY_HSIC_P1_GFCLK_SHIFT 26
183 #define OMAP4430_CLKACTIVITY_HSIC_P1_GFCLK_MASK (1 << 26)
185 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
186 #define OMAP4430_CLKACTIVITY_HSIC_P2_480M_GFCLK_SHIFT 21
187 #define OMAP4430_CLKACTIVITY_HSIC_P2_480M_GFCLK_MASK (1 << 21)
189 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
190 #define OMAP4430_CLKACTIVITY_HSIC_P2_GFCLK_SHIFT 27
191 #define OMAP4430_CLKACTIVITY_HSIC_P2_GFCLK_MASK (1 << 27)
193 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
194 #define OMAP4430_CLKACTIVITY_INIT_48MC_GFCLK_SHIFT 13
195 #define OMAP4430_CLKACTIVITY_INIT_48MC_GFCLK_MASK (1 << 13)
197 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
198 #define OMAP4430_CLKACTIVITY_INIT_48M_GFCLK_SHIFT 12
199 #define OMAP4430_CLKACTIVITY_INIT_48M_GFCLK_MASK (1 << 12)
201 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
202 #define OMAP4430_CLKACTIVITY_INIT_60M_P1_GFCLK_SHIFT 28
203 #define OMAP4430_CLKACTIVITY_INIT_60M_P1_GFCLK_MASK (1 << 28)
205 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
206 #define OMAP4430_CLKACTIVITY_INIT_60M_P2_GFCLK_SHIFT 29
207 #define OMAP4430_CLKACTIVITY_INIT_60M_P2_GFCLK_MASK (1 << 29)
209 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
210 #define OMAP4430_CLKACTIVITY_INIT_96M_GFCLK_SHIFT 11
211 #define OMAP4430_CLKACTIVITY_INIT_96M_GFCLK_MASK (1 << 11)
213 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
214 #define OMAP4430_CLKACTIVITY_INIT_HSI_GFCLK_SHIFT 16
215 #define OMAP4430_CLKACTIVITY_INIT_HSI_GFCLK_MASK (1 << 16)
217 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
218 #define OMAP4430_CLKACTIVITY_INIT_HSMMC1_GFCLK_SHIFT 17
219 #define OMAP4430_CLKACTIVITY_INIT_HSMMC1_GFCLK_MASK (1 << 17)
221 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
222 #define OMAP4430_CLKACTIVITY_INIT_HSMMC2_GFCLK_SHIFT 18
223 #define OMAP4430_CLKACTIVITY_INIT_HSMMC2_GFCLK_MASK (1 << 18)
225 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
226 #define OMAP4430_CLKACTIVITY_INIT_HSMMC6_GFCLK_SHIFT 19
227 #define OMAP4430_CLKACTIVITY_INIT_HSMMC6_GFCLK_MASK (1 << 19)
229 /* Used by CM_CAM_CLKSTCTRL */
230 #define OMAP4430_CLKACTIVITY_ISS_GCLK_SHIFT 8
231 #define OMAP4430_CLKACTIVITY_ISS_GCLK_MASK (1 << 8)
233 /* Used by CM_IVAHD_CLKSTCTRL */
234 #define OMAP4430_CLKACTIVITY_IVAHD_ROOT_CLK_SHIFT 8
235 #define OMAP4430_CLKACTIVITY_IVAHD_ROOT_CLK_MASK (1 << 8)
237 /* Used by CM_D2D_CLKSTCTRL */
238 #define OMAP4430_CLKACTIVITY_L3X2_D2D_GICLK_SHIFT 10
239 #define OMAP4430_CLKACTIVITY_L3X2_D2D_GICLK_MASK (1 << 10)
241 /* Used by CM_L3_1_CLKSTCTRL, CM_L3_1_CLKSTCTRL_RESTORE */
242 #define OMAP4430_CLKACTIVITY_L3_1_GICLK_SHIFT 8
243 #define OMAP4430_CLKACTIVITY_L3_1_GICLK_MASK (1 << 8)
245 /* Used by CM_L3_2_CLKSTCTRL, CM_L3_2_CLKSTCTRL_RESTORE */
246 #define OMAP4430_CLKACTIVITY_L3_2_GICLK_SHIFT 8
247 #define OMAP4430_CLKACTIVITY_L3_2_GICLK_MASK (1 << 8)
249 /* Used by CM_D2D_CLKSTCTRL */
250 #define OMAP4430_CLKACTIVITY_L3_D2D_GICLK_SHIFT 8
251 #define OMAP4430_CLKACTIVITY_L3_D2D_GICLK_MASK (1 << 8)
253 /* Used by CM_SDMA_CLKSTCTRL */
254 #define OMAP4430_CLKACTIVITY_L3_DMA_GICLK_SHIFT 8
255 #define OMAP4430_CLKACTIVITY_L3_DMA_GICLK_MASK (1 << 8)
257 /* Used by CM_DSS_CLKSTCTRL */
258 #define OMAP4430_CLKACTIVITY_L3_DSS_GICLK_SHIFT 8
259 #define OMAP4430_CLKACTIVITY_L3_DSS_GICLK_MASK (1 << 8)
261 /* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
262 #define OMAP4430_CLKACTIVITY_L3_EMIF_GICLK_SHIFT 8
263 #define OMAP4430_CLKACTIVITY_L3_EMIF_GICLK_MASK (1 << 8)
265 /* Used by CM_GFX_CLKSTCTRL */
266 #define OMAP4430_CLKACTIVITY_L3_GFX_GICLK_SHIFT 8
267 #define OMAP4430_CLKACTIVITY_L3_GFX_GICLK_MASK (1 << 8)
269 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
270 #define OMAP4430_CLKACTIVITY_L3_INIT_GICLK_SHIFT 8
271 #define OMAP4430_CLKACTIVITY_L3_INIT_GICLK_MASK (1 << 8)
273 /* Used by CM_L3INSTR_CLKSTCTRL */
274 #define OMAP4430_CLKACTIVITY_L3_INSTR_GICLK_SHIFT 8
275 #define OMAP4430_CLKACTIVITY_L3_INSTR_GICLK_MASK (1 << 8)
277 /* Used by CM_L4SEC_CLKSTCTRL */
278 #define OMAP4430_CLKACTIVITY_L3_SECURE_GICLK_SHIFT 8
279 #define OMAP4430_CLKACTIVITY_L3_SECURE_GICLK_MASK (1 << 8)
281 /* Used by CM_ALWON_CLKSTCTRL */
282 #define OMAP4430_CLKACTIVITY_L4_AO_ICLK_SHIFT 8
283 #define OMAP4430_CLKACTIVITY_L4_AO_ICLK_MASK (1 << 8)
285 /* Used by CM_CEFUSE_CLKSTCTRL */
286 #define OMAP4430_CLKACTIVITY_L4_CEFUSE_GICLK_SHIFT 8
287 #define OMAP4430_CLKACTIVITY_L4_CEFUSE_GICLK_MASK (1 << 8)
289 /* Used by CM_L4CFG_CLKSTCTRL, CM_L4CFG_CLKSTCTRL_RESTORE */
290 #define OMAP4430_CLKACTIVITY_L4_CFG_GICLK_SHIFT 8
291 #define OMAP4430_CLKACTIVITY_L4_CFG_GICLK_MASK (1 << 8)
293 /* Used by CM_D2D_CLKSTCTRL */
294 #define OMAP4430_CLKACTIVITY_L4_D2D_GICLK_SHIFT 9
295 #define OMAP4430_CLKACTIVITY_L4_D2D_GICLK_MASK (1 << 9)
297 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
298 #define OMAP4430_CLKACTIVITY_L4_INIT_GICLK_SHIFT 9
299 #define OMAP4430_CLKACTIVITY_L4_INIT_GICLK_MASK (1 << 9)
301 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
302 #define OMAP4430_CLKACTIVITY_L4_PER_GICLK_SHIFT 8
303 #define OMAP4430_CLKACTIVITY_L4_PER_GICLK_MASK (1 << 8)
305 /* Used by CM_L4SEC_CLKSTCTRL */
306 #define OMAP4430_CLKACTIVITY_L4_SECURE_GICLK_SHIFT 9
307 #define OMAP4430_CLKACTIVITY_L4_SECURE_GICLK_MASK (1 << 9)
309 /* Used by CM_WKUP_CLKSTCTRL */
310 #define OMAP4430_CLKACTIVITY_L4_WKUP_GICLK_SHIFT 12
311 #define OMAP4430_CLKACTIVITY_L4_WKUP_GICLK_MASK (1 << 12)
313 /* Used by CM_MPU_CLKSTCTRL, CM_MPU_CLKSTCTRL_RESTORE */
314 #define OMAP4430_CLKACTIVITY_MPU_DPLL_CLK_SHIFT 8
315 #define OMAP4430_CLKACTIVITY_MPU_DPLL_CLK_MASK (1 << 8)
317 /* Used by CM1_ABE_CLKSTCTRL */
318 #define OMAP4430_CLKACTIVITY_OCP_ABE_GICLK_SHIFT 9
319 #define OMAP4430_CLKACTIVITY_OCP_ABE_GICLK_MASK (1 << 9)
321 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
322 #define OMAP4430_CLKACTIVITY_PER_24MC_GFCLK_SHIFT 16
323 #define OMAP4430_CLKACTIVITY_PER_24MC_GFCLK_MASK (1 << 16)
325 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
326 #define OMAP4430_CLKACTIVITY_PER_32K_GFCLK_SHIFT 17
327 #define OMAP4430_CLKACTIVITY_PER_32K_GFCLK_MASK (1 << 17)
329 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
330 #define OMAP4430_CLKACTIVITY_PER_48M_GFCLK_SHIFT 18
331 #define OMAP4430_CLKACTIVITY_PER_48M_GFCLK_MASK (1 << 18)
333 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
334 #define OMAP4430_CLKACTIVITY_PER_96M_GFCLK_SHIFT 19
335 #define OMAP4430_CLKACTIVITY_PER_96M_GFCLK_MASK (1 << 19)
337 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
338 #define OMAP4430_CLKACTIVITY_PER_ABE_24M_GFCLK_SHIFT 25
339 #define OMAP4430_CLKACTIVITY_PER_ABE_24M_GFCLK_MASK (1 << 25)
341 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
342 #define OMAP4430_CLKACTIVITY_PER_MCASP2_GFCLK_SHIFT 20
343 #define OMAP4430_CLKACTIVITY_PER_MCASP2_GFCLK_MASK (1 << 20)
345 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
346 #define OMAP4430_CLKACTIVITY_PER_MCASP3_GFCLK_SHIFT 21
347 #define OMAP4430_CLKACTIVITY_PER_MCASP3_GFCLK_MASK (1 << 21)
349 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
350 #define OMAP4430_CLKACTIVITY_PER_MCBSP4_GFCLK_SHIFT 22
351 #define OMAP4430_CLKACTIVITY_PER_MCBSP4_GFCLK_MASK (1 << 22)
353 /* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
354 #define OMAP4430_CLKACTIVITY_PER_SYS_GFCLK_SHIFT 24
355 #define OMAP4430_CLKACTIVITY_PER_SYS_GFCLK_MASK (1 << 24)
357 /* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
358 #define OMAP4430_CLKACTIVITY_PHY_ROOT_CLK_SHIFT 10
359 #define OMAP4430_CLKACTIVITY_PHY_ROOT_CLK_MASK (1 << 10)
361 /* Used by CM_GFX_CLKSTCTRL */
362 #define OMAP4430_CLKACTIVITY_SGX_GFCLK_SHIFT 9
363 #define OMAP4430_CLKACTIVITY_SGX_GFCLK_MASK (1 << 9)
365 /* Used by CM_ALWON_CLKSTCTRL */
366 #define OMAP4430_CLKACTIVITY_SR_CORE_SYSCLK_SHIFT 11
367 #define OMAP4430_CLKACTIVITY_SR_CORE_SYSCLK_MASK (1 << 11)
369 /* Used by CM_ALWON_CLKSTCTRL */
370 #define OMAP4430_CLKACTIVITY_SR_IVA_SYSCLK_SHIFT 10
371 #define OMAP4430_CLKACTIVITY_SR_IVA_SYSCLK_MASK (1 << 10)
373 /* Used by CM_ALWON_CLKSTCTRL */
374 #define OMAP4430_CLKACTIVITY_SR_MPU_SYSCLK_SHIFT 9
375 #define OMAP4430_CLKACTIVITY_SR_MPU_SYSCLK_MASK (1 << 9)
377 /* Used by CM_WKUP_CLKSTCTRL */
378 #define OMAP4430_CLKACTIVITY_SYS_CLK_SHIFT 8
379 #define OMAP4430_CLKACTIVITY_SYS_CLK_MASK (1 << 8)
381 /* Used by CM_TESLA_CLKSTCTRL */
382 #define OMAP4430_CLKACTIVITY_TESLA_ROOT_CLK_SHIFT 8
383 #define OMAP4430_CLKACTIVITY_TESLA_ROOT_CLK_MASK (1 << 8)
385 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
386 #define OMAP4430_CLKACTIVITY_TLL_CH0_GFCLK_SHIFT 22
387 #define OMAP4430_CLKACTIVITY_TLL_CH0_GFCLK_MASK (1 << 22)
389 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
390 #define OMAP4430_CLKACTIVITY_TLL_CH1_GFCLK_SHIFT 23
391 #define OMAP4430_CLKACTIVITY_TLL_CH1_GFCLK_MASK (1 << 23)
393 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
394 #define OMAP4430_CLKACTIVITY_TLL_CH2_GFCLK_SHIFT 24
395 #define OMAP4430_CLKACTIVITY_TLL_CH2_GFCLK_MASK (1 << 24)
397 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
398 #define OMAP4430_CLKACTIVITY_UNIPRO_DPLL_CLK_SHIFT 10
399 #define OMAP4430_CLKACTIVITY_UNIPRO_DPLL_CLK_MASK (1 << 10)
401 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
402 #define OMAP4430_CLKACTIVITY_USB_DPLL_CLK_SHIFT 14
403 #define OMAP4430_CLKACTIVITY_USB_DPLL_CLK_MASK (1 << 14)
405 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
406 #define OMAP4430_CLKACTIVITY_USB_DPLL_HS_CLK_SHIFT 15
407 #define OMAP4430_CLKACTIVITY_USB_DPLL_HS_CLK_MASK (1 << 15)
409 /* Used by CM_WKUP_CLKSTCTRL */
410 #define OMAP4430_CLKACTIVITY_USIM_GFCLK_SHIFT 10
411 #define OMAP4430_CLKACTIVITY_USIM_GFCLK_MASK (1 << 10)
413 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
414 #define OMAP4430_CLKACTIVITY_UTMI_P3_GFCLK_SHIFT 30
415 #define OMAP4430_CLKACTIVITY_UTMI_P3_GFCLK_MASK (1 << 30)
417 /* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
418 #define OMAP4430_CLKACTIVITY_UTMI_ROOT_GFCLK_SHIFT 25
419 #define OMAP4430_CLKACTIVITY_UTMI_ROOT_GFCLK_MASK (1 << 25)
421 /* Used by CM_WKUP_CLKSTCTRL */
422 #define OMAP4430_CLKACTIVITY_WKUP_32K_GFCLK_SHIFT 11
423 #define OMAP4430_CLKACTIVITY_WKUP_32K_GFCLK_MASK (1 << 11)
425 /* Used by CM_WKUP_CLKSTCTRL */
426 #define OMAP4460_CLKACTIVITY_WKUP_TS_GFCLK_SHIFT 13
427 #define OMAP4460_CLKACTIVITY_WKUP_TS_GFCLK_MASK (1 << 13)
430 * Used by CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL,
431 * CM1_ABE_TIMER7_CLKCTRL, CM1_ABE_TIMER8_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL,
432 * CM_L3INIT_MMC2_CLKCTRL, CM_L3INIT_MMC6_CLKCTRL, CM_L4PER_DMTIMER10_CLKCTRL,
433 * CM_L4PER_DMTIMER11_CLKCTRL, CM_L4PER_DMTIMER2_CLKCTRL,
434 * CM_L4PER_DMTIMER3_CLKCTRL, CM_L4PER_DMTIMER4_CLKCTRL,
435 * CM_L4PER_DMTIMER9_CLKCTRL, CM_L4PER_MCASP2_CLKCTRL, CM_L4PER_MCASP3_CLKCTRL,
436 * CM_WKUP_TIMER1_CLKCTRL
438 #define OMAP4430_CLKSEL_SHIFT 24
439 #define OMAP4430_CLKSEL_MASK (1 << 24)
442 * Renamed from CLKSEL Used by CM_ABE_DSS_SYS_CLKSEL, CM_ABE_PLL_REF_CLKSEL,
443 * CM_L4_WKUP_CLKSEL, CM_CLKSEL_DUCATI_ISS_ROOT, CM_CLKSEL_USB_60MHZ
445 #define OMAP4430_CLKSEL_0_0_SHIFT 0
446 #define OMAP4430_CLKSEL_0_0_MASK (1 << 0)
448 /* Renamed from CLKSEL Used by CM_BYPCLK_DPLL_IVA, CM_BYPCLK_DPLL_MPU */
449 #define OMAP4430_CLKSEL_0_1_SHIFT 0
450 #define OMAP4430_CLKSEL_0_1_MASK (0x3 << 0)
452 /* Renamed from CLKSEL Used by CM_L3INIT_HSI_CLKCTRL */
453 #define OMAP4430_CLKSEL_24_25_SHIFT 24
454 #define OMAP4430_CLKSEL_24_25_MASK (0x3 << 24)
456 /* Used by CM_L3INIT_USB_OTG_CLKCTRL */
457 #define OMAP4430_CLKSEL_60M_SHIFT 24
458 #define OMAP4430_CLKSEL_60M_MASK (1 << 24)
460 /* Used by CM_MPU_MPU_CLKCTRL */
461 #define OMAP4460_CLKSEL_ABE_DIV_MODE_SHIFT 25
462 #define OMAP4460_CLKSEL_ABE_DIV_MODE_MASK (1 << 25)
464 /* Used by CM1_ABE_AESS_CLKCTRL */
465 #define OMAP4430_CLKSEL_AESS_FCLK_SHIFT 24
466 #define OMAP4430_CLKSEL_AESS_FCLK_MASK (1 << 24)
468 /* Used by CM_CLKSEL_CORE, CM_CLKSEL_CORE_RESTORE */
469 #define OMAP4430_CLKSEL_CORE_SHIFT 0
470 #define OMAP4430_CLKSEL_CORE_MASK (1 << 0)
473 * Renamed from CLKSEL_CORE Used by CM_SHADOW_FREQ_CONFIG2_RESTORE,
474 * CM_SHADOW_FREQ_CONFIG2
476 #define OMAP4430_CLKSEL_CORE_1_1_SHIFT 1
477 #define OMAP4430_CLKSEL_CORE_1_1_MASK (1 << 1)
479 /* Used by CM_WKUP_USIM_CLKCTRL */
480 #define OMAP4430_CLKSEL_DIV_SHIFT 24
481 #define OMAP4430_CLKSEL_DIV_MASK (1 << 24)
483 /* Used by CM_MPU_MPU_CLKCTRL */
484 #define OMAP4460_CLKSEL_EMIF_DIV_MODE_SHIFT 24
485 #define OMAP4460_CLKSEL_EMIF_DIV_MODE_MASK (1 << 24)
487 /* Used by CM_CAM_FDIF_CLKCTRL */
488 #define OMAP4430_CLKSEL_FCLK_SHIFT 24
489 #define OMAP4430_CLKSEL_FCLK_MASK (0x3 << 24)
491 /* Used by CM_L4PER_MCBSP4_CLKCTRL */
492 #define OMAP4430_CLKSEL_INTERNAL_SOURCE_SHIFT 25
493 #define OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK (1 << 25)
496 * Renamed from CLKSEL_INTERNAL_SOURCE Used by CM1_ABE_DMIC_CLKCTRL,
497 * CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL,
498 * CM1_ABE_MCBSP3_CLKCTRL
500 #define OMAP4430_CLKSEL_INTERNAL_SOURCE_CM1_ABE_SHIFT 26
501 #define OMAP4430_CLKSEL_INTERNAL_SOURCE_CM1_ABE_MASK (0x3 << 26)
503 /* Used by CM_CLKSEL_CORE, CM_CLKSEL_CORE_RESTORE */
504 #define OMAP4430_CLKSEL_L3_SHIFT 4
505 #define OMAP4430_CLKSEL_L3_MASK (1 << 4)
508 * Renamed from CLKSEL_L3 Used by CM_SHADOW_FREQ_CONFIG2_RESTORE,
509 * CM_SHADOW_FREQ_CONFIG2
511 #define OMAP4430_CLKSEL_L3_SHADOW_SHIFT 2
512 #define OMAP4430_CLKSEL_L3_SHADOW_MASK (1 << 2)
514 /* Used by CM_CLKSEL_CORE, CM_CLKSEL_CORE_RESTORE */
515 #define OMAP4430_CLKSEL_L4_SHIFT 8
516 #define OMAP4430_CLKSEL_L4_MASK (1 << 8)
518 /* Used by CM_CLKSEL_ABE */
519 #define OMAP4430_CLKSEL_OPP_SHIFT 0
520 #define OMAP4430_CLKSEL_OPP_MASK (0x3 << 0)
522 /* Used by CM_EMU_DEBUGSS_CLKCTRL */
523 #define OMAP4430_CLKSEL_PMD_STM_CLK_SHIFT 27
524 #define OMAP4430_CLKSEL_PMD_STM_CLK_MASK (0x7 << 27)
526 /* Used by CM_EMU_DEBUGSS_CLKCTRL */
527 #define OMAP4430_CLKSEL_PMD_TRACE_CLK_SHIFT 24
528 #define OMAP4430_CLKSEL_PMD_TRACE_CLK_MASK (0x7 << 24)
530 /* Used by CM_GFX_GFX_CLKCTRL */
531 #define OMAP4430_CLKSEL_SGX_FCLK_SHIFT 24
532 #define OMAP4430_CLKSEL_SGX_FCLK_MASK (1 << 24)
535 * Used by CM1_ABE_DMIC_CLKCTRL, CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL,
536 * CM1_ABE_MCBSP2_CLKCTRL, CM1_ABE_MCBSP3_CLKCTRL
538 #define OMAP4430_CLKSEL_SOURCE_SHIFT 24
539 #define OMAP4430_CLKSEL_SOURCE_MASK (0x3 << 24)
541 /* Renamed from CLKSEL_SOURCE Used by CM_L4PER_MCBSP4_CLKCTRL */
542 #define OMAP4430_CLKSEL_SOURCE_24_24_SHIFT 24
543 #define OMAP4430_CLKSEL_SOURCE_24_24_MASK (1 << 24)
545 /* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
546 #define OMAP4430_CLKSEL_UTMI_P1_SHIFT 24
547 #define OMAP4430_CLKSEL_UTMI_P1_MASK (1 << 24)
549 /* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
550 #define OMAP4430_CLKSEL_UTMI_P2_SHIFT 25
551 #define OMAP4430_CLKSEL_UTMI_P2_MASK (1 << 25)
554 * Used by CM1_ABE_CLKSTCTRL, CM_ALWON_CLKSTCTRL, CM_CAM_CLKSTCTRL,
555 * CM_CEFUSE_CLKSTCTRL, CM_D2D_CLKSTCTRL, CM_DSS_CLKSTCTRL,
556 * CM_DUCATI_CLKSTCTRL, CM_EMU_CLKSTCTRL, CM_GFX_CLKSTCTRL, CM_IVAHD_CLKSTCTRL,
557 * CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE, CM_L3INSTR_CLKSTCTRL,
558 * CM_L3_1_CLKSTCTRL, CM_L3_1_CLKSTCTRL_RESTORE, CM_L3_2_CLKSTCTRL,
559 * CM_L3_2_CLKSTCTRL_RESTORE, CM_L4CFG_CLKSTCTRL, CM_L4CFG_CLKSTCTRL_RESTORE,
560 * CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE, CM_L4SEC_CLKSTCTRL,
561 * CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE, CM_MPU_CLKSTCTRL,
562 * CM_MPU_CLKSTCTRL_RESTORE, CM_SDMA_CLKSTCTRL, CM_TESLA_CLKSTCTRL,
563 * CM_WKUP_CLKSTCTRL
565 #define OMAP4430_CLKTRCTRL_SHIFT 0
566 #define OMAP4430_CLKTRCTRL_MASK (0x3 << 0)
568 /* Used by CM_EMU_OVERRIDE_DPLL_CORE */
569 #define OMAP4430_CORE_DPLL_EMU_DIV_SHIFT 0
570 #define OMAP4430_CORE_DPLL_EMU_DIV_MASK (0x7f << 0)
572 /* Used by CM_EMU_OVERRIDE_DPLL_CORE */
573 #define OMAP4430_CORE_DPLL_EMU_MULT_SHIFT 8
574 #define OMAP4430_CORE_DPLL_EMU_MULT_MASK (0x7ff << 8)
576 /* Used by REVISION_CM1, REVISION_CM2 */
577 #define OMAP4430_CUSTOM_SHIFT 6
578 #define OMAP4430_CUSTOM_MASK (0x3 << 6)
581 * Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP,
582 * CM_L4CFG_DYNAMICDEP_RESTORE
584 #define OMAP4430_D2D_DYNDEP_SHIFT 18
585 #define OMAP4430_D2D_DYNDEP_MASK (1 << 18)
587 /* Used by CM_MPU_STATICDEP */
588 #define OMAP4430_D2D_STATDEP_SHIFT 18
589 #define OMAP4430_D2D_STATDEP_MASK (1 << 18)
591 /* Used by CM_CLKSEL_DPLL_MPU */
592 #define OMAP4460_DCC_COUNT_MAX_SHIFT 24
593 #define OMAP4460_DCC_COUNT_MAX_MASK (0xff << 24)
595 /* Used by CM_CLKSEL_DPLL_MPU */
596 #define OMAP4460_DCC_EN_SHIFT 22
597 #define OMAP4460_DCC_EN_MASK (1 << 22)
600 * Used by CM_SSC_DELTAMSTEP_DPLL_ABE, CM_SSC_DELTAMSTEP_DPLL_CORE,
601 * CM_SSC_DELTAMSTEP_DPLL_CORE_RESTORE, CM_SSC_DELTAMSTEP_DPLL_DDRPHY,
602 * CM_SSC_DELTAMSTEP_DPLL_IVA, CM_SSC_DELTAMSTEP_DPLL_MPU,
603 * CM_SSC_DELTAMSTEP_DPLL_PER, CM_SSC_DELTAMSTEP_DPLL_UNIPRO,
604 * CM_SSC_DELTAMSTEP_DPLL_USB
606 #define OMAP4430_DELTAMSTEP_SHIFT 0
607 #define OMAP4430_DELTAMSTEP_MASK (0xfffff << 0)
609 /* Used by CM_SHADOW_FREQ_CONFIG1, CM_SHADOW_FREQ_CONFIG1_RESTORE */
610 #define OMAP4430_DLL_OVERRIDE_SHIFT 2
611 #define OMAP4430_DLL_OVERRIDE_MASK (1 << 2)
613 /* Renamed from DLL_OVERRIDE Used by CM_DLL_CTRL */
614 #define OMAP4430_DLL_OVERRIDE_0_0_SHIFT 0
615 #define OMAP4430_DLL_OVERRIDE_0_0_MASK (1 << 0)
617 /* Used by CM_SHADOW_FREQ_CONFIG1, CM_SHADOW_FREQ_CONFIG1_RESTORE */
618 #define OMAP4430_DLL_RESET_SHIFT 3
619 #define OMAP4430_DLL_RESET_MASK (1 << 3)
622 * Used by CM_CLKSEL_DPLL_ABE, CM_CLKSEL_DPLL_CORE,
623 * CM_CLKSEL_DPLL_CORE_RESTORE, CM_CLKSEL_DPLL_DDRPHY, CM_CLKSEL_DPLL_IVA,
624 * CM_CLKSEL_DPLL_MPU, CM_CLKSEL_DPLL_PER, CM_CLKSEL_DPLL_UNIPRO,
625 * CM_CLKSEL_DPLL_USB
627 #define OMAP4430_DPLL_BYP_CLKSEL_SHIFT 23
628 #define OMAP4430_DPLL_BYP_CLKSEL_MASK (1 << 23)
630 /* Used by CM_CLKDCOLDO_DPLL_USB */
631 #define OMAP4430_DPLL_CLKDCOLDO_GATE_CTRL_SHIFT 8
632 #define OMAP4430_DPLL_CLKDCOLDO_GATE_CTRL_MASK (1 << 8)
634 /* Used by CM_CLKSEL_DPLL_CORE, CM_CLKSEL_DPLL_CORE_RESTORE */
635 #define OMAP4430_DPLL_CLKOUTHIF_CLKSEL_SHIFT 20
636 #define OMAP4430_DPLL_CLKOUTHIF_CLKSEL_MASK (1 << 20)
639 * Used by CM_DIV_M3_DPLL_ABE, CM_DIV_M3_DPLL_CORE,
640 * CM_DIV_M3_DPLL_CORE_RESTORE, CM_DIV_M3_DPLL_PER
642 #define OMAP4430_DPLL_CLKOUTHIF_DIV_SHIFT 0
643 #define OMAP4430_DPLL_CLKOUTHIF_DIV_MASK (0x1f << 0)
646 * Used by CM_DIV_M3_DPLL_ABE, CM_DIV_M3_DPLL_CORE,
647 * CM_DIV_M3_DPLL_CORE_RESTORE, CM_DIV_M3_DPLL_PER
649 #define OMAP4430_DPLL_CLKOUTHIF_DIVCHACK_SHIFT 5
650 #define OMAP4430_DPLL_CLKOUTHIF_DIVCHACK_MASK (1 << 5)
653 * Used by CM_DIV_M3_DPLL_ABE, CM_DIV_M3_DPLL_CORE,
654 * CM_DIV_M3_DPLL_CORE_RESTORE, CM_DIV_M3_DPLL_PER
656 #define OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_SHIFT 8
657 #define OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_MASK (1 << 8)
659 /* Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO */
660 #define OMAP4430_DPLL_CLKOUTX2_GATE_CTRL_SHIFT 10
661 #define OMAP4430_DPLL_CLKOUTX2_GATE_CTRL_MASK (1 << 10)
664 * Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE,
665 * CM_DIV_M2_DPLL_CORE_RESTORE, CM_DIV_M2_DPLL_DDRPHY, CM_DIV_M2_DPLL_MPU,
666 * CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO
668 #define OMAP4430_DPLL_CLKOUT_DIV_SHIFT 0
669 #define OMAP4430_DPLL_CLKOUT_DIV_MASK (0x1f << 0)
671 /* Renamed from DPLL_CLKOUT_DIV Used by CM_DIV_M2_DPLL_USB */
672 #define OMAP4430_DPLL_CLKOUT_DIV_0_6_SHIFT 0
673 #define OMAP4430_DPLL_CLKOUT_DIV_0_6_MASK (0x7f << 0)
676 * Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE,
677 * CM_DIV_M2_DPLL_CORE_RESTORE, CM_DIV_M2_DPLL_DDRPHY, CM_DIV_M2_DPLL_MPU,
678 * CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO
680 #define OMAP4430_DPLL_CLKOUT_DIVCHACK_SHIFT 5
681 #define OMAP4430_DPLL_CLKOUT_DIVCHACK_MASK (1 << 5)
683 /* Renamed from DPLL_CLKOUT_DIVCHACK Used by CM_DIV_M2_DPLL_USB */
684 #define OMAP4430_DPLL_CLKOUT_DIVCHACK_M2_USB_SHIFT 7
685 #define OMAP4430_DPLL_CLKOUT_DIVCHACK_M2_USB_MASK (1 << 7)
688 * Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE,
689 * CM_DIV_M2_DPLL_CORE_RESTORE, CM_DIV_M2_DPLL_DDRPHY, CM_DIV_M2_DPLL_MPU,
690 * CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_USB
692 #define OMAP4430_DPLL_CLKOUT_GATE_CTRL_SHIFT 8
693 #define OMAP4430_DPLL_CLKOUT_GATE_CTRL_MASK (1 << 8)
695 /* Used by CM_SHADOW_FREQ_CONFIG1, CM_SHADOW_FREQ_CONFIG1_RESTORE */
696 #define OMAP4430_DPLL_CORE_DPLL_EN_SHIFT 8
697 #define OMAP4430_DPLL_CORE_DPLL_EN_MASK (0x7 << 8)
699 /* Used by CM_SHADOW_FREQ_CONFIG1, CM_SHADOW_FREQ_CONFIG1_RESTORE */
700 #define OMAP4430_DPLL_CORE_M2_DIV_SHIFT 11
701 #define OMAP4430_DPLL_CORE_M2_DIV_MASK (0x1f << 11)
703 /* Used by CM_SHADOW_FREQ_CONFIG2, CM_SHADOW_FREQ_CONFIG2_RESTORE */
704 #define OMAP4430_DPLL_CORE_M5_DIV_SHIFT 3
705 #define OMAP4430_DPLL_CORE_M5_DIV_MASK (0x1f << 3)
708 * Used by CM_CLKSEL_DPLL_ABE, CM_CLKSEL_DPLL_CORE,
709 * CM_CLKSEL_DPLL_CORE_RESTORE, CM_CLKSEL_DPLL_DDRPHY, CM_CLKSEL_DPLL_IVA,
710 * CM_CLKSEL_DPLL_MPU, CM_CLKSEL_DPLL_PER, CM_CLKSEL_DPLL_UNIPRO
712 #define OMAP4430_DPLL_DIV_SHIFT 0
713 #define OMAP4430_DPLL_DIV_MASK (0x7f << 0)
715 /* Renamed from DPLL_DIV Used by CM_CLKSEL_DPLL_USB */
716 #define OMAP4430_DPLL_DIV_0_7_SHIFT 0
717 #define OMAP4430_DPLL_DIV_0_7_MASK (0xff << 0)
720 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
721 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA,
722 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER
724 #define OMAP4430_DPLL_DRIFTGUARD_EN_SHIFT 8
725 #define OMAP4430_DPLL_DRIFTGUARD_EN_MASK (1 << 8)
727 /* Renamed from DPLL_DRIFTGUARD_EN Used by CM_CLKMODE_DPLL_UNIPRO */
728 #define OMAP4430_DPLL_DRIFTGUARD_EN_3_3_SHIFT 3
729 #define OMAP4430_DPLL_DRIFTGUARD_EN_3_3_MASK (1 << 3)
732 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
733 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA,
734 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO,
735 * CM_CLKMODE_DPLL_USB
737 #define OMAP4430_DPLL_EN_SHIFT 0
738 #define OMAP4430_DPLL_EN_MASK (0x7 << 0)
741 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
742 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA,
743 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO
745 #define OMAP4430_DPLL_LPMODE_EN_SHIFT 10
746 #define OMAP4430_DPLL_LPMODE_EN_MASK (1 << 10)
749 * Used by CM_CLKSEL_DPLL_ABE, CM_CLKSEL_DPLL_CORE,
750 * CM_CLKSEL_DPLL_CORE_RESTORE, CM_CLKSEL_DPLL_DDRPHY, CM_CLKSEL_DPLL_IVA,
751 * CM_CLKSEL_DPLL_MPU, CM_CLKSEL_DPLL_PER, CM_CLKSEL_DPLL_UNIPRO
753 #define OMAP4430_DPLL_MULT_SHIFT 8
754 #define OMAP4430_DPLL_MULT_MASK (0x7ff << 8)
756 /* Renamed from DPLL_MULT Used by CM_CLKSEL_DPLL_USB */
757 #define OMAP4430_DPLL_MULT_USB_SHIFT 8
758 #define OMAP4430_DPLL_MULT_USB_MASK (0xfff << 8)
761 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
762 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA,
763 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO
765 #define OMAP4430_DPLL_REGM4XEN_SHIFT 11
766 #define OMAP4430_DPLL_REGM4XEN_MASK (1 << 11)
768 /* Used by CM_CLKSEL_DPLL_USB */
769 #define OMAP4430_DPLL_SD_DIV_SHIFT 24
770 #define OMAP4430_DPLL_SD_DIV_MASK (0xff << 24)
773 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
774 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA,
775 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO,
776 * CM_CLKMODE_DPLL_USB
778 #define OMAP4430_DPLL_SSC_ACK_SHIFT 13
779 #define OMAP4430_DPLL_SSC_ACK_MASK (1 << 13)
782 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
783 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA,
784 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO,
785 * CM_CLKMODE_DPLL_USB
787 #define OMAP4430_DPLL_SSC_DOWNSPREAD_SHIFT 14
788 #define OMAP4430_DPLL_SSC_DOWNSPREAD_MASK (1 << 14)
791 * Used by CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
792 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA,
793 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO,
794 * CM_CLKMODE_DPLL_USB
796 #define OMAP4430_DPLL_SSC_EN_SHIFT 12
797 #define OMAP4430_DPLL_SSC_EN_MASK (1 << 12)
800 * Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP,
801 * CM_L4CFG_DYNAMICDEP_RESTORE, CM_L4PER_DYNAMICDEP, CM_L4PER_DYNAMICDEP_RESTORE
803 #define OMAP4430_DSS_DYNDEP_SHIFT 8
804 #define OMAP4430_DSS_DYNDEP_MASK (1 << 8)
807 * Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_SDMA_STATICDEP,
808 * CM_SDMA_STATICDEP_RESTORE
810 #define OMAP4430_DSS_STATDEP_SHIFT 8
811 #define OMAP4430_DSS_STATDEP_MASK (1 << 8)
813 /* Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE */
814 #define OMAP4430_DUCATI_DYNDEP_SHIFT 0
815 #define OMAP4430_DUCATI_DYNDEP_MASK (1 << 0)
817 /* Used by CM_MPU_STATICDEP, CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE */
818 #define OMAP4430_DUCATI_STATDEP_SHIFT 0
819 #define OMAP4430_DUCATI_STATDEP_MASK (1 << 0)
821 /* Used by CM_SHADOW_FREQ_CONFIG1, CM_SHADOW_FREQ_CONFIG1_RESTORE */
822 #define OMAP4430_FREQ_UPDATE_SHIFT 0
823 #define OMAP4430_FREQ_UPDATE_MASK (1 << 0)
825 /* Used by REVISION_CM1, REVISION_CM2 */
826 #define OMAP4430_FUNC_SHIFT 16
827 #define OMAP4430_FUNC_MASK (0xfff << 16)
829 /* Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE */
830 #define OMAP4430_GFX_DYNDEP_SHIFT 10
831 #define OMAP4430_GFX_DYNDEP_MASK (1 << 10)
833 /* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP */
834 #define OMAP4430_GFX_STATDEP_SHIFT 10
835 #define OMAP4430_GFX_STATDEP_MASK (1 << 10)
837 /* Used by CM_SHADOW_FREQ_CONFIG2, CM_SHADOW_FREQ_CONFIG2_RESTORE */
838 #define OMAP4430_GPMC_FREQ_UPDATE_SHIFT 0
839 #define OMAP4430_GPMC_FREQ_UPDATE_MASK (1 << 0)
842 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_CORE_RESTORE,
843 * CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA, CM_DIV_M4_DPLL_PER
845 #define OMAP4430_HSDIVIDER_CLKOUT1_DIV_SHIFT 0
846 #define OMAP4430_HSDIVIDER_CLKOUT1_DIV_MASK (0x1f << 0)
849 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_CORE_RESTORE,
850 * CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA, CM_DIV_M4_DPLL_PER
852 #define OMAP4430_HSDIVIDER_CLKOUT1_DIVCHACK_SHIFT 5
853 #define OMAP4430_HSDIVIDER_CLKOUT1_DIVCHACK_MASK (1 << 5)
856 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_CORE_RESTORE,
857 * CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA, CM_DIV_M4_DPLL_PER
859 #define OMAP4430_HSDIVIDER_CLKOUT1_GATE_CTRL_SHIFT 8
860 #define OMAP4430_HSDIVIDER_CLKOUT1_GATE_CTRL_MASK (1 << 8)
863 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_CORE_RESTORE,
864 * CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA, CM_DIV_M4_DPLL_PER
866 #define OMAP4430_HSDIVIDER_CLKOUT1_PWDN_SHIFT 12
867 #define OMAP4430_HSDIVIDER_CLKOUT1_PWDN_MASK (1 << 12)
870 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_CORE_RESTORE,
871 * CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA, CM_DIV_M5_DPLL_PER
873 #define OMAP4430_HSDIVIDER_CLKOUT2_DIV_SHIFT 0
874 #define OMAP4430_HSDIVIDER_CLKOUT2_DIV_MASK (0x1f << 0)
877 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_CORE_RESTORE,
878 * CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA, CM_DIV_M5_DPLL_PER
880 #define OMAP4430_HSDIVIDER_CLKOUT2_DIVCHACK_SHIFT 5
881 #define OMAP4430_HSDIVIDER_CLKOUT2_DIVCHACK_MASK (1 << 5)
884 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_CORE_RESTORE,
885 * CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA, CM_DIV_M5_DPLL_PER
887 #define OMAP4430_HSDIVIDER_CLKOUT2_GATE_CTRL_SHIFT 8
888 #define OMAP4430_HSDIVIDER_CLKOUT2_GATE_CTRL_MASK (1 << 8)
891 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_CORE_RESTORE,
892 * CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA, CM_DIV_M5_DPLL_PER
894 #define OMAP4430_HSDIVIDER_CLKOUT2_PWDN_SHIFT 12
895 #define OMAP4430_HSDIVIDER_CLKOUT2_PWDN_MASK (1 << 12)
898 * Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_CORE_RESTORE,
899 * CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER
901 #define OMAP4430_HSDIVIDER_CLKOUT3_DIV_SHIFT 0
902 #define OMAP4430_HSDIVIDER_CLKOUT3_DIV_MASK (0x1f << 0)
905 * Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_CORE_RESTORE,
906 * CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER
908 #define OMAP4430_HSDIVIDER_CLKOUT3_DIVCHACK_SHIFT 5
909 #define OMAP4430_HSDIVIDER_CLKOUT3_DIVCHACK_MASK (1 << 5)
912 * Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_CORE_RESTORE,
913 * CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER
915 #define OMAP4430_HSDIVIDER_CLKOUT3_GATE_CTRL_SHIFT 8
916 #define OMAP4430_HSDIVIDER_CLKOUT3_GATE_CTRL_MASK (1 << 8)
919 * Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_CORE_RESTORE,
920 * CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER
922 #define OMAP4430_HSDIVIDER_CLKOUT3_PWDN_SHIFT 12
923 #define OMAP4430_HSDIVIDER_CLKOUT3_PWDN_MASK (1 << 12)
926 * Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_CORE_RESTORE,
927 * CM_DIV_M7_DPLL_PER
929 #define OMAP4430_HSDIVIDER_CLKOUT4_DIV_SHIFT 0
930 #define OMAP4430_HSDIVIDER_CLKOUT4_DIV_MASK (0x1f << 0)
933 * Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_CORE_RESTORE,
934 * CM_DIV_M7_DPLL_PER
936 #define OMAP4430_HSDIVIDER_CLKOUT4_DIVCHACK_SHIFT 5
937 #define OMAP4430_HSDIVIDER_CLKOUT4_DIVCHACK_MASK (1 << 5)
940 * Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_CORE_RESTORE,
941 * CM_DIV_M7_DPLL_PER
943 #define OMAP4430_HSDIVIDER_CLKOUT4_GATE_CTRL_SHIFT 8
944 #define OMAP4430_HSDIVIDER_CLKOUT4_GATE_CTRL_MASK (1 << 8)
947 * Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_CORE_RESTORE,
948 * CM_DIV_M7_DPLL_PER
950 #define OMAP4430_HSDIVIDER_CLKOUT4_PWDN_SHIFT 12
951 #define OMAP4430_HSDIVIDER_CLKOUT4_PWDN_MASK (1 << 12)
954 * Used by CM1_ABE_AESS_CLKCTRL, CM1_ABE_DMIC_CLKCTRL, CM1_ABE_L4ABE_CLKCTRL,
955 * CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL,
956 * CM1_ABE_MCBSP3_CLKCTRL, CM1_ABE_PDM_CLKCTRL, CM1_ABE_SLIMBUS_CLKCTRL,
957 * CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL, CM1_ABE_TIMER7_CLKCTRL,
958 * CM1_ABE_TIMER8_CLKCTRL, CM1_ABE_WDT3_CLKCTRL, CM_ALWON_MDMINTC_CLKCTRL,
959 * CM_ALWON_SR_CORE_CLKCTRL, CM_ALWON_SR_IVA_CLKCTRL, CM_ALWON_SR_MPU_CLKCTRL,
960 * CM_CAM_FDIF_CLKCTRL, CM_CAM_ISS_CLKCTRL, CM_CEFUSE_CEFUSE_CLKCTRL,
961 * CM_CM1_PROFILING_CLKCTRL, CM_CM1_PROFILING_CLKCTRL_RESTORE,
962 * CM_CM2_PROFILING_CLKCTRL, CM_CM2_PROFILING_CLKCTRL_RESTORE,
963 * CM_D2D_MODEM_ICR_CLKCTRL, CM_D2D_SAD2D_CLKCTRL, CM_D2D_SAD2D_FW_CLKCTRL,
964 * CM_DSS_DEISS_CLKCTRL, CM_DSS_DSS_CLKCTRL, CM_DUCATI_DUCATI_CLKCTRL,
965 * CM_EMU_DEBUGSS_CLKCTRL, CM_GFX_GFX_CLKCTRL, CM_IVAHD_IVAHD_CLKCTRL,
966 * CM_IVAHD_SL2_CLKCTRL, CM_L3INIT_CCPTX_CLKCTRL, CM_L3INIT_EMAC_CLKCTRL,
967 * CM_L3INIT_HSI_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL, CM_L3INIT_MMC2_CLKCTRL,
968 * CM_L3INIT_MMC6_CLKCTRL, CM_L3INIT_P1500_CLKCTRL, CM_L3INIT_PCIESS_CLKCTRL,
969 * CM_L3INIT_SATA_CLKCTRL, CM_L3INIT_TPPSS_CLKCTRL, CM_L3INIT_UNIPRO1_CLKCTRL,
970 * CM_L3INIT_USBPHYOCP2SCP_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL,
971 * CM_L3INIT_USB_HOST_CLKCTRL_RESTORE, CM_L3INIT_USB_HOST_FS_CLKCTRL,
972 * CM_L3INIT_USB_OTG_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL,
973 * CM_L3INIT_USB_TLL_CLKCTRL_RESTORE, CM_L3INIT_XHPI_CLKCTRL,
974 * CM_L3INSTR_L3_3_CLKCTRL, CM_L3INSTR_L3_3_CLKCTRL_RESTORE,
975 * CM_L3INSTR_L3_INSTR_CLKCTRL, CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE,
976 * CM_L3INSTR_OCP_WP1_CLKCTRL, CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE,
977 * CM_L3_1_L3_1_CLKCTRL, CM_L3_2_GPMC_CLKCTRL, CM_L3_2_L3_2_CLKCTRL,
978 * CM_L3_2_OCMC_RAM_CLKCTRL, CM_L4CFG_HW_SEM_CLKCTRL, CM_L4CFG_L4_CFG_CLKCTRL,
979 * CM_L4CFG_MAILBOX_CLKCTRL, CM_L4CFG_SAR_ROM_CLKCTRL, CM_L4PER_ADC_CLKCTRL,
980 * CM_L4PER_DMTIMER10_CLKCTRL, CM_L4PER_DMTIMER11_CLKCTRL,
981 * CM_L4PER_DMTIMER2_CLKCTRL, CM_L4PER_DMTIMER3_CLKCTRL,
982 * CM_L4PER_DMTIMER4_CLKCTRL, CM_L4PER_DMTIMER9_CLKCTRL, CM_L4PER_ELM_CLKCTRL,
983 * CM_L4PER_GPIO2_CLKCTRL, CM_L4PER_GPIO2_CLKCTRL_RESTORE,
984 * CM_L4PER_GPIO3_CLKCTRL, CM_L4PER_GPIO3_CLKCTRL_RESTORE,
985 * CM_L4PER_GPIO4_CLKCTRL, CM_L4PER_GPIO4_CLKCTRL_RESTORE,
986 * CM_L4PER_GPIO5_CLKCTRL, CM_L4PER_GPIO5_CLKCTRL_RESTORE,
987 * CM_L4PER_GPIO6_CLKCTRL, CM_L4PER_GPIO6_CLKCTRL_RESTORE,
988 * CM_L4PER_HDQ1W_CLKCTRL, CM_L4PER_HECC1_CLKCTRL, CM_L4PER_HECC2_CLKCTRL,
989 * CM_L4PER_I2C1_CLKCTRL, CM_L4PER_I2C2_CLKCTRL, CM_L4PER_I2C3_CLKCTRL,
990 * CM_L4PER_I2C4_CLKCTRL, CM_L4PER_I2C5_CLKCTRL, CM_L4PER_L4PER_CLKCTRL,
991 * CM_L4PER_MCASP2_CLKCTRL, CM_L4PER_MCASP3_CLKCTRL, CM_L4PER_MCBSP4_CLKCTRL,
992 * CM_L4PER_MCSPI1_CLKCTRL, CM_L4PER_MCSPI2_CLKCTRL, CM_L4PER_MCSPI3_CLKCTRL,
993 * CM_L4PER_MCSPI4_CLKCTRL, CM_L4PER_MGATE_CLKCTRL, CM_L4PER_MMCSD3_CLKCTRL,
994 * CM_L4PER_MMCSD4_CLKCTRL, CM_L4PER_MMCSD5_CLKCTRL, CM_L4PER_MSPROHG_CLKCTRL,
995 * CM_L4PER_SLIMBUS2_CLKCTRL, CM_L4PER_UART1_CLKCTRL, CM_L4PER_UART2_CLKCTRL,
996 * CM_L4PER_UART3_CLKCTRL, CM_L4PER_UART4_CLKCTRL, CM_L4SEC_AES1_CLKCTRL,
997 * CM_L4SEC_AES2_CLKCTRL, CM_L4SEC_CRYPTODMA_CLKCTRL, CM_L4SEC_DES3DES_CLKCTRL,
998 * CM_L4SEC_PKAEIP29_CLKCTRL, CM_L4SEC_RNG_CLKCTRL, CM_L4SEC_SHA2MD51_CLKCTRL,
999 * CM_MEMIF_DMM_CLKCTRL, CM_MEMIF_EMIF_1_CLKCTRL, CM_MEMIF_EMIF_2_CLKCTRL,
1000 * CM_MEMIF_EMIF_FW_CLKCTRL, CM_MEMIF_EMIF_H1_CLKCTRL,
1001 * CM_MEMIF_EMIF_H2_CLKCTRL, CM_MPU_MPU_CLKCTRL, CM_SDMA_SDMA_CLKCTRL,
1002 * CM_TESLA_TESLA_CLKCTRL, CM_WKUP_GPIO1_CLKCTRL, CM_WKUP_KEYBOARD_CLKCTRL,
1003 * CM_WKUP_L4WKUP_CLKCTRL, CM_WKUP_RTC_CLKCTRL, CM_WKUP_SARRAM_CLKCTRL,
1004 * CM_WKUP_SYNCTIMER_CLKCTRL, CM_WKUP_TIMER12_CLKCTRL, CM_WKUP_TIMER1_CLKCTRL,
1005 * CM_WKUP_USIM_CLKCTRL, CM_WKUP_WDT1_CLKCTRL, CM_WKUP_WDT2_CLKCTRL
1007 #define OMAP4430_IDLEST_SHIFT 16
1008 #define OMAP4430_IDLEST_MASK (0x3 << 16)
1011 * Used by CM_DUCATI_DYNAMICDEP, CM_L3_2_DYNAMICDEP,
1012 * CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE
1014 #define OMAP4430_ISS_DYNDEP_SHIFT 9
1015 #define OMAP4430_ISS_DYNDEP_MASK (1 << 9)
1018 * Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_SDMA_STATICDEP,
1019 * CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
1021 #define OMAP4430_ISS_STATDEP_SHIFT 9
1022 #define OMAP4430_ISS_STATDEP_MASK (1 << 9)
1024 /* Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE, CM_TESLA_DYNAMICDEP */
1025 #define OMAP4430_IVAHD_DYNDEP_SHIFT 2
1026 #define OMAP4430_IVAHD_DYNDEP_MASK (1 << 2)
1029 * Used by CM_CAM_STATICDEP, CM_D2D_STATICDEP, CM_D2D_STATICDEP_RESTORE,
1030 * CM_DSS_STATICDEP, CM_DUCATI_STATICDEP, CM_GFX_STATICDEP,
1031 * CM_L3INIT_STATICDEP, CM_MPU_STATICDEP, CM_SDMA_STATICDEP,
1032 * CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
1034 #define OMAP4430_IVAHD_STATDEP_SHIFT 2
1035 #define OMAP4430_IVAHD_STATDEP_MASK (1 << 2)
1038 * Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP,
1039 * CM_L4CFG_DYNAMICDEP_RESTORE, CM_L4PER_DYNAMICDEP, CM_L4PER_DYNAMICDEP_RESTORE
1041 #define OMAP4430_L3INIT_DYNDEP_SHIFT 7
1042 #define OMAP4430_L3INIT_DYNDEP_MASK (1 << 7)
1045 * Used by CM_D2D_STATICDEP, CM_D2D_STATICDEP_RESTORE, CM_DUCATI_STATICDEP,
1046 * CM_MPU_STATICDEP, CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE,
1047 * CM_TESLA_STATICDEP
1049 #define OMAP4430_L3INIT_STATDEP_SHIFT 7
1050 #define OMAP4430_L3INIT_STATDEP_MASK (1 << 7)
1053 * Used by CM_DSS_DYNAMICDEP, CM_L3INIT_DYNAMICDEP, CM_L3_2_DYNAMICDEP,
1054 * CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP,
1055 * CM_L4CFG_DYNAMICDEP_RESTORE, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP
1057 #define OMAP4430_L3_1_DYNDEP_SHIFT 5
1058 #define OMAP4430_L3_1_DYNDEP_MASK (1 << 5)
1061 * Used by CM_CAM_STATICDEP, CM_D2D_STATICDEP, CM_D2D_STATICDEP_RESTORE,
1062 * CM_DSS_STATICDEP, CM_DUCATI_STATICDEP, CM_GFX_STATICDEP, CM_IVAHD_STATICDEP,
1063 * CM_L3INIT_STATICDEP, CM_L4SEC_STATICDEP, CM_MPU_STATICDEP,
1064 * CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
1066 #define OMAP4430_L3_1_STATDEP_SHIFT 5
1067 #define OMAP4430_L3_1_STATDEP_MASK (1 << 5)
1070 * Used by CM_CAM_DYNAMICDEP, CM_D2D_DYNAMICDEP, CM_D2D_DYNAMICDEP_RESTORE,
1071 * CM_DUCATI_DYNAMICDEP, CM_EMU_DYNAMICDEP, CM_GFX_DYNAMICDEP,
1072 * CM_IVAHD_DYNAMICDEP, CM_L3INIT_DYNAMICDEP, CM_L3_1_DYNAMICDEP,
1073 * CM_L3_1_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP,
1074 * CM_L4CFG_DYNAMICDEP_RESTORE, CM_L4SEC_DYNAMICDEP, CM_SDMA_DYNAMICDEP
1076 #define OMAP4430_L3_2_DYNDEP_SHIFT 6
1077 #define OMAP4430_L3_2_DYNDEP_MASK (1 << 6)
1080 * Used by CM_CAM_STATICDEP, CM_D2D_STATICDEP, CM_D2D_STATICDEP_RESTORE,
1081 * CM_DSS_STATICDEP, CM_DUCATI_STATICDEP, CM_GFX_STATICDEP, CM_IVAHD_STATICDEP,
1082 * CM_L3INIT_STATICDEP, CM_L4SEC_STATICDEP, CM_MPU_STATICDEP,
1083 * CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
1085 #define OMAP4430_L3_2_STATDEP_SHIFT 6
1086 #define OMAP4430_L3_2_STATDEP_MASK (1 << 6)
1088 /* Used by CM_L3_1_DYNAMICDEP, CM_L3_1_DYNAMICDEP_RESTORE */
1089 #define OMAP4430_L4CFG_DYNDEP_SHIFT 12
1090 #define OMAP4430_L4CFG_DYNDEP_MASK (1 << 12)
1093 * Used by CM_D2D_STATICDEP, CM_D2D_STATICDEP_RESTORE, CM_DUCATI_STATICDEP,
1094 * CM_L3INIT_STATICDEP, CM_MPU_STATICDEP, CM_SDMA_STATICDEP,
1095 * CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
1097 #define OMAP4430_L4CFG_STATDEP_SHIFT 12
1098 #define OMAP4430_L4CFG_STATDEP_MASK (1 << 12)
1100 /* Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE */
1101 #define OMAP4430_L4PER_DYNDEP_SHIFT 13
1102 #define OMAP4430_L4PER_DYNDEP_MASK (1 << 13)
1105 * Used by CM_D2D_STATICDEP, CM_D2D_STATICDEP_RESTORE, CM_DUCATI_STATICDEP,
1106 * CM_L3INIT_STATICDEP, CM_L4SEC_STATICDEP, CM_MPU_STATICDEP,
1107 * CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
1109 #define OMAP4430_L4PER_STATDEP_SHIFT 13
1110 #define OMAP4430_L4PER_STATDEP_MASK (1 << 13)
1113 * Used by CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE, CM_L4PER_DYNAMICDEP,
1114 * CM_L4PER_DYNAMICDEP_RESTORE
1116 #define OMAP4430_L4SEC_DYNDEP_SHIFT 14
1117 #define OMAP4430_L4SEC_DYNDEP_MASK (1 << 14)
1120 * Used by CM_DUCATI_STATICDEP, CM_L3INIT_STATICDEP, CM_MPU_STATICDEP,
1121 * CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE
1123 #define OMAP4430_L4SEC_STATDEP_SHIFT 14
1124 #define OMAP4430_L4SEC_STATDEP_MASK (1 << 14)
1126 /* Used by CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE */
1127 #define OMAP4430_L4WKUP_DYNDEP_SHIFT 15
1128 #define OMAP4430_L4WKUP_DYNDEP_MASK (1 << 15)
1131 * Used by CM_DUCATI_STATICDEP, CM_L3INIT_STATICDEP, CM_MPU_STATICDEP,
1132 * CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
1134 #define OMAP4430_L4WKUP_STATDEP_SHIFT 15
1135 #define OMAP4430_L4WKUP_STATDEP_MASK (1 << 15)
1138 * Used by CM_D2D_DYNAMICDEP, CM_D2D_DYNAMICDEP_RESTORE, CM_L3_1_DYNAMICDEP,
1139 * CM_L3_1_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP,
1140 * CM_L4CFG_DYNAMICDEP_RESTORE, CM_MPU_DYNAMICDEP
1142 #define OMAP4430_MEMIF_DYNDEP_SHIFT 4
1143 #define OMAP4430_MEMIF_DYNDEP_MASK (1 << 4)
1146 * Used by CM_CAM_STATICDEP, CM_D2D_STATICDEP, CM_D2D_STATICDEP_RESTORE,
1147 * CM_DSS_STATICDEP, CM_DUCATI_STATICDEP, CM_GFX_STATICDEP, CM_IVAHD_STATICDEP,
1148 * CM_L3INIT_STATICDEP, CM_L4SEC_STATICDEP, CM_MPU_STATICDEP,
1149 * CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE, CM_TESLA_STATICDEP
1151 #define OMAP4430_MEMIF_STATDEP_SHIFT 4
1152 #define OMAP4430_MEMIF_STATDEP_MASK (1 << 4)
1155 * Used by CM_SSC_MODFREQDIV_DPLL_ABE, CM_SSC_MODFREQDIV_DPLL_CORE,
1156 * CM_SSC_MODFREQDIV_DPLL_CORE_RESTORE, CM_SSC_MODFREQDIV_DPLL_DDRPHY,
1157 * CM_SSC_MODFREQDIV_DPLL_IVA, CM_SSC_MODFREQDIV_DPLL_MPU,
1158 * CM_SSC_MODFREQDIV_DPLL_PER, CM_SSC_MODFREQDIV_DPLL_UNIPRO,
1159 * CM_SSC_MODFREQDIV_DPLL_USB
1161 #define OMAP4430_MODFREQDIV_EXPONENT_SHIFT 8
1162 #define OMAP4430_MODFREQDIV_EXPONENT_MASK (0x7 << 8)
1165 * Used by CM_SSC_MODFREQDIV_DPLL_ABE, CM_SSC_MODFREQDIV_DPLL_CORE,
1166 * CM_SSC_MODFREQDIV_DPLL_CORE_RESTORE, CM_SSC_MODFREQDIV_DPLL_DDRPHY,
1167 * CM_SSC_MODFREQDIV_DPLL_IVA, CM_SSC_MODFREQDIV_DPLL_MPU,
1168 * CM_SSC_MODFREQDIV_DPLL_PER, CM_SSC_MODFREQDIV_DPLL_UNIPRO,
1169 * CM_SSC_MODFREQDIV_DPLL_USB
1171 #define OMAP4430_MODFREQDIV_MANTISSA_SHIFT 0
1172 #define OMAP4430_MODFREQDIV_MANTISSA_MASK (0x7f << 0)
1175 * Used by CM1_ABE_AESS_CLKCTRL, CM1_ABE_DMIC_CLKCTRL, CM1_ABE_L4ABE_CLKCTRL,
1176 * CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL,
1177 * CM1_ABE_MCBSP3_CLKCTRL, CM1_ABE_PDM_CLKCTRL, CM1_ABE_SLIMBUS_CLKCTRL,
1178 * CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL, CM1_ABE_TIMER7_CLKCTRL,
1179 * CM1_ABE_TIMER8_CLKCTRL, CM1_ABE_WDT3_CLKCTRL, CM_ALWON_MDMINTC_CLKCTRL,
1180 * CM_ALWON_SR_CORE_CLKCTRL, CM_ALWON_SR_IVA_CLKCTRL, CM_ALWON_SR_MPU_CLKCTRL,
1181 * CM_CAM_FDIF_CLKCTRL, CM_CAM_ISS_CLKCTRL, CM_CEFUSE_CEFUSE_CLKCTRL,
1182 * CM_CM1_PROFILING_CLKCTRL, CM_CM1_PROFILING_CLKCTRL_RESTORE,
1183 * CM_CM2_PROFILING_CLKCTRL, CM_CM2_PROFILING_CLKCTRL_RESTORE,
1184 * CM_D2D_MODEM_ICR_CLKCTRL, CM_D2D_SAD2D_CLKCTRL, CM_D2D_SAD2D_FW_CLKCTRL,
1185 * CM_DSS_DEISS_CLKCTRL, CM_DSS_DSS_CLKCTRL, CM_DUCATI_DUCATI_CLKCTRL,
1186 * CM_EMU_DEBUGSS_CLKCTRL, CM_GFX_GFX_CLKCTRL, CM_IVAHD_IVAHD_CLKCTRL,
1187 * CM_IVAHD_SL2_CLKCTRL, CM_L3INIT_CCPTX_CLKCTRL, CM_L3INIT_EMAC_CLKCTRL,
1188 * CM_L3INIT_HSI_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL, CM_L3INIT_MMC2_CLKCTRL,
1189 * CM_L3INIT_MMC6_CLKCTRL, CM_L3INIT_P1500_CLKCTRL, CM_L3INIT_PCIESS_CLKCTRL,
1190 * CM_L3INIT_SATA_CLKCTRL, CM_L3INIT_TPPSS_CLKCTRL, CM_L3INIT_UNIPRO1_CLKCTRL,
1191 * CM_L3INIT_USBPHYOCP2SCP_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL,
1192 * CM_L3INIT_USB_HOST_CLKCTRL_RESTORE, CM_L3INIT_USB_HOST_FS_CLKCTRL,
1193 * CM_L3INIT_USB_OTG_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL,
1194 * CM_L3INIT_USB_TLL_CLKCTRL_RESTORE, CM_L3INIT_XHPI_CLKCTRL,
1195 * CM_L3INSTR_L3_3_CLKCTRL, CM_L3INSTR_L3_3_CLKCTRL_RESTORE,
1196 * CM_L3INSTR_L3_INSTR_CLKCTRL, CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE,
1197 * CM_L3INSTR_OCP_WP1_CLKCTRL, CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE,
1198 * CM_L3_1_L3_1_CLKCTRL, CM_L3_2_GPMC_CLKCTRL, CM_L3_2_L3_2_CLKCTRL,
1199 * CM_L3_2_OCMC_RAM_CLKCTRL, CM_L4CFG_HW_SEM_CLKCTRL, CM_L4CFG_L4_CFG_CLKCTRL,
1200 * CM_L4CFG_MAILBOX_CLKCTRL, CM_L4CFG_SAR_ROM_CLKCTRL, CM_L4PER_ADC_CLKCTRL,
1201 * CM_L4PER_DMTIMER10_CLKCTRL, CM_L4PER_DMTIMER11_CLKCTRL,
1202 * CM_L4PER_DMTIMER2_CLKCTRL, CM_L4PER_DMTIMER3_CLKCTRL,
1203 * CM_L4PER_DMTIMER4_CLKCTRL, CM_L4PER_DMTIMER9_CLKCTRL, CM_L4PER_ELM_CLKCTRL,
1204 * CM_L4PER_GPIO2_CLKCTRL, CM_L4PER_GPIO2_CLKCTRL_RESTORE,
1205 * CM_L4PER_GPIO3_CLKCTRL, CM_L4PER_GPIO3_CLKCTRL_RESTORE,
1206 * CM_L4PER_GPIO4_CLKCTRL, CM_L4PER_GPIO4_CLKCTRL_RESTORE,
1207 * CM_L4PER_GPIO5_CLKCTRL, CM_L4PER_GPIO5_CLKCTRL_RESTORE,
1208 * CM_L4PER_GPIO6_CLKCTRL, CM_L4PER_GPIO6_CLKCTRL_RESTORE,
1209 * CM_L4PER_HDQ1W_CLKCTRL, CM_L4PER_HECC1_CLKCTRL, CM_L4PER_HECC2_CLKCTRL,
1210 * CM_L4PER_I2C1_CLKCTRL, CM_L4PER_I2C2_CLKCTRL, CM_L4PER_I2C3_CLKCTRL,
1211 * CM_L4PER_I2C4_CLKCTRL, CM_L4PER_I2C5_CLKCTRL, CM_L4PER_L4PER_CLKCTRL,
1212 * CM_L4PER_MCASP2_CLKCTRL, CM_L4PER_MCASP3_CLKCTRL, CM_L4PER_MCBSP4_CLKCTRL,
1213 * CM_L4PER_MCSPI1_CLKCTRL, CM_L4PER_MCSPI2_CLKCTRL, CM_L4PER_MCSPI3_CLKCTRL,
1214 * CM_L4PER_MCSPI4_CLKCTRL, CM_L4PER_MGATE_CLKCTRL, CM_L4PER_MMCSD3_CLKCTRL,
1215 * CM_L4PER_MMCSD4_CLKCTRL, CM_L4PER_MMCSD5_CLKCTRL, CM_L4PER_MSPROHG_CLKCTRL,
1216 * CM_L4PER_SLIMBUS2_CLKCTRL, CM_L4PER_UART1_CLKCTRL, CM_L4PER_UART2_CLKCTRL,
1217 * CM_L4PER_UART3_CLKCTRL, CM_L4PER_UART4_CLKCTRL, CM_L4SEC_AES1_CLKCTRL,
1218 * CM_L4SEC_AES2_CLKCTRL, CM_L4SEC_CRYPTODMA_CLKCTRL, CM_L4SEC_DES3DES_CLKCTRL,
1219 * CM_L4SEC_PKAEIP29_CLKCTRL, CM_L4SEC_RNG_CLKCTRL, CM_L4SEC_SHA2MD51_CLKCTRL,
1220 * CM_MEMIF_DMM_CLKCTRL, CM_MEMIF_EMIF_1_CLKCTRL, CM_MEMIF_EMIF_2_CLKCTRL,
1221 * CM_MEMIF_EMIF_FW_CLKCTRL, CM_MEMIF_EMIF_H1_CLKCTRL,
1222 * CM_MEMIF_EMIF_H2_CLKCTRL, CM_MPU_MPU_CLKCTRL, CM_SDMA_SDMA_CLKCTRL,
1223 * CM_TESLA_TESLA_CLKCTRL, CM_WKUP_GPIO1_CLKCTRL, CM_WKUP_KEYBOARD_CLKCTRL,
1224 * CM_WKUP_L4WKUP_CLKCTRL, CM_WKUP_RTC_CLKCTRL, CM_WKUP_SARRAM_CLKCTRL,
1225 * CM_WKUP_SYNCTIMER_CLKCTRL, CM_WKUP_TIMER12_CLKCTRL, CM_WKUP_TIMER1_CLKCTRL,
1226 * CM_WKUP_USIM_CLKCTRL, CM_WKUP_WDT1_CLKCTRL, CM_WKUP_WDT2_CLKCTRL
1228 #define OMAP4430_MODULEMODE_SHIFT 0
1229 #define OMAP4430_MODULEMODE_MASK (0x3 << 0)
1231 /* Used by CM_L4CFG_DYNAMICDEP */
1232 #define OMAP4460_MPU_DYNDEP_SHIFT 19
1233 #define OMAP4460_MPU_DYNDEP_MASK (1 << 19)
1235 /* Used by CM_DSS_DSS_CLKCTRL */
1236 #define OMAP4430_OPTFCLKEN_48MHZ_CLK_SHIFT 9
1237 #define OMAP4430_OPTFCLKEN_48MHZ_CLK_MASK (1 << 9)
1239 /* Used by CM_WKUP_BANDGAP_CLKCTRL */
1240 #define OMAP4430_OPTFCLKEN_BGAP_32K_SHIFT 8
1241 #define OMAP4430_OPTFCLKEN_BGAP_32K_MASK (1 << 8)
1243 /* Used by CM_ALWON_USBPHY_CLKCTRL */
1244 #define OMAP4430_OPTFCLKEN_CLK32K_SHIFT 8
1245 #define OMAP4430_OPTFCLKEN_CLK32K_MASK (1 << 8)
1247 /* Used by CM_CAM_ISS_CLKCTRL */
1248 #define OMAP4430_OPTFCLKEN_CTRLCLK_SHIFT 8
1249 #define OMAP4430_OPTFCLKEN_CTRLCLK_MASK (1 << 8)
1252 * Used by CM_L4PER_GPIO2_CLKCTRL, CM_L4PER_GPIO2_CLKCTRL_RESTORE,
1253 * CM_L4PER_GPIO3_CLKCTRL, CM_L4PER_GPIO3_CLKCTRL_RESTORE,
1254 * CM_L4PER_GPIO4_CLKCTRL, CM_L4PER_GPIO4_CLKCTRL_RESTORE,
1255 * CM_L4PER_GPIO5_CLKCTRL, CM_L4PER_GPIO5_CLKCTRL_RESTORE,
1256 * CM_L4PER_GPIO6_CLKCTRL, CM_L4PER_GPIO6_CLKCTRL_RESTORE, CM_WKUP_GPIO1_CLKCTRL
1258 #define OMAP4430_OPTFCLKEN_DBCLK_SHIFT 8
1259 #define OMAP4430_OPTFCLKEN_DBCLK_MASK (1 << 8)
1261 /* Used by CM_MEMIF_DLL_CLKCTRL, CM_MEMIF_DLL_H_CLKCTRL */
1262 #define OMAP4430_OPTFCLKEN_DLL_CLK_SHIFT 8
1263 #define OMAP4430_OPTFCLKEN_DLL_CLK_MASK (1 << 8)
1265 /* Used by CM_DSS_DSS_CLKCTRL */
1266 #define OMAP4430_OPTFCLKEN_DSSCLK_SHIFT 8
1267 #define OMAP4430_OPTFCLKEN_DSSCLK_MASK (1 << 8)
1269 /* Used by CM_WKUP_USIM_CLKCTRL */
1270 #define OMAP4430_OPTFCLKEN_FCLK_SHIFT 8
1271 #define OMAP4430_OPTFCLKEN_FCLK_MASK (1 << 8)
1273 /* Used by CM1_ABE_SLIMBUS_CLKCTRL */
1274 #define OMAP4430_OPTFCLKEN_FCLK0_SHIFT 8
1275 #define OMAP4430_OPTFCLKEN_FCLK0_MASK (1 << 8)
1277 /* Used by CM1_ABE_SLIMBUS_CLKCTRL */
1278 #define OMAP4430_OPTFCLKEN_FCLK1_SHIFT 9
1279 #define OMAP4430_OPTFCLKEN_FCLK1_MASK (1 << 9)
1281 /* Used by CM1_ABE_SLIMBUS_CLKCTRL */
1282 #define OMAP4430_OPTFCLKEN_FCLK2_SHIFT 10
1283 #define OMAP4430_OPTFCLKEN_FCLK2_MASK (1 << 10)
1285 /* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
1286 #define OMAP4430_OPTFCLKEN_FUNC48MCLK_SHIFT 15
1287 #define OMAP4430_OPTFCLKEN_FUNC48MCLK_MASK (1 << 15)
1289 /* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
1290 #define OMAP4430_OPTFCLKEN_HSIC480M_P1_CLK_SHIFT 13
1291 #define OMAP4430_OPTFCLKEN_HSIC480M_P1_CLK_MASK (1 << 13)
1293 /* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
1294 #define OMAP4430_OPTFCLKEN_HSIC480M_P2_CLK_SHIFT 14
1295 #define OMAP4430_OPTFCLKEN_HSIC480M_P2_CLK_MASK (1 << 14)
1297 /* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
1298 #define OMAP4430_OPTFCLKEN_HSIC60M_P1_CLK_SHIFT 11
1299 #define OMAP4430_OPTFCLKEN_HSIC60M_P1_CLK_MASK (1 << 11)
1301 /* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
1302 #define OMAP4430_OPTFCLKEN_HSIC60M_P2_CLK_SHIFT 12
1303 #define OMAP4430_OPTFCLKEN_HSIC60M_P2_CLK_MASK (1 << 12)
1305 /* Used by CM_L4PER_SLIMBUS2_CLKCTRL */
1306 #define OMAP4430_OPTFCLKEN_PER24MC_GFCLK_SHIFT 8
1307 #define OMAP4430_OPTFCLKEN_PER24MC_GFCLK_MASK (1 << 8)
1309 /* Used by CM_L4PER_SLIMBUS2_CLKCTRL */
1310 #define OMAP4430_OPTFCLKEN_PERABE24M_GFCLK_SHIFT 9
1311 #define OMAP4430_OPTFCLKEN_PERABE24M_GFCLK_MASK (1 << 9)
1313 /* Used by CM_L3INIT_USBPHYOCP2SCP_CLKCTRL */
1314 #define OMAP4430_OPTFCLKEN_PHY_48M_SHIFT 8
1315 #define OMAP4430_OPTFCLKEN_PHY_48M_MASK (1 << 8)
1317 /* Used by CM_L4PER_SLIMBUS2_CLKCTRL */
1318 #define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_SHIFT 10
1319 #define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_MASK (1 << 10)
1321 /* Renamed from OPTFCLKEN_SLIMBUS_CLK Used by CM1_ABE_SLIMBUS_CLKCTRL */
1322 #define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_11_11_SHIFT 11
1323 #define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_11_11_MASK (1 << 11)
1325 /* Used by CM_DSS_DSS_CLKCTRL */
1326 #define OMAP4430_OPTFCLKEN_SYS_CLK_SHIFT 10
1327 #define OMAP4430_OPTFCLKEN_SYS_CLK_MASK (1 << 10)
1329 /* Used by CM_WKUP_BANDGAP_CLKCTRL */
1330 #define OMAP4460_OPTFCLKEN_TS_FCLK_SHIFT 8
1331 #define OMAP4460_OPTFCLKEN_TS_FCLK_MASK (1 << 8)
1333 /* Used by CM_DSS_DSS_CLKCTRL */
1334 #define OMAP4430_OPTFCLKEN_TV_CLK_SHIFT 11
1335 #define OMAP4430_OPTFCLKEN_TV_CLK_MASK (1 << 11)
1337 /* Used by CM_L3INIT_UNIPRO1_CLKCTRL */
1338 #define OMAP4430_OPTFCLKEN_TXPHYCLK_SHIFT 8
1339 #define OMAP4430_OPTFCLKEN_TXPHYCLK_MASK (1 << 8)
1341 /* Used by CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL_RESTORE */
1342 #define OMAP4430_OPTFCLKEN_USB_CH0_CLK_SHIFT 8
1343 #define OMAP4430_OPTFCLKEN_USB_CH0_CLK_MASK (1 << 8)
1345 /* Used by CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL_RESTORE */
1346 #define OMAP4430_OPTFCLKEN_USB_CH1_CLK_SHIFT 9
1347 #define OMAP4430_OPTFCLKEN_USB_CH1_CLK_MASK (1 << 9)
1349 /* Used by CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL_RESTORE */
1350 #define OMAP4430_OPTFCLKEN_USB_CH2_CLK_SHIFT 10
1351 #define OMAP4430_OPTFCLKEN_USB_CH2_CLK_MASK (1 << 10)
1353 /* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
1354 #define OMAP4430_OPTFCLKEN_UTMI_P1_CLK_SHIFT 8
1355 #define OMAP4430_OPTFCLKEN_UTMI_P1_CLK_MASK (1 << 8)
1357 /* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
1358 #define OMAP4430_OPTFCLKEN_UTMI_P2_CLK_SHIFT 9
1359 #define OMAP4430_OPTFCLKEN_UTMI_P2_CLK_MASK (1 << 9)
1361 /* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
1362 #define OMAP4430_OPTFCLKEN_UTMI_P3_CLK_SHIFT 10
1363 #define OMAP4430_OPTFCLKEN_UTMI_P3_CLK_MASK (1 << 10)
1365 /* Used by CM_L3INIT_USB_OTG_CLKCTRL */
1366 #define OMAP4430_OPTFCLKEN_XCLK_SHIFT 8
1367 #define OMAP4430_OPTFCLKEN_XCLK_MASK (1 << 8)
1369 /* Used by CM_EMU_OVERRIDE_DPLL_CORE */
1370 #define OMAP4430_OVERRIDE_ENABLE_SHIFT 19
1371 #define OMAP4430_OVERRIDE_ENABLE_MASK (1 << 19)
1373 /* Used by CM_CLKSEL_ABE */
1374 #define OMAP4430_PAD_CLKS_GATE_SHIFT 8
1375 #define OMAP4430_PAD_CLKS_GATE_MASK (1 << 8)
1377 /* Used by CM_CORE_DVFS_CURRENT, CM_IVA_DVFS_CURRENT */
1378 #define OMAP4430_PERF_CURRENT_SHIFT 0
1379 #define OMAP4430_PERF_CURRENT_MASK (0xff << 0)
1382 * Used by CM_CORE_DVFS_PERF1, CM_CORE_DVFS_PERF2, CM_CORE_DVFS_PERF3,
1383 * CM_CORE_DVFS_PERF4, CM_IVA_DVFS_PERF_ABE, CM_IVA_DVFS_PERF_IVAHD,
1384 * CM_IVA_DVFS_PERF_TESLA
1386 #define OMAP4430_PERF_REQ_SHIFT 0
1387 #define OMAP4430_PERF_REQ_MASK (0xff << 0)
1389 /* Used by CM_RESTORE_ST */
1390 #define OMAP4430_PHASE1_COMPLETED_SHIFT 0
1391 #define OMAP4430_PHASE1_COMPLETED_MASK (1 << 0)
1393 /* Used by CM_RESTORE_ST */
1394 #define OMAP4430_PHASE2A_COMPLETED_SHIFT 1
1395 #define OMAP4430_PHASE2A_COMPLETED_MASK (1 << 1)
1397 /* Used by CM_RESTORE_ST */
1398 #define OMAP4430_PHASE2B_COMPLETED_SHIFT 2
1399 #define OMAP4430_PHASE2B_COMPLETED_MASK (1 << 2)
1401 /* Used by CM_EMU_DEBUGSS_CLKCTRL */
1402 #define OMAP4430_PMD_STM_MUX_CTRL_SHIFT 20
1403 #define OMAP4430_PMD_STM_MUX_CTRL_MASK (0x3 << 20)
1405 /* Used by CM_EMU_DEBUGSS_CLKCTRL */
1406 #define OMAP4430_PMD_TRACE_MUX_CTRL_SHIFT 22
1407 #define OMAP4430_PMD_TRACE_MUX_CTRL_MASK (0x3 << 22)
1409 /* Used by CM_DYN_DEP_PRESCAL, CM_DYN_DEP_PRESCAL_RESTORE */
1410 #define OMAP4430_PRESCAL_SHIFT 0
1411 #define OMAP4430_PRESCAL_MASK (0x3f << 0)
1413 /* Used by REVISION_CM1, REVISION_CM2 */
1414 #define OMAP4430_R_RTL_SHIFT 11
1415 #define OMAP4430_R_RTL_MASK (0x1f << 11)
1418 * Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE,
1419 * CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL_RESTORE
1421 #define OMAP4430_SAR_MODE_SHIFT 4
1422 #define OMAP4430_SAR_MODE_MASK (1 << 4)
1424 /* Used by CM_SCALE_FCLK */
1425 #define OMAP4430_SCALE_FCLK_SHIFT 0
1426 #define OMAP4430_SCALE_FCLK_MASK (1 << 0)
1428 /* Used by REVISION_CM1, REVISION_CM2 */
1429 #define OMAP4430_SCHEME_SHIFT 30
1430 #define OMAP4430_SCHEME_MASK (0x3 << 30)
1432 /* Used by CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE */
1433 #define OMAP4430_SDMA_DYNDEP_SHIFT 11
1434 #define OMAP4430_SDMA_DYNDEP_MASK (1 << 11)
1436 /* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP */
1437 #define OMAP4430_SDMA_STATDEP_SHIFT 11
1438 #define OMAP4430_SDMA_STATDEP_MASK (1 << 11)
1440 /* Used by CM_CLKSEL_ABE */
1441 #define OMAP4430_SLIMBUS_CLK_GATE_SHIFT 10
1442 #define OMAP4430_SLIMBUS_CLK_GATE_MASK (1 << 10)
1445 * Used by CM1_ABE_AESS_CLKCTRL, CM_CAM_FDIF_CLKCTRL, CM_CAM_ISS_CLKCTRL,
1446 * CM_D2D_SAD2D_CLKCTRL, CM_DSS_DEISS_CLKCTRL, CM_DSS_DSS_CLKCTRL,
1447 * CM_DUCATI_DUCATI_CLKCTRL, CM_EMU_DEBUGSS_CLKCTRL, CM_GFX_GFX_CLKCTRL,
1448 * CM_IVAHD_IVAHD_CLKCTRL, CM_L3INIT_CCPTX_CLKCTRL, CM_L3INIT_EMAC_CLKCTRL,
1449 * CM_L3INIT_HSI_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL, CM_L3INIT_MMC2_CLKCTRL,
1450 * CM_L3INIT_MMC6_CLKCTRL, CM_L3INIT_P1500_CLKCTRL, CM_L3INIT_PCIESS_CLKCTRL,
1451 * CM_L3INIT_SATA_CLKCTRL, CM_L3INIT_TPPSS_CLKCTRL, CM_L3INIT_UNIPRO1_CLKCTRL,
1452 * CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE,
1453 * CM_L3INIT_USB_HOST_FS_CLKCTRL, CM_L3INIT_USB_OTG_CLKCTRL,
1454 * CM_L3INIT_XHPI_CLKCTRL, CM_L4SEC_CRYPTODMA_CLKCTRL, CM_MPU_MPU_CLKCTRL,
1455 * CM_SDMA_SDMA_CLKCTRL, CM_TESLA_TESLA_CLKCTRL
1457 #define OMAP4430_STBYST_SHIFT 18
1458 #define OMAP4430_STBYST_MASK (1 << 18)
1461 * Used by CM_IDLEST_DPLL_ABE, CM_IDLEST_DPLL_CORE, CM_IDLEST_DPLL_DDRPHY,
1462 * CM_IDLEST_DPLL_IVA, CM_IDLEST_DPLL_MPU, CM_IDLEST_DPLL_PER,
1463 * CM_IDLEST_DPLL_UNIPRO, CM_IDLEST_DPLL_USB
1465 #define OMAP4430_ST_DPLL_CLK_SHIFT 0
1466 #define OMAP4430_ST_DPLL_CLK_MASK (1 << 0)
1468 /* Used by CM_CLKDCOLDO_DPLL_USB */
1469 #define OMAP4430_ST_DPLL_CLKDCOLDO_SHIFT 9
1470 #define OMAP4430_ST_DPLL_CLKDCOLDO_MASK (1 << 9)
1473 * Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE,
1474 * CM_DIV_M2_DPLL_CORE_RESTORE, CM_DIV_M2_DPLL_DDRPHY, CM_DIV_M2_DPLL_MPU,
1475 * CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_USB
1477 #define OMAP4430_ST_DPLL_CLKOUT_SHIFT 9
1478 #define OMAP4430_ST_DPLL_CLKOUT_MASK (1 << 9)
1481 * Used by CM_DIV_M3_DPLL_ABE, CM_DIV_M3_DPLL_CORE,
1482 * CM_DIV_M3_DPLL_CORE_RESTORE, CM_DIV_M3_DPLL_PER
1484 #define OMAP4430_ST_DPLL_CLKOUTHIF_SHIFT 9
1485 #define OMAP4430_ST_DPLL_CLKOUTHIF_MASK (1 << 9)
1487 /* Used by CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO */
1488 #define OMAP4430_ST_DPLL_CLKOUTX2_SHIFT 11
1489 #define OMAP4430_ST_DPLL_CLKOUTX2_MASK (1 << 11)
1492 * Used by CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_CORE_RESTORE,
1493 * CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA, CM_DIV_M4_DPLL_PER
1495 #define OMAP4430_ST_HSDIVIDER_CLKOUT1_SHIFT 9
1496 #define OMAP4430_ST_HSDIVIDER_CLKOUT1_MASK (1 << 9)
1499 * Used by CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_CORE_RESTORE,
1500 * CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA, CM_DIV_M5_DPLL_PER
1502 #define OMAP4430_ST_HSDIVIDER_CLKOUT2_SHIFT 9
1503 #define OMAP4430_ST_HSDIVIDER_CLKOUT2_MASK (1 << 9)
1506 * Used by CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_CORE_RESTORE,
1507 * CM_DIV_M6_DPLL_DDRPHY, CM_DIV_M6_DPLL_PER
1509 #define OMAP4430_ST_HSDIVIDER_CLKOUT3_SHIFT 9
1510 #define OMAP4430_ST_HSDIVIDER_CLKOUT3_MASK (1 << 9)
1513 * Used by CM_DIV_M7_DPLL_CORE, CM_DIV_M7_DPLL_CORE_RESTORE,
1514 * CM_DIV_M7_DPLL_PER
1516 #define OMAP4430_ST_HSDIVIDER_CLKOUT4_SHIFT 9
1517 #define OMAP4430_ST_HSDIVIDER_CLKOUT4_MASK (1 << 9)
1520 * Used by CM_IDLEST_DPLL_ABE, CM_IDLEST_DPLL_CORE, CM_IDLEST_DPLL_DDRPHY,
1521 * CM_IDLEST_DPLL_IVA, CM_IDLEST_DPLL_MPU, CM_IDLEST_DPLL_PER,
1522 * CM_IDLEST_DPLL_UNIPRO, CM_IDLEST_DPLL_USB
1524 #define OMAP4430_ST_MN_BYPASS_SHIFT 8
1525 #define OMAP4430_ST_MN_BYPASS_MASK (1 << 8)
1527 /* Used by CM_SYS_CLKSEL */
1528 #define OMAP4430_SYS_CLKSEL_SHIFT 0
1529 #define OMAP4430_SYS_CLKSEL_MASK (0x7 << 0)
1531 /* Used by CM_L4CFG_DYNAMICDEP, CM_L4CFG_DYNAMICDEP_RESTORE */
1532 #define OMAP4430_TESLA_DYNDEP_SHIFT 1
1533 #define OMAP4430_TESLA_DYNDEP_MASK (1 << 1)
1535 /* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP */
1536 #define OMAP4430_TESLA_STATDEP_SHIFT 1
1537 #define OMAP4430_TESLA_STATDEP_MASK (1 << 1)
1540 * Used by CM_D2D_DYNAMICDEP, CM_D2D_DYNAMICDEP_RESTORE, CM_DUCATI_DYNAMICDEP,
1541 * CM_EMU_DYNAMICDEP, CM_L3_1_DYNAMICDEP, CM_L3_1_DYNAMICDEP_RESTORE,
1542 * CM_L3_2_DYNAMICDEP, CM_L3_2_DYNAMICDEP_RESTORE, CM_L4CFG_DYNAMICDEP,
1543 * CM_L4CFG_DYNAMICDEP_RESTORE, CM_L4PER_DYNAMICDEP,
1544 * CM_L4PER_DYNAMICDEP_RESTORE, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP
1546 #define OMAP4430_WINDOWSIZE_SHIFT 24
1547 #define OMAP4430_WINDOWSIZE_MASK (0xf << 24)
1549 /* Used by REVISION_CM1, REVISION_CM2 */
1550 #define OMAP4430_X_MAJOR_SHIFT 8
1551 #define OMAP4430_X_MAJOR_MASK (0x7 << 8)
1553 /* Used by REVISION_CM1, REVISION_CM2 */
1554 #define OMAP4430_Y_MINOR_SHIFT 0
1555 #define OMAP4430_Y_MINOR_MASK (0x3f << 0)
1556 #endif