2 * AM33XX Power Management register bits
4 * This file is automatically generated from the AM33XX hardware databases.
5 * Vaibhav Hiremath <hvaibhav@ti.com>
7 * Copyright (C) 2011-2012 Texas Instruments Incorporated - http://www.ti.com/
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation version 2.
13 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
14 * kind, whether express or implied; without even the implied warranty
15 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
20 #ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_33XX_H
21 #define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_33XX_H
24 * Used by CM_AUTOIDLE_DPLL_CORE, CM_AUTOIDLE_DPLL_DDR, CM_AUTOIDLE_DPLL_DISP,
25 * CM_AUTOIDLE_DPLL_MPU, CM_AUTOIDLE_DPLL_PER
27 #define AM33XX_AUTO_DPLL_MODE_SHIFT 0
28 #define AM33XX_AUTO_DPLL_MODE_WIDTH 3
29 #define AM33XX_AUTO_DPLL_MODE_MASK (0x7 << 0)
31 /* Used by CM_WKUP_CLKSTCTRL */
32 #define AM33XX_CLKACTIVITY_ADC_FCLK_SHIFT 14
33 #define AM33XX_CLKACTIVITY_ADC_FCLK_WIDTH 1
34 #define AM33XX_CLKACTIVITY_ADC_FCLK_MASK (1 << 16)
36 /* Used by CM_PER_L4LS_CLKSTCTRL */
37 #define AM33XX_CLKACTIVITY_CAN_CLK_SHIFT 11
38 #define AM33XX_CLKACTIVITY_CAN_CLK_WIDTH 1
39 #define AM33XX_CLKACTIVITY_CAN_CLK_MASK (1 << 11)
41 /* Used by CM_PER_CLK_24MHZ_CLKSTCTRL */
42 #define AM33XX_CLKACTIVITY_CLK_24MHZ_GCLK_SHIFT 4
43 #define AM33XX_CLKACTIVITY_CLK_24MHZ_GCLK_WIDTH 1
44 #define AM33XX_CLKACTIVITY_CLK_24MHZ_GCLK_MASK (1 << 4)
46 /* Used by CM_PER_CPSW_CLKSTCTRL */
47 #define AM33XX_CLKACTIVITY_CPSW_125MHZ_GCLK_SHIFT 4
48 #define AM33XX_CLKACTIVITY_CPSW_125MHZ_GCLK_WIDTH 1
49 #define AM33XX_CLKACTIVITY_CPSW_125MHZ_GCLK_MASK (1 << 4)
51 /* Used by CM_PER_L4HS_CLKSTCTRL */
52 #define AM33XX_CLKACTIVITY_CPSW_250MHZ_GCLK_SHIFT 4
53 #define AM33XX_CLKACTIVITY_CPSW_250MHZ_GCLK_WIDTH 1
54 #define AM33XX_CLKACTIVITY_CPSW_250MHZ_GCLK_MASK (1 << 4)
56 /* Used by CM_PER_L4HS_CLKSTCTRL */
57 #define AM33XX_CLKACTIVITY_CPSW_50MHZ_GCLK_SHIFT 5
58 #define AM33XX_CLKACTIVITY_CPSW_50MHZ_GCLK_WIDTH 1
59 #define AM33XX_CLKACTIVITY_CPSW_50MHZ_GCLK_MASK (1 << 5)
61 /* Used by CM_PER_L4HS_CLKSTCTRL */
62 #define AM33XX_CLKACTIVITY_CPSW_5MHZ_GCLK_SHIFT 6
63 #define AM33XX_CLKACTIVITY_CPSW_5MHZ_GCLK_WIDTH 1
64 #define AM33XX_CLKACTIVITY_CPSW_5MHZ_GCLK_MASK (1 << 6)
66 /* Used by CM_PER_L3_CLKSTCTRL */
67 #define AM33XX_CLKACTIVITY_CPTS_RFT_GCLK_SHIFT 6
68 #define AM33XX_CLKACTIVITY_CPTS_RFT_GCLK_WIDTH 1
69 #define AM33XX_CLKACTIVITY_CPTS_RFT_GCLK_MASK (1 << 6)
71 /* Used by CM_CEFUSE_CLKSTCTRL */
72 #define AM33XX_CLKACTIVITY_CUST_EFUSE_SYS_CLK_SHIFT 9
73 #define AM33XX_CLKACTIVITY_CUST_EFUSE_SYS_CLK_WIDTH 1
74 #define AM33XX_CLKACTIVITY_CUST_EFUSE_SYS_CLK_MASK (1 << 9)
76 /* Used by CM_L3_AON_CLKSTCTRL */
77 #define AM33XX_CLKACTIVITY_DBGSYSCLK_SHIFT 2
78 #define AM33XX_CLKACTIVITY_DBGSYSCLK_WIDTH 1
79 #define AM33XX_CLKACTIVITY_DBGSYSCLK_MASK (1 << 2)
81 /* Used by CM_L3_AON_CLKSTCTRL */
82 #define AM33XX_CLKACTIVITY_DEBUG_CLKA_SHIFT 4
83 #define AM33XX_CLKACTIVITY_DEBUG_CLKA_WIDTH 1
84 #define AM33XX_CLKACTIVITY_DEBUG_CLKA_MASK (1 << 4)
86 /* Used by CM_PER_L3_CLKSTCTRL */
87 #define AM33XX_CLKACTIVITY_EMIF_GCLK_SHIFT 2
88 #define AM33XX_CLKACTIVITY_EMIF_GCLK_WIDTH 1
89 #define AM33XX_CLKACTIVITY_EMIF_GCLK_MASK (1 << 2)
91 /* Used by CM_GFX_L3_CLKSTCTRL */
92 #define AM33XX_CLKACTIVITY_GFX_FCLK_SHIFT 9
93 #define AM33XX_CLKACTIVITY_GFX_FCLK_WIDTH 1
94 #define AM33XX_CLKACTIVITY_GFX_FCLK_MASK (1 << 9)
96 /* Used by CM_GFX_L3_CLKSTCTRL */
97 #define AM33XX_CLKACTIVITY_GFX_L3_GCLK_SHIFT 8
98 #define AM33XX_CLKACTIVITY_GFX_L3_GCLK_WIDTH 1
99 #define AM33XX_CLKACTIVITY_GFX_L3_GCLK_MASK (1 << 8)
101 /* Used by CM_WKUP_CLKSTCTRL */
102 #define AM33XX_CLKACTIVITY_GPIO0_GDBCLK_SHIFT 8
103 #define AM33XX_CLKACTIVITY_GPIO0_GDBCLK_WIDTH 1
104 #define AM33XX_CLKACTIVITY_GPIO0_GDBCLK_MASK (1 << 8)
106 /* Used by CM_PER_L4LS_CLKSTCTRL */
107 #define AM33XX_CLKACTIVITY_GPIO_1_GDBCLK_SHIFT 19
108 #define AM33XX_CLKACTIVITY_GPIO_1_GDBCLK_WIDTH 1
109 #define AM33XX_CLKACTIVITY_GPIO_1_GDBCLK_MASK (1 << 19)
111 /* Used by CM_PER_L4LS_CLKSTCTRL */
112 #define AM33XX_CLKACTIVITY_GPIO_2_GDBCLK_SHIFT 20
113 #define AM33XX_CLKACTIVITY_GPIO_2_GDBCLK_WIDTH 1
114 #define AM33XX_CLKACTIVITY_GPIO_2_GDBCLK_MASK (1 << 20)
116 /* Used by CM_PER_L4LS_CLKSTCTRL */
117 #define AM33XX_CLKACTIVITY_GPIO_3_GDBCLK_SHIFT 21
118 #define AM33XX_CLKACTIVITY_GPIO_3_GDBCLK_WIDTH 1
119 #define AM33XX_CLKACTIVITY_GPIO_3_GDBCLK_MASK (1 << 21)
121 /* Used by CM_PER_L4LS_CLKSTCTRL */
122 #define AM33XX_CLKACTIVITY_GPIO_4_GDBCLK_SHIFT 22
123 #define AM33XX_CLKACTIVITY_GPIO_4_GDBCLK_WIDTH 1
124 #define AM33XX_CLKACTIVITY_GPIO_4_GDBCLK_MASK (1 << 22)
126 /* Used by CM_PER_L4LS_CLKSTCTRL */
127 #define AM33XX_CLKACTIVITY_GPIO_5_GDBCLK_SHIFT 26
128 #define AM33XX_CLKACTIVITY_GPIO_5_GDBCLK_WIDTH 1
129 #define AM33XX_CLKACTIVITY_GPIO_5_GDBCLK_MASK (1 << 26)
131 /* Used by CM_PER_L4LS_CLKSTCTRL */
132 #define AM33XX_CLKACTIVITY_GPIO_6_GDBCLK_SHIFT 18
133 #define AM33XX_CLKACTIVITY_GPIO_6_GDBCLK_WIDTH 1
134 #define AM33XX_CLKACTIVITY_GPIO_6_GDBCLK_MASK (1 << 18)
136 /* Used by CM_WKUP_CLKSTCTRL */
137 #define AM33XX_CLKACTIVITY_I2C0_GFCLK_SHIFT 11
138 #define AM33XX_CLKACTIVITY_I2C0_GFCLK_WIDTH 1
139 #define AM33XX_CLKACTIVITY_I2C0_GFCLK_MASK (1 << 11)
141 /* Used by CM_PER_L4LS_CLKSTCTRL */
142 #define AM33XX_CLKACTIVITY_I2C_FCLK_SHIFT 24
143 #define AM33XX_CLKACTIVITY_I2C_FCLK_WIDTH 1
144 #define AM33XX_CLKACTIVITY_I2C_FCLK_MASK (1 << 24)
146 /* Used by CM_PER_PRUSS_CLKSTCTRL */
147 #define AM33XX_CLKACTIVITY_PRUSS_IEP_GCLK_SHIFT 5
148 #define AM33XX_CLKACTIVITY_PRUSS_IEP_GCLK_WIDTH 1
149 #define AM33XX_CLKACTIVITY_PRUSS_IEP_GCLK_MASK (1 << 5)
151 /* Used by CM_PER_PRUSS_CLKSTCTRL */
152 #define AM33XX_CLKACTIVITY_PRUSS_OCP_GCLK_SHIFT 4
153 #define AM33XX_CLKACTIVITY_PRUSS_OCP_GCLK_WIDTH 1
154 #define AM33XX_CLKACTIVITY_PRUSS_OCP_GCLK_MASK (1 << 4)
156 /* Used by CM_PER_PRUSS_CLKSTCTRL */
157 #define AM33XX_CLKACTIVITY_PRUSS_UART_GCLK_SHIFT 6
158 #define AM33XX_CLKACTIVITY_PRUSS_UART_GCLK_WIDTH 1
159 #define AM33XX_CLKACTIVITY_PRUSS_UART_GCLK_MASK (1 << 6)
161 /* Used by CM_PER_L3S_CLKSTCTRL */
162 #define AM33XX_CLKACTIVITY_L3S_GCLK_SHIFT 3
163 #define AM33XX_CLKACTIVITY_L3S_GCLK_WIDTH 1
164 #define AM33XX_CLKACTIVITY_L3S_GCLK_MASK (1 << 3)
166 /* Used by CM_L3_AON_CLKSTCTRL */
167 #define AM33XX_CLKACTIVITY_L3_AON_GCLK_SHIFT 3
168 #define AM33XX_CLKACTIVITY_L3_AON_GCLK_WIDTH 1
169 #define AM33XX_CLKACTIVITY_L3_AON_GCLK_MASK (1 << 3)
171 /* Used by CM_PER_L3_CLKSTCTRL */
172 #define AM33XX_CLKACTIVITY_L3_GCLK_SHIFT 4
173 #define AM33XX_CLKACTIVITY_L3_GCLK_WIDTH 1
174 #define AM33XX_CLKACTIVITY_L3_GCLK_MASK (1 << 4)
176 /* Used by CM_PER_L4FW_CLKSTCTRL */
177 #define AM33XX_CLKACTIVITY_L4FW_GCLK_SHIFT 8
178 #define AM33XX_CLKACTIVITY_L4FW_GCLK_WIDTH 1
179 #define AM33XX_CLKACTIVITY_L4FW_GCLK_MASK (1 << 8)
181 /* Used by CM_PER_L4HS_CLKSTCTRL */
182 #define AM33XX_CLKACTIVITY_L4HS_GCLK_SHIFT 3
183 #define AM33XX_CLKACTIVITY_L4HS_GCLK_WIDTH 1
184 #define AM33XX_CLKACTIVITY_L4HS_GCLK_MASK (1 << 3)
186 /* Used by CM_PER_L4LS_CLKSTCTRL */
187 #define AM33XX_CLKACTIVITY_L4LS_GCLK_SHIFT 8
188 #define AM33XX_CLKACTIVITY_L4LS_GCLK_WIDTH 1
189 #define AM33XX_CLKACTIVITY_L4LS_GCLK_MASK (1 << 8)
191 /* Used by CM_GFX_L4LS_GFX_CLKSTCTRL__1 */
192 #define AM33XX_CLKACTIVITY_L4LS_GFX_GCLK_SHIFT 8
193 #define AM33XX_CLKACTIVITY_L4LS_GFX_GCLK_WIDTH 1
194 #define AM33XX_CLKACTIVITY_L4LS_GFX_GCLK_MASK (1 << 8)
196 /* Used by CM_CEFUSE_CLKSTCTRL */
197 #define AM33XX_CLKACTIVITY_L4_CEFUSE_GICLK_SHIFT 8
198 #define AM33XX_CLKACTIVITY_L4_CEFUSE_GICLK_WIDTH 1
199 #define AM33XX_CLKACTIVITY_L4_CEFUSE_GICLK_MASK (1 << 8)
201 /* Used by CM_RTC_CLKSTCTRL */
202 #define AM33XX_CLKACTIVITY_L4_RTC_GCLK_SHIFT 8
203 #define AM33XX_CLKACTIVITY_L4_RTC_GCLK_WIDTH 1
204 #define AM33XX_CLKACTIVITY_L4_RTC_GCLK_MASK (1 << 8)
206 /* Used by CM_L4_WKUP_AON_CLKSTCTRL */
207 #define AM33XX_CLKACTIVITY_L4_WKUP_AON_GCLK_SHIFT 2
208 #define AM33XX_CLKACTIVITY_L4_WKUP_AON_GCLK_WIDTH 1
209 #define AM33XX_CLKACTIVITY_L4_WKUP_AON_GCLK_MASK (1 << 2)
211 /* Used by CM_WKUP_CLKSTCTRL */
212 #define AM33XX_CLKACTIVITY_L4_WKUP_GCLK_SHIFT 2
213 #define AM33XX_CLKACTIVITY_L4_WKUP_GCLK_WIDTH 1
214 #define AM33XX_CLKACTIVITY_L4_WKUP_GCLK_MASK (1 << 2)
216 /* Used by CM_PER_L4LS_CLKSTCTRL */
217 #define AM33XX_CLKACTIVITY_LCDC_GCLK_SHIFT 17
218 #define AM33XX_CLKACTIVITY_LCDC_GCLK_WIDTH 1
219 #define AM33XX_CLKACTIVITY_LCDC_GCLK_MASK (1 << 17)
221 /* Used by CM_PER_LCDC_CLKSTCTRL */
222 #define AM33XX_CLKACTIVITY_LCDC_L3_OCP_GCLK_SHIFT 4
223 #define AM33XX_CLKACTIVITY_LCDC_L3_OCP_GCLK_WIDTH 1
224 #define AM33XX_CLKACTIVITY_LCDC_L3_OCP_GCLK_MASK (1 << 4)
226 /* Used by CM_PER_LCDC_CLKSTCTRL */
227 #define AM33XX_CLKACTIVITY_LCDC_L4_OCP_GCLK_SHIFT 5
228 #define AM33XX_CLKACTIVITY_LCDC_L4_OCP_GCLK_WIDTH 1
229 #define AM33XX_CLKACTIVITY_LCDC_L4_OCP_GCLK_MASK (1 << 5)
231 /* Used by CM_PER_L3_CLKSTCTRL */
232 #define AM33XX_CLKACTIVITY_MCASP_GCLK_SHIFT 7
233 #define AM33XX_CLKACTIVITY_MCASP_GCLK_WIDTH 1
234 #define AM33XX_CLKACTIVITY_MCASP_GCLK_MASK (1 << 7)
236 /* Used by CM_PER_L3_CLKSTCTRL */
237 #define AM33XX_CLKACTIVITY_MMC_FCLK_SHIFT 3
238 #define AM33XX_CLKACTIVITY_MMC_FCLK_WIDTH 1
239 #define AM33XX_CLKACTIVITY_MMC_FCLK_MASK (1 << 3)
241 /* Used by CM_MPU_CLKSTCTRL */
242 #define AM33XX_CLKACTIVITY_MPU_CLK_SHIFT 2
243 #define AM33XX_CLKACTIVITY_MPU_CLK_WIDTH 1
244 #define AM33XX_CLKACTIVITY_MPU_CLK_MASK (1 << 2)
246 /* Used by CM_PER_OCPWP_L3_CLKSTCTRL */
247 #define AM33XX_CLKACTIVITY_OCPWP_L3_GCLK_SHIFT 4
248 #define AM33XX_CLKACTIVITY_OCPWP_L3_GCLK_WIDTH 1
249 #define AM33XX_CLKACTIVITY_OCPWP_L3_GCLK_MASK (1 << 4)
251 /* Used by CM_PER_OCPWP_L3_CLKSTCTRL */
252 #define AM33XX_CLKACTIVITY_OCPWP_L4_GCLK_SHIFT 5
253 #define AM33XX_CLKACTIVITY_OCPWP_L4_GCLK_WIDTH 1
254 #define AM33XX_CLKACTIVITY_OCPWP_L4_GCLK_MASK (1 << 5)
256 /* Used by CM_RTC_CLKSTCTRL */
257 #define AM33XX_CLKACTIVITY_RTC_32KCLK_SHIFT 9
258 #define AM33XX_CLKACTIVITY_RTC_32KCLK_WIDTH 1
259 #define AM33XX_CLKACTIVITY_RTC_32KCLK_MASK (1 << 9)
261 /* Used by CM_PER_L4LS_CLKSTCTRL */
262 #define AM33XX_CLKACTIVITY_SPI_GCLK_SHIFT 25
263 #define AM33XX_CLKACTIVITY_SPI_GCLK_WIDTH 1
264 #define AM33XX_CLKACTIVITY_SPI_GCLK_MASK (1 << 25)
266 /* Used by CM_WKUP_CLKSTCTRL */
267 #define AM33XX_CLKACTIVITY_SR_SYSCLK_SHIFT 3
268 #define AM33XX_CLKACTIVITY_SR_SYSCLK_WIDTH 1
269 #define AM33XX_CLKACTIVITY_SR_SYSCLK_MASK (1 << 3)
271 /* Used by CM_WKUP_CLKSTCTRL */
272 #define AM33XX_CLKACTIVITY_TIMER0_GCLK_SHIFT 10
273 #define AM33XX_CLKACTIVITY_TIMER0_GCLK_WIDTH 1
274 #define AM33XX_CLKACTIVITY_TIMER0_GCLK_MASK (1 << 10)
276 /* Used by CM_WKUP_CLKSTCTRL */
277 #define AM33XX_CLKACTIVITY_TIMER1_GCLK_SHIFT 13
278 #define AM33XX_CLKACTIVITY_TIMER1_GCLK_WIDTH 1
279 #define AM33XX_CLKACTIVITY_TIMER1_GCLK_MASK (1 << 13)
281 /* Used by CM_PER_L4LS_CLKSTCTRL */
282 #define AM33XX_CLKACTIVITY_TIMER2_GCLK_SHIFT 14
283 #define AM33XX_CLKACTIVITY_TIMER2_GCLK_WIDTH 1
284 #define AM33XX_CLKACTIVITY_TIMER2_GCLK_MASK (1 << 14)
286 /* Used by CM_PER_L4LS_CLKSTCTRL */
287 #define AM33XX_CLKACTIVITY_TIMER3_GCLK_SHIFT 15
288 #define AM33XX_CLKACTIVITY_TIMER3_GCLK_WIDTH 1
289 #define AM33XX_CLKACTIVITY_TIMER3_GCLK_MASK (1 << 15)
291 /* Used by CM_PER_L4LS_CLKSTCTRL */
292 #define AM33XX_CLKACTIVITY_TIMER4_GCLK_SHIFT 16
293 #define AM33XX_CLKACTIVITY_TIMER4_GCLK_WIDTH 1
294 #define AM33XX_CLKACTIVITY_TIMER4_GCLK_MASK (1 << 16)
296 /* Used by CM_PER_L4LS_CLKSTCTRL */
297 #define AM33XX_CLKACTIVITY_TIMER5_GCLK_SHIFT 27
298 #define AM33XX_CLKACTIVITY_TIMER5_GCLK_WIDTH 1
299 #define AM33XX_CLKACTIVITY_TIMER5_GCLK_MASK (1 << 27)
301 /* Used by CM_PER_L4LS_CLKSTCTRL */
302 #define AM33XX_CLKACTIVITY_TIMER6_GCLK_SHIFT 28
303 #define AM33XX_CLKACTIVITY_TIMER6_GCLK_WIDTH 1
304 #define AM33XX_CLKACTIVITY_TIMER6_GCLK_MASK (1 << 28)
306 /* Used by CM_PER_L4LS_CLKSTCTRL */
307 #define AM33XX_CLKACTIVITY_TIMER7_GCLK_SHIFT 13
308 #define AM33XX_CLKACTIVITY_TIMER7_GCLK_WIDTH 1
309 #define AM33XX_CLKACTIVITY_TIMER7_GCLK_MASK (1 << 13)
311 /* Used by CM_WKUP_CLKSTCTRL */
312 #define AM33XX_CLKACTIVITY_UART0_GFCLK_SHIFT 12
313 #define AM33XX_CLKACTIVITY_UART0_GFCLK_WIDTH 1
314 #define AM33XX_CLKACTIVITY_UART0_GFCLK_MASK (1 << 12)
316 /* Used by CM_PER_L4LS_CLKSTCTRL */
317 #define AM33XX_CLKACTIVITY_UART_GFCLK_SHIFT 10
318 #define AM33XX_CLKACTIVITY_UART_GFCLK_WIDTH 1
319 #define AM33XX_CLKACTIVITY_UART_GFCLK_MASK (1 << 10)
321 /* Used by CM_WKUP_CLKSTCTRL */
322 #define AM33XX_CLKACTIVITY_WDT0_GCLK_SHIFT 9
323 #define AM33XX_CLKACTIVITY_WDT0_GCLK_WIDTH 1
324 #define AM33XX_CLKACTIVITY_WDT0_GCLK_MASK (1 << 9)
326 /* Used by CM_WKUP_CLKSTCTRL */
327 #define AM33XX_CLKACTIVITY_WDT1_GCLK_SHIFT 4
328 #define AM33XX_CLKACTIVITY_WDT1_GCLK_WIDTH 1
329 #define AM33XX_CLKACTIVITY_WDT1_GCLK_MASK (1 << 4)
331 /* Used by CLKSEL_GFX_FCLK */
332 #define AM33XX_CLKDIV_SEL_GFX_FCLK_SHIFT 0
333 #define AM33XX_CLKDIV_SEL_GFX_FCLK_WIDTH 1
334 #define AM33XX_CLKDIV_SEL_GFX_FCLK_MASK (1 << 0)
336 /* Used by CM_CLKOUT_CTRL */
337 #define AM33XX_CLKOUT2DIV_SHIFT 3
338 #define AM33XX_CLKOUT2DIV_WIDTH 3
339 #define AM33XX_CLKOUT2DIV_MASK (0x7 << 3)
341 /* Used by CM_CLKOUT_CTRL */
342 #define AM33XX_CLKOUT2EN_SHIFT 7
343 #define AM33XX_CLKOUT2EN_WIDTH 1
344 #define AM33XX_CLKOUT2EN_MASK (1 << 7)
346 /* Used by CM_CLKOUT_CTRL */
347 #define AM33XX_CLKOUT2SOURCE_SHIFT 0
348 #define AM33XX_CLKOUT2SOURCE_WIDTH 3
349 #define AM33XX_CLKOUT2SOURCE_MASK (0x7 << 0)
352 * Used by CLKSEL_GPIO0_DBCLK, CLKSEL_LCDC_PIXEL_CLK, CLKSEL_TIMER2_CLK,
353 * CLKSEL_TIMER3_CLK, CLKSEL_TIMER4_CLK, CLKSEL_TIMER5_CLK, CLKSEL_TIMER6_CLK,
356 #define AM33XX_CLKSEL_SHIFT 0
357 #define AM33XX_CLKSEL_WIDTH 1
358 #define AM33XX_CLKSEL_MASK (0x01 << 0)
361 * Renamed from CLKSEL Used by CLKSEL_PRUSS_OCP_CLK, CLKSEL_WDT1_CLK,
364 #define AM33XX_CLKSEL_0_0_SHIFT 0
365 #define AM33XX_CLKSEL_0_0_WIDTH 1
366 #define AM33XX_CLKSEL_0_0_MASK (1 << 0)
368 #define AM33XX_CLKSEL_0_1_SHIFT 0
369 #define AM33XX_CLKSEL_0_1_WIDTH 2
370 #define AM33XX_CLKSEL_0_1_MASK (3 << 0)
372 /* Renamed from CLKSEL Used by CLKSEL_TIMER1MS_CLK */
373 #define AM33XX_CLKSEL_0_2_SHIFT 0
374 #define AM33XX_CLKSEL_0_2_WIDTH 3
375 #define AM33XX_CLKSEL_0_2_MASK (7 << 0)
377 /* Used by CLKSEL_GFX_FCLK */
378 #define AM33XX_CLKSEL_GFX_FCLK_SHIFT 1
379 #define AM33XX_CLKSEL_GFX_FCLK_WIDTH 1
380 #define AM33XX_CLKSEL_GFX_FCLK_MASK (1 << 1)
383 * Used by CM_MPU_CLKSTCTRL, CM_RTC_CLKSTCTRL, CM_PER_CLK_24MHZ_CLKSTCTRL,
384 * CM_PER_CPSW_CLKSTCTRL, CM_PER_PRUSS_CLKSTCTRL, CM_PER_L3S_CLKSTCTRL,
385 * CM_PER_L3_CLKSTCTRL, CM_PER_L4FW_CLKSTCTRL, CM_PER_L4HS_CLKSTCTRL,
386 * CM_PER_L4LS_CLKSTCTRL, CM_PER_LCDC_CLKSTCTRL, CM_PER_OCPWP_L3_CLKSTCTRL,
387 * CM_L3_AON_CLKSTCTRL, CM_L4_WKUP_AON_CLKSTCTRL, CM_WKUP_CLKSTCTRL,
388 * CM_GFX_L3_CLKSTCTRL, CM_GFX_L4LS_GFX_CLKSTCTRL__1, CM_CEFUSE_CLKSTCTRL
390 #define AM33XX_CLKTRCTRL_SHIFT 0
391 #define AM33XX_CLKTRCTRL_WIDTH 2
392 #define AM33XX_CLKTRCTRL_MASK (0x3 << 0)
395 * Used by CM_SSC_DELTAMSTEP_DPLL_CORE, CM_SSC_DELTAMSTEP_DPLL_DDR,
396 * CM_SSC_DELTAMSTEP_DPLL_DISP, CM_SSC_DELTAMSTEP_DPLL_MPU,
397 * CM_SSC_DELTAMSTEP_DPLL_PER
399 #define AM33XX_DELTAMSTEP_SHIFT 0
400 #define AM33XX_DELTAMSTEP_WIDTH 20
401 #define AM33XX_DELTAMSTEP_MASK (0xfffff << 0)
403 /* Used by CM_CLKSEL_DPLL_DDR, CM_CLKSEL_DPLL_DISP, CM_CLKSEL_DPLL_MPU */
404 #define AM33XX_DPLL_BYP_CLKSEL_SHIFT 23
405 #define AM33XX_DPLL_BYP_CLKSEL_WIDTH 1
406 #define AM33XX_DPLL_BYP_CLKSEL_MASK (1 << 23)
408 /* Used by CM_CLKDCOLDO_DPLL_PER */
409 #define AM33XX_DPLL_CLKDCOLDO_GATE_CTRL_SHIFT 8
410 #define AM33XX_DPLL_CLKDCOLDO_GATE_CTRL_WIDTH 1
411 #define AM33XX_DPLL_CLKDCOLDO_GATE_CTRL_MASK (1 << 8)
413 /* Used by CM_CLKDCOLDO_DPLL_PER */
414 #define AM33XX_DPLL_CLKDCOLDO_PWDN_SHIFT 12
415 #define AM33XX_DPLL_CLKDCOLDO_PWDN_WIDTH 1
416 #define AM33XX_DPLL_CLKDCOLDO_PWDN_MASK (1 << 12)
418 /* Used by CM_DIV_M2_DPLL_DDR, CM_DIV_M2_DPLL_DISP, CM_DIV_M2_DPLL_MPU */
419 #define AM33XX_DPLL_CLKOUT_DIV_SHIFT 0
420 #define AM33XX_DPLL_CLKOUT_DIV_WIDTH 5
421 #define AM33XX_DPLL_CLKOUT_DIV_MASK (0x1f << 0)
423 /* Renamed from DPLL_CLKOUT_DIV Used by CM_DIV_M2_DPLL_PER */
424 #define AM33XX_DPLL_CLKOUT_DIV_0_6_SHIFT 0
425 #define AM33XX_DPLL_CLKOUT_DIV_0_6_WIDTH 7
426 #define AM33XX_DPLL_CLKOUT_DIV_0_6_MASK (0x7f << 0)
428 /* Used by CM_DIV_M2_DPLL_DDR, CM_DIV_M2_DPLL_DISP, CM_DIV_M2_DPLL_MPU */
429 #define AM33XX_DPLL_CLKOUT_DIVCHACK_SHIFT 5
430 #define AM33XX_DPLL_CLKOUT_DIVCHACK_WIDTH 1
431 #define AM33XX_DPLL_CLKOUT_DIVCHACK_MASK (1 << 5)
433 /* Renamed from DPLL_CLKOUT_DIVCHACK Used by CM_DIV_M2_DPLL_PER */
434 #define AM33XX_DPLL_CLKOUT_DIVCHACK_M2_PER_SHIFT 7
435 #define AM33XX_DPLL_CLKOUT_DIVCHACK_M2_PER_WIDTH 1
436 #define AM33XX_DPLL_CLKOUT_DIVCHACK_M2_PER_MASK (1 << 7)
439 * Used by CM_DIV_M2_DPLL_DDR, CM_DIV_M2_DPLL_DISP, CM_DIV_M2_DPLL_MPU,
442 #define AM33XX_DPLL_CLKOUT_GATE_CTRL_SHIFT 8
443 #define AM33XX_DPLL_CLKOUT_GATE_CTRL_WIDTH 1
444 #define AM33XX_DPLL_CLKOUT_GATE_CTRL_MASK (1 << 8)
447 * Used by CM_CLKSEL_DPLL_CORE, CM_CLKSEL_DPLL_DDR, CM_CLKSEL_DPLL_DISP,
450 #define AM33XX_DPLL_DIV_SHIFT 0
451 #define AM33XX_DPLL_DIV_WIDTH 7
452 #define AM33XX_DPLL_DIV_MASK (0x7f << 0)
454 #define AM33XX_DPLL_PER_DIV_MASK (0xff << 0)
456 /* Renamed from DPLL_DIV Used by CM_CLKSEL_DPLL_PERIPH */
457 #define AM33XX_DPLL_DIV_0_7_SHIFT 0
458 #define AM33XX_DPLL_DIV_0_7_WIDTH 8
459 #define AM33XX_DPLL_DIV_0_7_MASK (0xff << 0)
462 * Used by CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDR, CM_CLKMODE_DPLL_DISP,
463 * CM_CLKMODE_DPLL_MPU
465 #define AM33XX_DPLL_DRIFTGUARD_EN_SHIFT 8
466 #define AM33XX_DPLL_DRIFTGUARD_EN_WIDTH 1
467 #define AM33XX_DPLL_DRIFTGUARD_EN_MASK (1 << 8)
470 * Used by CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDR, CM_CLKMODE_DPLL_DISP,
471 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER
473 #define AM33XX_DPLL_EN_SHIFT 0
474 #define AM33XX_DPLL_EN_WIDTH 3
475 #define AM33XX_DPLL_EN_MASK (0x7 << 0)
478 * Used by CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDR, CM_CLKMODE_DPLL_DISP,
479 * CM_CLKMODE_DPLL_MPU
481 #define AM33XX_DPLL_LPMODE_EN_SHIFT 10
482 #define AM33XX_DPLL_LPMODE_EN_WIDTH 1
483 #define AM33XX_DPLL_LPMODE_EN_MASK (1 << 10)
486 * Used by CM_CLKSEL_DPLL_CORE, CM_CLKSEL_DPLL_DDR, CM_CLKSEL_DPLL_DISP,
489 #define AM33XX_DPLL_MULT_SHIFT 8
490 #define AM33XX_DPLL_MULT_WIDTH 11
491 #define AM33XX_DPLL_MULT_MASK (0x7ff << 8)
493 /* Renamed from DPLL_MULT Used by CM_CLKSEL_DPLL_PERIPH */
494 #define AM33XX_DPLL_MULT_PERIPH_SHIFT 8
495 #define AM33XX_DPLL_MULT_PERIPH_WIDTH 12
496 #define AM33XX_DPLL_MULT_PERIPH_MASK (0xfff << 8)
499 * Used by CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDR, CM_CLKMODE_DPLL_DISP,
500 * CM_CLKMODE_DPLL_MPU
502 #define AM33XX_DPLL_REGM4XEN_SHIFT 11
503 #define AM33XX_DPLL_REGM4XEN_WIDTH 1
504 #define AM33XX_DPLL_REGM4XEN_MASK (1 << 11)
506 /* Used by CM_CLKSEL_DPLL_PERIPH */
507 #define AM33XX_DPLL_SD_DIV_SHIFT 24
508 #define AM33XX_DPLL_SD_DIV_WIDTH 8
509 #define AM33XX_DPLL_SD_DIV_MASK (0xff << 24)
512 * Used by CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDR, CM_CLKMODE_DPLL_DISP,
513 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER
515 #define AM33XX_DPLL_SSC_ACK_SHIFT 13
516 #define AM33XX_DPLL_SSC_ACK_WIDTH 1
517 #define AM33XX_DPLL_SSC_ACK_MASK (1 << 13)
520 * Used by CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDR, CM_CLKMODE_DPLL_DISP,
521 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER
523 #define AM33XX_DPLL_SSC_DOWNSPREAD_SHIFT 14
524 #define AM33XX_DPLL_SSC_DOWNSPREAD_WIDTH 1
525 #define AM33XX_DPLL_SSC_DOWNSPREAD_MASK (1 << 14)
528 * Used by CM_CLKMODE_DPLL_CORE, CM_CLKMODE_DPLL_DDR, CM_CLKMODE_DPLL_DISP,
529 * CM_CLKMODE_DPLL_MPU, CM_CLKMODE_DPLL_PER
531 #define AM33XX_DPLL_SSC_EN_SHIFT 12
532 #define AM33XX_DPLL_SSC_EN_WIDTH 1
533 #define AM33XX_DPLL_SSC_EN_MASK (1 << 12)
535 /* Used by CM_DIV_M4_DPLL_CORE */
536 #define AM33XX_HSDIVIDER_CLKOUT1_DIV_SHIFT 0
537 #define AM33XX_HSDIVIDER_CLKOUT1_DIV_WIDTH 5
538 #define AM33XX_HSDIVIDER_CLKOUT1_DIV_MASK (0x1f << 0)
540 /* Used by CM_DIV_M4_DPLL_CORE */
541 #define AM33XX_HSDIVIDER_CLKOUT1_DIVCHACK_SHIFT 5
542 #define AM33XX_HSDIVIDER_CLKOUT1_DIVCHACK_WIDTH 1
543 #define AM33XX_HSDIVIDER_CLKOUT1_DIVCHACK_MASK (1 << 5)
545 /* Used by CM_DIV_M4_DPLL_CORE */
546 #define AM33XX_HSDIVIDER_CLKOUT1_GATE_CTRL_SHIFT 8
547 #define AM33XX_HSDIVIDER_CLKOUT1_GATE_CTRL_WIDTH 1
548 #define AM33XX_HSDIVIDER_CLKOUT1_GATE_CTRL_MASK (1 << 8)
550 /* Used by CM_DIV_M4_DPLL_CORE */
551 #define AM33XX_HSDIVIDER_CLKOUT1_PWDN_SHIFT 12
552 #define AM33XX_HSDIVIDER_CLKOUT1_PWDN_WIDTH 1
553 #define AM33XX_HSDIVIDER_CLKOUT1_PWDN_MASK (1 << 12)
555 /* Used by CM_DIV_M5_DPLL_CORE */
556 #define AM33XX_HSDIVIDER_CLKOUT2_DIV_SHIFT 0
557 #define AM33XX_HSDIVIDER_CLKOUT2_DIV_WIDTH 5
558 #define AM33XX_HSDIVIDER_CLKOUT2_DIV_MASK (0x1f << 0)
560 /* Used by CM_DIV_M5_DPLL_CORE */
561 #define AM33XX_HSDIVIDER_CLKOUT2_DIVCHACK_SHIFT 5
562 #define AM33XX_HSDIVIDER_CLKOUT2_DIVCHACK_WIDTH 1
563 #define AM33XX_HSDIVIDER_CLKOUT2_DIVCHACK_MASK (1 << 5)
565 /* Used by CM_DIV_M5_DPLL_CORE */
566 #define AM33XX_HSDIVIDER_CLKOUT2_GATE_CTRL_SHIFT 8
567 #define AM33XX_HSDIVIDER_CLKOUT2_GATE_CTRL_WIDTH 1
568 #define AM33XX_HSDIVIDER_CLKOUT2_GATE_CTRL_MASK (1 << 8)
570 /* Used by CM_DIV_M5_DPLL_CORE */
571 #define AM33XX_HSDIVIDER_CLKOUT2_PWDN_SHIFT 12
572 #define AM33XX_HSDIVIDER_CLKOUT2_PWDN_WIDTH 1
573 #define AM33XX_HSDIVIDER_CLKOUT2_PWDN_MASK (1 << 12)
575 /* Used by CM_DIV_M6_DPLL_CORE */
576 #define AM33XX_HSDIVIDER_CLKOUT3_DIV_SHIFT 0
577 #define AM33XX_HSDIVIDER_CLKOUT3_DIV_WIDTH 5
578 #define AM33XX_HSDIVIDER_CLKOUT3_DIV_MASK (0x1f << 0)
580 /* Used by CM_DIV_M6_DPLL_CORE */
581 #define AM33XX_HSDIVIDER_CLKOUT3_DIVCHACK_SHIFT 5
582 #define AM33XX_HSDIVIDER_CLKOUT3_DIVCHACK_WIDTH 1
583 #define AM33XX_HSDIVIDER_CLKOUT3_DIVCHACK_MASK (1 << 5)
585 /* Used by CM_DIV_M6_DPLL_CORE */
586 #define AM33XX_HSDIVIDER_CLKOUT3_GATE_CTRL_SHIFT 8
587 #define AM33XX_HSDIVIDER_CLKOUT3_GATE_CTRL_WIDTH 1
588 #define AM33XX_HSDIVIDER_CLKOUT3_GATE_CTRL_MASK (1 << 8)
590 /* Used by CM_DIV_M6_DPLL_CORE */
591 #define AM33XX_HSDIVIDER_CLKOUT3_PWDN_SHIFT 12
592 #define AM33XX_HSDIVIDER_CLKOUT3_PWDN_WIDTH 1
593 #define AM33XX_HSDIVIDER_CLKOUT3_PWDN_MASK (1 << 12)
596 * Used by CM_MPU_MPU_CLKCTRL, CM_RTC_RTC_CLKCTRL, CM_PER_AES0_CLKCTRL,
597 * CM_PER_AES1_CLKCTRL, CM_PER_CLKDIV32K_CLKCTRL, CM_PER_CPGMAC0_CLKCTRL,
598 * CM_PER_DCAN0_CLKCTRL, CM_PER_DCAN1_CLKCTRL, CM_PER_DES_CLKCTRL,
599 * CM_PER_ELM_CLKCTRL, CM_PER_EMIF_CLKCTRL, CM_PER_EMIF_FW_CLKCTRL,
600 * CM_PER_EPWMSS0_CLKCTRL, CM_PER_EPWMSS1_CLKCTRL, CM_PER_EPWMSS2_CLKCTRL,
601 * CM_PER_GPIO1_CLKCTRL, CM_PER_GPIO2_CLKCTRL, CM_PER_GPIO3_CLKCTRL,
602 * CM_PER_GPIO4_CLKCTRL, CM_PER_GPIO5_CLKCTRL, CM_PER_GPIO6_CLKCTRL,
603 * CM_PER_GPMC_CLKCTRL, CM_PER_I2C1_CLKCTRL, CM_PER_I2C2_CLKCTRL,
604 * CM_PER_PRUSS_CLKCTRL, CM_PER_IEEE5000_CLKCTRL, CM_PER_L3_CLKCTRL,
605 * CM_PER_L3_INSTR_CLKCTRL, CM_PER_L4FW_CLKCTRL, CM_PER_L4HS_CLKCTRL,
606 * CM_PER_L4LS_CLKCTRL, CM_PER_LCDC_CLKCTRL, CM_PER_MAILBOX0_CLKCTRL,
607 * CM_PER_MAILBOX1_CLKCTRL, CM_PER_MCASP0_CLKCTRL, CM_PER_MCASP1_CLKCTRL,
608 * CM_PER_MCASP2_CLKCTRL, CM_PER_MLB_CLKCTRL, CM_PER_MMC0_CLKCTRL,
609 * CM_PER_MMC1_CLKCTRL, CM_PER_MMC2_CLKCTRL, CM_PER_MSTR_EXPS_CLKCTRL,
610 * CM_PER_OCMCRAM_CLKCTRL, CM_PER_OCPWP_CLKCTRL, CM_PER_PCIE_CLKCTRL,
611 * CM_PER_PKA_CLKCTRL, CM_PER_RNG_CLKCTRL, CM_PER_SHA0_CLKCTRL,
612 * CM_PER_SLV_EXPS_CLKCTRL, CM_PER_SPARE0_CLKCTRL, CM_PER_SPARE1_CLKCTRL,
613 * CM_PER_SPARE_CLKCTRL, CM_PER_SPI0_CLKCTRL, CM_PER_SPI1_CLKCTRL,
614 * CM_PER_SPI2_CLKCTRL, CM_PER_SPI3_CLKCTRL, CM_PER_SPINLOCK_CLKCTRL,
615 * CM_PER_TIMER2_CLKCTRL, CM_PER_TIMER3_CLKCTRL, CM_PER_TIMER4_CLKCTRL,
616 * CM_PER_TIMER5_CLKCTRL, CM_PER_TIMER6_CLKCTRL, CM_PER_TIMER7_CLKCTRL,
617 * CM_PER_TPCC_CLKCTRL, CM_PER_TPTC0_CLKCTRL, CM_PER_TPTC1_CLKCTRL,
618 * CM_PER_TPTC2_CLKCTRL, CM_PER_UART1_CLKCTRL, CM_PER_UART2_CLKCTRL,
619 * CM_PER_UART3_CLKCTRL, CM_PER_UART4_CLKCTRL, CM_PER_UART5_CLKCTRL,
620 * CM_PER_USB0_CLKCTRL, CM_WKUP_ADC_TSC_CLKCTRL, CM_WKUP_CONTROL_CLKCTRL,
621 * CM_WKUP_DEBUGSS_CLKCTRL, CM_WKUP_GPIO0_CLKCTRL, CM_WKUP_I2C0_CLKCTRL,
622 * CM_WKUP_L4WKUP_CLKCTRL, CM_WKUP_SMARTREFLEX0_CLKCTRL,
623 * CM_WKUP_SMARTREFLEX1_CLKCTRL, CM_WKUP_TIMER0_CLKCTRL,
624 * CM_WKUP_TIMER1_CLKCTRL, CM_WKUP_UART0_CLKCTRL, CM_WKUP_WDT0_CLKCTRL,
625 * CM_WKUP_WDT1_CLKCTRL, CM_GFX_BITBLT_CLKCTRL, CM_GFX_GFX_CLKCTRL,
626 * CM_GFX_MMUCFG_CLKCTRL, CM_GFX_MMUDATA_CLKCTRL, CM_CEFUSE_CEFUSE_CLKCTRL
628 #define AM33XX_IDLEST_SHIFT 16
629 #define AM33XX_IDLEST_WIDTH 2
630 #define AM33XX_IDLEST_MASK (0x3 << 16)
632 /* Used by CM_MAC_CLKSEL */
633 #define AM33XX_MII_CLK_SEL_SHIFT 2
634 #define AM33XX_MII_CLK_SEL_WIDTH 1
635 #define AM33XX_MII_CLK_SEL_MASK (1 << 2)
638 * Used by CM_SSC_MODFREQDIV_DPLL_CORE, CM_SSC_MODFREQDIV_DPLL_DDR,
639 * CM_SSC_MODFREQDIV_DPLL_DISP, CM_SSC_MODFREQDIV_DPLL_MPU,
640 * CM_SSC_MODFREQDIV_DPLL_PER
642 #define AM33XX_MODFREQDIV_EXPONENT_SHIFT 8
643 #define AM33XX_MODFREQDIV_EXPONENT_WIDTH 3
644 #define AM33XX_MODFREQDIV_EXPONENT_MASK (0x7 << 8)
647 * Used by CM_SSC_MODFREQDIV_DPLL_CORE, CM_SSC_MODFREQDIV_DPLL_DDR,
648 * CM_SSC_MODFREQDIV_DPLL_DISP, CM_SSC_MODFREQDIV_DPLL_MPU,
649 * CM_SSC_MODFREQDIV_DPLL_PER
651 #define AM33XX_MODFREQDIV_MANTISSA_SHIFT 0
652 #define AM33XX_MODFREQDIV_MANTISSA_WIDTH 7
653 #define AM33XX_MODFREQDIV_MANTISSA_MASK (0x7f << 0)
656 * Used by CM_MPU_MPU_CLKCTRL, CM_RTC_RTC_CLKCTRL, CM_PER_AES0_CLKCTRL,
657 * CM_PER_AES1_CLKCTRL, CM_PER_CLKDIV32K_CLKCTRL, CM_PER_CPGMAC0_CLKCTRL,
658 * CM_PER_DCAN0_CLKCTRL, CM_PER_DCAN1_CLKCTRL, CM_PER_DES_CLKCTRL,
659 * CM_PER_ELM_CLKCTRL, CM_PER_EMIF_CLKCTRL, CM_PER_EMIF_FW_CLKCTRL,
660 * CM_PER_EPWMSS0_CLKCTRL, CM_PER_EPWMSS1_CLKCTRL, CM_PER_EPWMSS2_CLKCTRL,
661 * CM_PER_GPIO1_CLKCTRL, CM_PER_GPIO2_CLKCTRL, CM_PER_GPIO3_CLKCTRL,
662 * CM_PER_GPIO4_CLKCTRL, CM_PER_GPIO5_CLKCTRL, CM_PER_GPIO6_CLKCTRL,
663 * CM_PER_GPMC_CLKCTRL, CM_PER_I2C1_CLKCTRL, CM_PER_I2C2_CLKCTRL,
664 * CM_PER_PRUSS_CLKCTRL, CM_PER_IEEE5000_CLKCTRL, CM_PER_L3_CLKCTRL,
665 * CM_PER_L3_INSTR_CLKCTRL, CM_PER_L4FW_CLKCTRL, CM_PER_L4HS_CLKCTRL,
666 * CM_PER_L4LS_CLKCTRL, CM_PER_LCDC_CLKCTRL, CM_PER_MAILBOX0_CLKCTRL,
667 * CM_PER_MAILBOX1_CLKCTRL, CM_PER_MCASP0_CLKCTRL, CM_PER_MCASP1_CLKCTRL,
668 * CM_PER_MCASP2_CLKCTRL, CM_PER_MLB_CLKCTRL, CM_PER_MMC0_CLKCTRL,
669 * CM_PER_MMC1_CLKCTRL, CM_PER_MMC2_CLKCTRL, CM_PER_MSTR_EXPS_CLKCTRL,
670 * CM_PER_OCMCRAM_CLKCTRL, CM_PER_OCPWP_CLKCTRL, CM_PER_PCIE_CLKCTRL,
671 * CM_PER_PKA_CLKCTRL, CM_PER_RNG_CLKCTRL, CM_PER_SHA0_CLKCTRL,
672 * CM_PER_SLV_EXPS_CLKCTRL, CM_PER_SPARE0_CLKCTRL, CM_PER_SPARE1_CLKCTRL,
673 * CM_PER_SPARE_CLKCTRL, CM_PER_SPI0_CLKCTRL, CM_PER_SPI1_CLKCTRL,
674 * CM_PER_SPI2_CLKCTRL, CM_PER_SPI3_CLKCTRL, CM_PER_SPINLOCK_CLKCTRL,
675 * CM_PER_TIMER2_CLKCTRL, CM_PER_TIMER3_CLKCTRL, CM_PER_TIMER4_CLKCTRL,
676 * CM_PER_TIMER5_CLKCTRL, CM_PER_TIMER6_CLKCTRL, CM_PER_TIMER7_CLKCTRL,
677 * CM_PER_TPCC_CLKCTRL, CM_PER_TPTC0_CLKCTRL, CM_PER_TPTC1_CLKCTRL,
678 * CM_PER_TPTC2_CLKCTRL, CM_PER_UART1_CLKCTRL, CM_PER_UART2_CLKCTRL,
679 * CM_PER_UART3_CLKCTRL, CM_PER_UART4_CLKCTRL, CM_PER_UART5_CLKCTRL,
680 * CM_PER_USB0_CLKCTRL, CM_WKUP_ADC_TSC_CLKCTRL, CM_WKUP_CONTROL_CLKCTRL,
681 * CM_WKUP_DEBUGSS_CLKCTRL, CM_WKUP_GPIO0_CLKCTRL, CM_WKUP_I2C0_CLKCTRL,
682 * CM_WKUP_L4WKUP_CLKCTRL, CM_WKUP_SMARTREFLEX0_CLKCTRL,
683 * CM_WKUP_SMARTREFLEX1_CLKCTRL, CM_WKUP_TIMER0_CLKCTRL,
684 * CM_WKUP_TIMER1_CLKCTRL, CM_WKUP_UART0_CLKCTRL, CM_WKUP_WDT0_CLKCTRL,
685 * CM_WKUP_WDT1_CLKCTRL, CM_WKUP_WKUP_M3_CLKCTRL, CM_GFX_BITBLT_CLKCTRL,
686 * CM_GFX_GFX_CLKCTRL, CM_GFX_MMUCFG_CLKCTRL, CM_GFX_MMUDATA_CLKCTRL,
687 * CM_CEFUSE_CEFUSE_CLKCTRL
689 #define AM33XX_MODULEMODE_SHIFT 0
690 #define AM33XX_MODULEMODE_WIDTH 2
691 #define AM33XX_MODULEMODE_MASK (0x3 << 0)
693 /* Used by CM_WKUP_DEBUGSS_CLKCTRL */
694 #define AM33XX_OPTCLK_DEBUG_CLKA_SHIFT 30
695 #define AM33XX_OPTCLK_DEBUG_CLKA_WIDTH 1
696 #define AM33XX_OPTCLK_DEBUG_CLKA_MASK (1 << 30)
698 /* Used by CM_WKUP_DEBUGSS_CLKCTRL */
699 #define AM33XX_OPTFCLKEN_DBGSYSCLK_SHIFT 19
700 #define AM33XX_OPTFCLKEN_DBGSYSCLK_WIDTH 1
701 #define AM33XX_OPTFCLKEN_DBGSYSCLK_MASK (1 << 19)
703 /* Used by CM_WKUP_GPIO0_CLKCTRL */
704 #define AM33XX_OPTFCLKEN_GPIO0_GDBCLK_SHIFT 18
705 #define AM33XX_OPTFCLKEN_GPIO0_GDBCLK_WIDTH 1
706 #define AM33XX_OPTFCLKEN_GPIO0_GDBCLK_MASK (1 << 18)
708 /* Used by CM_PER_GPIO1_CLKCTRL */
709 #define AM33XX_OPTFCLKEN_GPIO_1_GDBCLK_SHIFT 18
710 #define AM33XX_OPTFCLKEN_GPIO_1_GDBCLK_WIDTH 1
711 #define AM33XX_OPTFCLKEN_GPIO_1_GDBCLK_MASK (1 << 18)
713 /* Used by CM_PER_GPIO2_CLKCTRL */
714 #define AM33XX_OPTFCLKEN_GPIO_2_GDBCLK_SHIFT 18
715 #define AM33XX_OPTFCLKEN_GPIO_2_GDBCLK_WIDTH 1
716 #define AM33XX_OPTFCLKEN_GPIO_2_GDBCLK_MASK (1 << 18)
718 /* Used by CM_PER_GPIO3_CLKCTRL */
719 #define AM33XX_OPTFCLKEN_GPIO_3_GDBCLK_SHIFT 18
720 #define AM33XX_OPTFCLKEN_GPIO_3_GDBCLK_WIDTH 1
721 #define AM33XX_OPTFCLKEN_GPIO_3_GDBCLK_MASK (1 << 18)
723 /* Used by CM_PER_GPIO4_CLKCTRL */
724 #define AM33XX_OPTFCLKEN_GPIO_4_GDBCLK_SHIFT 18
725 #define AM33XX_OPTFCLKEN_GPIO_4_GDBCLK_WIDTH 1
726 #define AM33XX_OPTFCLKEN_GPIO_4_GDBCLK_MASK (1 << 18)
728 /* Used by CM_PER_GPIO5_CLKCTRL */
729 #define AM33XX_OPTFCLKEN_GPIO_5_GDBCLK_SHIFT 18
730 #define AM33XX_OPTFCLKEN_GPIO_5_GDBCLK_WIDTH 1
731 #define AM33XX_OPTFCLKEN_GPIO_5_GDBCLK_MASK (1 << 18)
733 /* Used by CM_PER_GPIO6_CLKCTRL */
734 #define AM33XX_OPTFCLKEN_GPIO_6_GDBCLK_SHIFT 18
735 #define AM33XX_OPTFCLKEN_GPIO_6_GDBCLK_WIDTH 1
736 #define AM33XX_OPTFCLKEN_GPIO_6_GDBCLK_MASK (1 << 18)
739 * Used by CM_MPU_MPU_CLKCTRL, CM_PER_CPGMAC0_CLKCTRL, CM_PER_PRUSS_CLKCTRL,
740 * CM_PER_IEEE5000_CLKCTRL, CM_PER_LCDC_CLKCTRL, CM_PER_MLB_CLKCTRL,
741 * CM_PER_MSTR_EXPS_CLKCTRL, CM_PER_OCPWP_CLKCTRL, CM_PER_PCIE_CLKCTRL,
742 * CM_PER_SPARE_CLKCTRL, CM_PER_TPTC0_CLKCTRL, CM_PER_TPTC1_CLKCTRL,
743 * CM_PER_TPTC2_CLKCTRL, CM_PER_USB0_CLKCTRL, CM_WKUP_DEBUGSS_CLKCTRL,
744 * CM_WKUP_WKUP_M3_CLKCTRL, CM_GFX_BITBLT_CLKCTRL, CM_GFX_GFX_CLKCTRL
746 #define AM33XX_STBYST_SHIFT 18
747 #define AM33XX_STBYST_WIDTH 1
748 #define AM33XX_STBYST_MASK (1 << 18)
750 /* Used by CM_WKUP_DEBUGSS_CLKCTRL */
751 #define AM33XX_STM_PMD_CLKDIVSEL_SHIFT 27
752 #define AM33XX_STM_PMD_CLKDIVSEL_WIDTH 3
753 #define AM33XX_STM_PMD_CLKDIVSEL_MASK (0x7 << 27)
755 /* Used by CM_WKUP_DEBUGSS_CLKCTRL */
756 #define AM33XX_STM_PMD_CLKSEL_SHIFT 22
757 #define AM33XX_STM_PMD_CLKSEL_WIDTH 2
758 #define AM33XX_STM_PMD_CLKSEL_MASK (0x3 << 22)
761 * Used by CM_IDLEST_DPLL_CORE, CM_IDLEST_DPLL_DDR, CM_IDLEST_DPLL_DISP,
762 * CM_IDLEST_DPLL_MPU, CM_IDLEST_DPLL_PER
764 #define AM33XX_ST_DPLL_CLK_SHIFT 0
765 #define AM33XX_ST_DPLL_CLK_WIDTH 1
766 #define AM33XX_ST_DPLL_CLK_MASK (1 << 0)
768 /* Used by CM_CLKDCOLDO_DPLL_PER */
769 #define AM33XX_ST_DPLL_CLKDCOLDO_SHIFT 8
770 #define AM33XX_ST_DPLL_CLKDCOLDO_WIDTH 1
771 #define AM33XX_ST_DPLL_CLKDCOLDO_MASK (1 << 8)
774 * Used by CM_DIV_M2_DPLL_DDR, CM_DIV_M2_DPLL_DISP, CM_DIV_M2_DPLL_MPU,
777 #define AM33XX_ST_DPLL_CLKOUT_SHIFT 9
778 #define AM33XX_ST_DPLL_CLKOUT_WIDTH 1
779 #define AM33XX_ST_DPLL_CLKOUT_MASK (1 << 9)
781 /* Used by CM_DIV_M4_DPLL_CORE */
782 #define AM33XX_ST_HSDIVIDER_CLKOUT1_SHIFT 9
783 #define AM33XX_ST_HSDIVIDER_CLKOUT1_WIDTH 1
784 #define AM33XX_ST_HSDIVIDER_CLKOUT1_MASK (1 << 9)
786 /* Used by CM_DIV_M5_DPLL_CORE */
787 #define AM33XX_ST_HSDIVIDER_CLKOUT2_SHIFT 9
788 #define AM33XX_ST_HSDIVIDER_CLKOUT2_WIDTH 1
789 #define AM33XX_ST_HSDIVIDER_CLKOUT2_MASK (1 << 9)
791 /* Used by CM_DIV_M6_DPLL_CORE */
792 #define AM33XX_ST_HSDIVIDER_CLKOUT3_SHIFT 9
793 #define AM33XX_ST_HSDIVIDER_CLKOUT3_WIDTH 1
794 #define AM33XX_ST_HSDIVIDER_CLKOUT3_MASK (1 << 9)
797 * Used by CM_IDLEST_DPLL_CORE, CM_IDLEST_DPLL_DDR, CM_IDLEST_DPLL_DISP,
798 * CM_IDLEST_DPLL_MPU, CM_IDLEST_DPLL_PER
800 #define AM33XX_ST_MN_BYPASS_SHIFT 8
801 #define AM33XX_ST_MN_BYPASS_WIDTH 1
802 #define AM33XX_ST_MN_BYPASS_MASK (1 << 8)
804 /* Used by CM_WKUP_DEBUGSS_CLKCTRL */
805 #define AM33XX_TRC_PMD_CLKDIVSEL_SHIFT 24
806 #define AM33XX_TRC_PMD_CLKDIVSEL_WIDTH 3
807 #define AM33XX_TRC_PMD_CLKDIVSEL_MASK (0x7 << 24)
809 /* Used by CM_WKUP_DEBUGSS_CLKCTRL */
810 #define AM33XX_TRC_PMD_CLKSEL_SHIFT 20
811 #define AM33XX_TRC_PMD_CLKSEL_WIDTH 2
812 #define AM33XX_TRC_PMD_CLKSEL_MASK (0x3 << 20)
814 /* Used by CONTROL_SEC_CLK_CTRL */
815 #define AM33XX_TIMER0_CLKSEL_WIDTH 2
816 #define AM33XX_TIMER0_CLKSEL_MASK (0x3 << 4)