cm-regbits-44xx.h 58.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
/*
 * OMAP44xx Clock Management register bits
 *
 * Copyright (C) 2009 Texas Instruments, Inc.
 * Copyright (C) 2009 Nokia Corporation
 *
 * Paul Walmsley (paul@pwsan.com)
 * Rajendra Nayak (rnayak@ti.com)
 * Benoit Cousson (b-cousson@ti.com)
 *
 * This file is automatically generated from the OMAP hardware databases.
 * We respectfully ask that any modifications to this file be coordinated
 * with the public linux-omap@vger.kernel.org mailing list and the
 * authors above to ensure that the autogeneration scripts are kept
 * up-to-date with the file contents.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_44XX_H
#define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_44XX_H

#include "cm.h"


/* Used by CM_L3_1_DYNAMICDEP, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP */
29
#define OMAP4430_ABE_DYNDEP_SHIFT				3
30 31 32 33 34 35 36
#define OMAP4430_ABE_DYNDEP_MASK				BITFIELD(3, 3)

/*
 * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP,
 * CM_L3INIT_STATICDEP, CM_SDMA_STATICDEP_RESTORE, CM_MPU_STATICDEP,
 * CM_TESLA_STATICDEP
 */
37
#define OMAP4430_ABE_STATDEP_SHIFT				3
38 39 40
#define OMAP4430_ABE_STATDEP_MASK				BITFIELD(3, 3)

/* Used by CM_L4CFG_DYNAMICDEP */
41
#define OMAP4430_ALWONCORE_DYNDEP_SHIFT				16
42 43 44
#define OMAP4430_ALWONCORE_DYNDEP_MASK				BITFIELD(16, 16)

/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_TESLA_STATICDEP */
45
#define OMAP4430_ALWONCORE_STATDEP_SHIFT			16
46 47 48 49 50 51 52
#define OMAP4430_ALWONCORE_STATDEP_MASK				BITFIELD(16, 16)

/*
 * Used by CM_AUTOIDLE_DPLL_PER, CM_AUTOIDLE_DPLL_UNIPRO, CM_AUTOIDLE_DPLL_USB,
 * CM_AUTOIDLE_DPLL_CORE_RESTORE, CM_AUTOIDLE_DPLL_ABE, CM_AUTOIDLE_DPLL_CORE,
 * CM_AUTOIDLE_DPLL_DDRPHY, CM_AUTOIDLE_DPLL_IVA, CM_AUTOIDLE_DPLL_MPU
 */
53
#define OMAP4430_AUTO_DPLL_MODE_SHIFT				0
54 55 56
#define OMAP4430_AUTO_DPLL_MODE_MASK				BITFIELD(0, 2)

/* Used by CM_L4CFG_DYNAMICDEP */
57
#define OMAP4430_CEFUSE_DYNDEP_SHIFT				17
58 59 60
#define OMAP4430_CEFUSE_DYNDEP_MASK				BITFIELD(17, 17)

/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP, CM_TESLA_STATICDEP */
61
#define OMAP4430_CEFUSE_STATDEP_SHIFT				17
62 63 64
#define OMAP4430_CEFUSE_STATDEP_MASK				BITFIELD(17, 17)

/* Used by CM1_ABE_CLKSTCTRL */
65
#define OMAP4430_CLKACTIVITY_ABE_24M_GFCLK_SHIFT		13
66 67 68
#define OMAP4430_CLKACTIVITY_ABE_24M_GFCLK_MASK			BITFIELD(13, 13)

/* Used by CM1_ABE_CLKSTCTRL */
69
#define OMAP4430_CLKACTIVITY_ABE_ALWON_32K_CLK_SHIFT		12
70 71 72
#define OMAP4430_CLKACTIVITY_ABE_ALWON_32K_CLK_MASK		BITFIELD(12, 12)

/* Used by CM_WKUP_CLKSTCTRL */
73
#define OMAP4430_CLKACTIVITY_ABE_LP_CLK_SHIFT			9
74 75 76
#define OMAP4430_CLKACTIVITY_ABE_LP_CLK_MASK			BITFIELD(9, 9)

/* Used by CM1_ABE_CLKSTCTRL */
77
#define OMAP4430_CLKACTIVITY_ABE_SYSCLK_SHIFT			11
78 79 80
#define OMAP4430_CLKACTIVITY_ABE_SYSCLK_MASK			BITFIELD(11, 11)

/* Used by CM1_ABE_CLKSTCTRL */
81
#define OMAP4430_CLKACTIVITY_ABE_X2_CLK_SHIFT			8
82 83 84
#define OMAP4430_CLKACTIVITY_ABE_X2_CLK_MASK			BITFIELD(8, 8)

/* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
85
#define OMAP4430_CLKACTIVITY_ASYNC_DLL_CLK_SHIFT		11
86 87 88
#define OMAP4430_CLKACTIVITY_ASYNC_DLL_CLK_MASK			BITFIELD(11, 11)

/* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
89
#define OMAP4430_CLKACTIVITY_ASYNC_PHY1_CLK_SHIFT		12
90 91 92
#define OMAP4430_CLKACTIVITY_ASYNC_PHY1_CLK_MASK		BITFIELD(12, 12)

/* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
93
#define OMAP4430_CLKACTIVITY_ASYNC_PHY2_CLK_SHIFT		13
94 95 96
#define OMAP4430_CLKACTIVITY_ASYNC_PHY2_CLK_MASK		BITFIELD(13, 13)

/* Used by CM_CAM_CLKSTCTRL */
97
#define OMAP4430_CLKACTIVITY_CAM_PHY_CTRL_GCLK_SHIFT		9
98 99 100
#define OMAP4430_CLKACTIVITY_CAM_PHY_CTRL_GCLK_MASK		BITFIELD(9, 9)

/* Used by CM_EMU_CLKSTCTRL */
101
#define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_SHIFT		9
102 103 104
#define OMAP4430_CLKACTIVITY_CORE_DPLL_EMU_CLK_MASK		BITFIELD(9, 9)

/* Used by CM_CEFUSE_CLKSTCTRL */
105
#define OMAP4430_CLKACTIVITY_CUST_EFUSE_SYS_CLK_SHIFT		9
106 107 108
#define OMAP4430_CLKACTIVITY_CUST_EFUSE_SYS_CLK_MASK		BITFIELD(9, 9)

/* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
109
#define OMAP4430_CLKACTIVITY_DLL_CLK_SHIFT			9
110 111 112
#define OMAP4430_CLKACTIVITY_DLL_CLK_MASK			BITFIELD(9, 9)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
113
#define OMAP4430_CLKACTIVITY_DMT10_GFCLK_SHIFT			9
114 115 116
#define OMAP4430_CLKACTIVITY_DMT10_GFCLK_MASK			BITFIELD(9, 9)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
117
#define OMAP4430_CLKACTIVITY_DMT11_GFCLK_SHIFT			10
118 119 120
#define OMAP4430_CLKACTIVITY_DMT11_GFCLK_MASK			BITFIELD(10, 10)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
121
#define OMAP4430_CLKACTIVITY_DMT2_GFCLK_SHIFT			11
122 123 124
#define OMAP4430_CLKACTIVITY_DMT2_GFCLK_MASK			BITFIELD(11, 11)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
125
#define OMAP4430_CLKACTIVITY_DMT3_GFCLK_SHIFT			12
126 127 128
#define OMAP4430_CLKACTIVITY_DMT3_GFCLK_MASK			BITFIELD(12, 12)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
129
#define OMAP4430_CLKACTIVITY_DMT4_GFCLK_SHIFT			13
130 131 132
#define OMAP4430_CLKACTIVITY_DMT4_GFCLK_MASK			BITFIELD(13, 13)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
133
#define OMAP4430_CLKACTIVITY_DMT9_GFCLK_SHIFT			14
134 135 136
#define OMAP4430_CLKACTIVITY_DMT9_GFCLK_MASK			BITFIELD(14, 14)

/* Used by CM_DSS_CLKSTCTRL */
137
#define OMAP4430_CLKACTIVITY_DSS_ALWON_SYS_CLK_SHIFT		10
138 139 140
#define OMAP4430_CLKACTIVITY_DSS_ALWON_SYS_CLK_MASK		BITFIELD(10, 10)

/* Used by CM_DSS_CLKSTCTRL */
141
#define OMAP4430_CLKACTIVITY_DSS_FCLK_SHIFT			9
142 143 144
#define OMAP4430_CLKACTIVITY_DSS_FCLK_MASK			BITFIELD(9, 9)

/* Used by CM_DUCATI_CLKSTCTRL */
145
#define OMAP4430_CLKACTIVITY_DUCATI_GCLK_SHIFT			8
146 147 148
#define OMAP4430_CLKACTIVITY_DUCATI_GCLK_MASK			BITFIELD(8, 8)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
149
#define OMAP4430_CLKACTIVITY_EMAC_50MHZ_CLK_SHIFT		10
150 151 152
#define OMAP4430_CLKACTIVITY_EMAC_50MHZ_CLK_MASK		BITFIELD(10, 10)

/* Used by CM_EMU_CLKSTCTRL */
153
#define OMAP4430_CLKACTIVITY_EMU_SYS_CLK_SHIFT			8
154 155 156
#define OMAP4430_CLKACTIVITY_EMU_SYS_CLK_MASK			BITFIELD(8, 8)

/* Used by CM_CAM_CLKSTCTRL */
157
#define OMAP4430_CLKACTIVITY_FDIF_GFCLK_SHIFT			10
158 159 160
#define OMAP4430_CLKACTIVITY_FDIF_GFCLK_MASK			BITFIELD(10, 10)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
161
#define OMAP4430_CLKACTIVITY_FUNC_12M_GFCLK_SHIFT		15
162 163 164
#define OMAP4430_CLKACTIVITY_FUNC_12M_GFCLK_MASK		BITFIELD(15, 15)

/* Used by CM1_ABE_CLKSTCTRL */
165
#define OMAP4430_CLKACTIVITY_FUNC_24M_GFCLK_SHIFT		10
166 167 168
#define OMAP4430_CLKACTIVITY_FUNC_24M_GFCLK_MASK		BITFIELD(10, 10)

/* Used by CM_DSS_CLKSTCTRL */
169
#define OMAP4430_CLKACTIVITY_HDMI_PHY_48MHZ_GFCLK_SHIFT		11
170 171 172
#define OMAP4430_CLKACTIVITY_HDMI_PHY_48MHZ_GFCLK_MASK		BITFIELD(11, 11)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
173
#define OMAP4430_CLKACTIVITY_HSIC_P1_480M_GFCLK_SHIFT		20
174 175 176
#define OMAP4430_CLKACTIVITY_HSIC_P1_480M_GFCLK_MASK		BITFIELD(20, 20)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
177
#define OMAP4430_CLKACTIVITY_HSIC_P1_GFCLK_SHIFT		26
178 179 180
#define OMAP4430_CLKACTIVITY_HSIC_P1_GFCLK_MASK			BITFIELD(26, 26)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
181
#define OMAP4430_CLKACTIVITY_HSIC_P2_480M_GFCLK_SHIFT		21
182 183 184
#define OMAP4430_CLKACTIVITY_HSIC_P2_480M_GFCLK_MASK		BITFIELD(21, 21)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
185
#define OMAP4430_CLKACTIVITY_HSIC_P2_GFCLK_SHIFT		27
186 187 188
#define OMAP4430_CLKACTIVITY_HSIC_P2_GFCLK_MASK			BITFIELD(27, 27)

/* Used by CM_L3INIT_CLKSTCTRL */
189
#define OMAP4430_CLKACTIVITY_INIT_32K_GFCLK_SHIFT		31
190 191 192
#define OMAP4430_CLKACTIVITY_INIT_32K_GFCLK_MASK		BITFIELD(31, 31)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
193
#define OMAP4430_CLKACTIVITY_INIT_48MC_GFCLK_SHIFT		13
194 195 196
#define OMAP4430_CLKACTIVITY_INIT_48MC_GFCLK_MASK		BITFIELD(13, 13)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
197
#define OMAP4430_CLKACTIVITY_INIT_48M_GFCLK_SHIFT		12
198 199 200
#define OMAP4430_CLKACTIVITY_INIT_48M_GFCLK_MASK		BITFIELD(12, 12)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
201
#define OMAP4430_CLKACTIVITY_INIT_60M_P1_GFCLK_SHIFT		28
202 203 204
#define OMAP4430_CLKACTIVITY_INIT_60M_P1_GFCLK_MASK		BITFIELD(28, 28)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
205
#define OMAP4430_CLKACTIVITY_INIT_60M_P2_GFCLK_SHIFT		29
206 207 208
#define OMAP4430_CLKACTIVITY_INIT_60M_P2_GFCLK_MASK		BITFIELD(29, 29)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
209
#define OMAP4430_CLKACTIVITY_INIT_96M_GFCLK_SHIFT		11
210 211 212
#define OMAP4430_CLKACTIVITY_INIT_96M_GFCLK_MASK		BITFIELD(11, 11)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
213
#define OMAP4430_CLKACTIVITY_INIT_HSI_GFCLK_SHIFT		16
214 215 216
#define OMAP4430_CLKACTIVITY_INIT_HSI_GFCLK_MASK		BITFIELD(16, 16)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
217
#define OMAP4430_CLKACTIVITY_INIT_HSMMC1_GFCLK_SHIFT		17
218 219 220
#define OMAP4430_CLKACTIVITY_INIT_HSMMC1_GFCLK_MASK		BITFIELD(17, 17)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
221
#define OMAP4430_CLKACTIVITY_INIT_HSMMC2_GFCLK_SHIFT		18
222 223 224
#define OMAP4430_CLKACTIVITY_INIT_HSMMC2_GFCLK_MASK		BITFIELD(18, 18)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
225
#define OMAP4430_CLKACTIVITY_INIT_HSMMC6_GFCLK_SHIFT		19
226 227 228
#define OMAP4430_CLKACTIVITY_INIT_HSMMC6_GFCLK_MASK		BITFIELD(19, 19)

/* Used by CM_CAM_CLKSTCTRL */
229
#define OMAP4430_CLKACTIVITY_ISS_GCLK_SHIFT			8
230 231 232
#define OMAP4430_CLKACTIVITY_ISS_GCLK_MASK			BITFIELD(8, 8)

/* Used by CM_IVAHD_CLKSTCTRL */
233
#define OMAP4430_CLKACTIVITY_IVAHD_ROOT_CLK_SHIFT		8
234 235 236
#define OMAP4430_CLKACTIVITY_IVAHD_ROOT_CLK_MASK		BITFIELD(8, 8)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
237
#define OMAP4430_CLKACTIVITY_L3INIT_DPLL_ALWON_CLK_SHIFT	14
238 239 240
#define OMAP4430_CLKACTIVITY_L3INIT_DPLL_ALWON_CLK_MASK		BITFIELD(14, 14)

/* Used by CM_L3_1_CLKSTCTRL, CM_L3_1_CLKSTCTRL_RESTORE */
241
#define OMAP4430_CLKACTIVITY_L3_1_GICLK_SHIFT			8
242 243 244
#define OMAP4430_CLKACTIVITY_L3_1_GICLK_MASK			BITFIELD(8, 8)

/* Used by CM_L3_2_CLKSTCTRL, CM_L3_2_CLKSTCTRL_RESTORE */
245
#define OMAP4430_CLKACTIVITY_L3_2_GICLK_SHIFT			8
246 247 248
#define OMAP4430_CLKACTIVITY_L3_2_GICLK_MASK			BITFIELD(8, 8)

/* Used by CM_D2D_CLKSTCTRL */
249
#define OMAP4430_CLKACTIVITY_L3_D2D_GICLK_SHIFT			8
250 251 252
#define OMAP4430_CLKACTIVITY_L3_D2D_GICLK_MASK			BITFIELD(8, 8)

/* Used by CM_SDMA_CLKSTCTRL */
253
#define OMAP4430_CLKACTIVITY_L3_DMA_GICLK_SHIFT			8
254 255 256
#define OMAP4430_CLKACTIVITY_L3_DMA_GICLK_MASK			BITFIELD(8, 8)

/* Used by CM_DSS_CLKSTCTRL */
257
#define OMAP4430_CLKACTIVITY_L3_DSS_GICLK_SHIFT			8
258 259 260
#define OMAP4430_CLKACTIVITY_L3_DSS_GICLK_MASK			BITFIELD(8, 8)

/* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
261
#define OMAP4430_CLKACTIVITY_L3_EMIF_GICLK_SHIFT		8
262 263 264
#define OMAP4430_CLKACTIVITY_L3_EMIF_GICLK_MASK			BITFIELD(8, 8)

/* Used by CM_GFX_CLKSTCTRL */
265
#define OMAP4430_CLKACTIVITY_L3_GFX_GICLK_SHIFT			8
266 267 268
#define OMAP4430_CLKACTIVITY_L3_GFX_GICLK_MASK			BITFIELD(8, 8)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
269
#define OMAP4430_CLKACTIVITY_L3_INIT_GICLK_SHIFT		8
270 271 272
#define OMAP4430_CLKACTIVITY_L3_INIT_GICLK_MASK			BITFIELD(8, 8)

/* Used by CM_L3INSTR_CLKSTCTRL */
273
#define OMAP4430_CLKACTIVITY_L3_INSTR_GICLK_SHIFT		8
274 275 276
#define OMAP4430_CLKACTIVITY_L3_INSTR_GICLK_MASK		BITFIELD(8, 8)

/* Used by CM_L4SEC_CLKSTCTRL */
277
#define OMAP4430_CLKACTIVITY_L3_SECURE_GICLK_SHIFT		8
278 279 280
#define OMAP4430_CLKACTIVITY_L3_SECURE_GICLK_MASK		BITFIELD(8, 8)

/* Used by CM_ALWON_CLKSTCTRL */
281
#define OMAP4430_CLKACTIVITY_L4_AO_ICLK_SHIFT			8
282 283 284
#define OMAP4430_CLKACTIVITY_L4_AO_ICLK_MASK			BITFIELD(8, 8)

/* Used by CM_CEFUSE_CLKSTCTRL */
285
#define OMAP4430_CLKACTIVITY_L4_CEFUSE_GICLK_SHIFT		8
286 287 288
#define OMAP4430_CLKACTIVITY_L4_CEFUSE_GICLK_MASK		BITFIELD(8, 8)

/* Used by CM_L4CFG_CLKSTCTRL, CM_L4CFG_CLKSTCTRL_RESTORE */
289
#define OMAP4430_CLKACTIVITY_L4_CFG_GICLK_SHIFT			8
290 291 292
#define OMAP4430_CLKACTIVITY_L4_CFG_GICLK_MASK			BITFIELD(8, 8)

/* Used by CM_D2D_CLKSTCTRL */
293
#define OMAP4430_CLKACTIVITY_L4_D2D_GICLK_SHIFT			9
294 295 296
#define OMAP4430_CLKACTIVITY_L4_D2D_GICLK_MASK			BITFIELD(9, 9)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
297
#define OMAP4430_CLKACTIVITY_L4_INIT_GICLK_SHIFT		9
298 299 300
#define OMAP4430_CLKACTIVITY_L4_INIT_GICLK_MASK			BITFIELD(9, 9)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
301
#define OMAP4430_CLKACTIVITY_L4_PER_GICLK_SHIFT			8
302 303 304
#define OMAP4430_CLKACTIVITY_L4_PER_GICLK_MASK			BITFIELD(8, 8)

/* Used by CM_L4SEC_CLKSTCTRL */
305
#define OMAP4430_CLKACTIVITY_L4_SECURE_GICLK_SHIFT		9
306 307 308
#define OMAP4430_CLKACTIVITY_L4_SECURE_GICLK_MASK		BITFIELD(9, 9)

/* Used by CM_WKUP_CLKSTCTRL */
309
#define OMAP4430_CLKACTIVITY_L4_WKUP_GICLK_SHIFT		12
310 311 312
#define OMAP4430_CLKACTIVITY_L4_WKUP_GICLK_MASK			BITFIELD(12, 12)

/* Used by CM_MPU_CLKSTCTRL, CM_MPU_CLKSTCTRL_RESTORE */
313
#define OMAP4430_CLKACTIVITY_MPU_DPLL_CLK_SHIFT			8
314 315 316
#define OMAP4430_CLKACTIVITY_MPU_DPLL_CLK_MASK			BITFIELD(8, 8)

/* Used by CM1_ABE_CLKSTCTRL */
317
#define OMAP4430_CLKACTIVITY_OCP_ABE_GICLK_SHIFT		9
318 319 320
#define OMAP4430_CLKACTIVITY_OCP_ABE_GICLK_MASK			BITFIELD(9, 9)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
321
#define OMAP4430_CLKACTIVITY_PER_24MC_GFCLK_SHIFT		16
322 323 324
#define OMAP4430_CLKACTIVITY_PER_24MC_GFCLK_MASK		BITFIELD(16, 16)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
325
#define OMAP4430_CLKACTIVITY_PER_32K_GFCLK_SHIFT		17
326 327 328
#define OMAP4430_CLKACTIVITY_PER_32K_GFCLK_MASK			BITFIELD(17, 17)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
329
#define OMAP4430_CLKACTIVITY_PER_48M_GFCLK_SHIFT		18
330 331 332
#define OMAP4430_CLKACTIVITY_PER_48M_GFCLK_MASK			BITFIELD(18, 18)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
333
#define OMAP4430_CLKACTIVITY_PER_96M_GFCLK_SHIFT		19
334 335 336
#define OMAP4430_CLKACTIVITY_PER_96M_GFCLK_MASK			BITFIELD(19, 19)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
337
#define OMAP4430_CLKACTIVITY_PER_ABE_24M_GFCLK_SHIFT		25
338 339 340
#define OMAP4430_CLKACTIVITY_PER_ABE_24M_GFCLK_MASK		BITFIELD(25, 25)

/* Used by CM_EMU_CLKSTCTRL */
341
#define OMAP4430_CLKACTIVITY_PER_DPLL_EMU_CLK_SHIFT		10
342 343 344
#define OMAP4430_CLKACTIVITY_PER_DPLL_EMU_CLK_MASK		BITFIELD(10, 10)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
345
#define OMAP4430_CLKACTIVITY_PER_MCASP2_GFCLK_SHIFT		20
346 347 348
#define OMAP4430_CLKACTIVITY_PER_MCASP2_GFCLK_MASK		BITFIELD(20, 20)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
349
#define OMAP4430_CLKACTIVITY_PER_MCASP3_GFCLK_SHIFT		21
350 351 352
#define OMAP4430_CLKACTIVITY_PER_MCASP3_GFCLK_MASK		BITFIELD(21, 21)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
353
#define OMAP4430_CLKACTIVITY_PER_MCBSP4_GFCLK_SHIFT		22
354 355 356
#define OMAP4430_CLKACTIVITY_PER_MCBSP4_GFCLK_MASK		BITFIELD(22, 22)

/* Used by CM_L4PER_CLKSTCTRL, CM_L4PER_CLKSTCTRL_RESTORE */
357
#define OMAP4430_CLKACTIVITY_PER_SYS_GFCLK_SHIFT		24
358 359 360
#define OMAP4430_CLKACTIVITY_PER_SYS_GFCLK_MASK			BITFIELD(24, 24)

/* Used by CM_MEMIF_CLKSTCTRL, CM_MEMIF_CLKSTCTRL_RESTORE */
361
#define OMAP4430_CLKACTIVITY_PHY_ROOT_CLK_SHIFT			10
362 363 364
#define OMAP4430_CLKACTIVITY_PHY_ROOT_CLK_MASK			BITFIELD(10, 10)

/* Used by CM_GFX_CLKSTCTRL */
365
#define OMAP4430_CLKACTIVITY_SGX_GFCLK_SHIFT			9
366 367 368
#define OMAP4430_CLKACTIVITY_SGX_GFCLK_MASK			BITFIELD(9, 9)

/* Used by CM_ALWON_CLKSTCTRL */
369
#define OMAP4430_CLKACTIVITY_SR_CORE_SYSCLK_SHIFT		11
370 371 372
#define OMAP4430_CLKACTIVITY_SR_CORE_SYSCLK_MASK		BITFIELD(11, 11)

/* Used by CM_ALWON_CLKSTCTRL */
373
#define OMAP4430_CLKACTIVITY_SR_IVA_SYSCLK_SHIFT		10
374 375 376
#define OMAP4430_CLKACTIVITY_SR_IVA_SYSCLK_MASK			BITFIELD(10, 10)

/* Used by CM_ALWON_CLKSTCTRL */
377
#define OMAP4430_CLKACTIVITY_SR_MPU_SYSCLK_SHIFT		9
378 379 380
#define OMAP4430_CLKACTIVITY_SR_MPU_SYSCLK_MASK			BITFIELD(9, 9)

/* Used by CM_WKUP_CLKSTCTRL */
381
#define OMAP4430_CLKACTIVITY_SYS_CLK_SHIFT			8
382 383 384
#define OMAP4430_CLKACTIVITY_SYS_CLK_MASK			BITFIELD(8, 8)

/* Used by CM_TESLA_CLKSTCTRL */
385
#define OMAP4430_CLKACTIVITY_TESLA_ROOT_CLK_SHIFT		8
386 387 388
#define OMAP4430_CLKACTIVITY_TESLA_ROOT_CLK_MASK		BITFIELD(8, 8)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
389
#define OMAP4430_CLKACTIVITY_TLL_CH0_GFCLK_SHIFT		22
390 391 392
#define OMAP4430_CLKACTIVITY_TLL_CH0_GFCLK_MASK			BITFIELD(22, 22)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
393
#define OMAP4430_CLKACTIVITY_TLL_CH1_GFCLK_SHIFT		23
394 395 396
#define OMAP4430_CLKACTIVITY_TLL_CH1_GFCLK_MASK			BITFIELD(23, 23)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
397
#define OMAP4430_CLKACTIVITY_TLL_CH2_GFCLK_SHIFT		24
398 399 400
#define OMAP4430_CLKACTIVITY_TLL_CH2_GFCLK_MASK			BITFIELD(24, 24)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
401
#define OMAP4430_CLKACTIVITY_USB_DPLL_HS_CLK_SHIFT		15
402 403 404
#define OMAP4430_CLKACTIVITY_USB_DPLL_HS_CLK_MASK		BITFIELD(15, 15)

/* Used by CM_WKUP_CLKSTCTRL */
405
#define OMAP4430_CLKACTIVITY_USIM_GFCLK_SHIFT			10
406 407 408
#define OMAP4430_CLKACTIVITY_USIM_GFCLK_MASK			BITFIELD(10, 10)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
409
#define OMAP4430_CLKACTIVITY_UTMI_P3_GFCLK_SHIFT		30
410 411 412
#define OMAP4430_CLKACTIVITY_UTMI_P3_GFCLK_MASK			BITFIELD(30, 30)

/* Used by CM_L3INIT_CLKSTCTRL, CM_L3INIT_CLKSTCTRL_RESTORE */
413
#define OMAP4430_CLKACTIVITY_UTMI_ROOT_GFCLK_SHIFT		25
414 415 416
#define OMAP4430_CLKACTIVITY_UTMI_ROOT_GFCLK_MASK		BITFIELD(25, 25)

/* Used by CM_WKUP_CLKSTCTRL */
417
#define OMAP4430_CLKACTIVITY_WKUP_32K_GFCLK_SHIFT		11
418 419 420 421 422 423 424 425 426 427 428
#define OMAP4430_CLKACTIVITY_WKUP_32K_GFCLK_MASK		BITFIELD(11, 11)

/*
 * Used by CM_WKUP_TIMER1_CLKCTRL, CM_L4PER_DMTIMER10_CLKCTRL,
 * CM_L4PER_DMTIMER11_CLKCTRL, CM_L4PER_DMTIMER2_CLKCTRL,
 * CM_L4PER_DMTIMER3_CLKCTRL, CM_L4PER_DMTIMER4_CLKCTRL,
 * CM_L4PER_DMTIMER9_CLKCTRL, CM_L4PER_MCASP2_CLKCTRL, CM_L4PER_MCASP3_CLKCTRL,
 * CM_L3INIT_MMC1_CLKCTRL, CM_L3INIT_MMC2_CLKCTRL, CM_L3INIT_MMC6_CLKCTRL,
 * CM1_ABE_TIMER5_CLKCTRL, CM1_ABE_TIMER6_CLKCTRL, CM1_ABE_TIMER7_CLKCTRL,
 * CM1_ABE_TIMER8_CLKCTRL
 */
429
#define OMAP4430_CLKSEL_SHIFT					24
430 431 432 433 434 435 436
#define OMAP4430_CLKSEL_MASK					BITFIELD(24, 24)

/*
 * Renamed from CLKSEL Used by CM_ABE_DSS_SYS_CLKSEL, CM_ABE_PLL_REF_CLKSEL,
 * CM_DPLL_SYS_REF_CLKSEL, CM_L4_WKUP_CLKSEL, CM_CLKSEL_DUCATI_ISS_ROOT,
 * CM_CLKSEL_USB_60MHZ
 */
437
#define OMAP4430_CLKSEL_0_0_SHIFT				0
438 439 440
#define OMAP4430_CLKSEL_0_0_MASK				BITFIELD(0, 0)

/* Renamed from CLKSEL Used by CM_BYPCLK_DPLL_IVA, CM_BYPCLK_DPLL_MPU */
441
#define OMAP4430_CLKSEL_0_1_SHIFT				0
442 443 444
#define OMAP4430_CLKSEL_0_1_MASK				BITFIELD(0, 1)

/* Renamed from CLKSEL Used by CM_L3INIT_HSI_CLKCTRL */
445
#define OMAP4430_CLKSEL_24_25_SHIFT				24
446 447 448
#define OMAP4430_CLKSEL_24_25_MASK				BITFIELD(24, 25)

/* Used by CM_L3INIT_USB_OTG_CLKCTRL */
449
#define OMAP4430_CLKSEL_60M_SHIFT				24
450 451 452
#define OMAP4430_CLKSEL_60M_MASK				BITFIELD(24, 24)

/* Used by CM1_ABE_AESS_CLKCTRL */
453
#define OMAP4430_CLKSEL_AESS_FCLK_SHIFT				24
454 455 456
#define OMAP4430_CLKSEL_AESS_FCLK_MASK				BITFIELD(24, 24)

/* Used by CM_CLKSEL_CORE_RESTORE, CM_CLKSEL_CORE */
457
#define OMAP4430_CLKSEL_CORE_SHIFT				0
458 459 460
#define OMAP4430_CLKSEL_CORE_MASK				BITFIELD(0, 0)

/* Renamed from CLKSEL_CORE Used by CM_SHADOW_FREQ_CONFIG2 */
461
#define OMAP4430_CLKSEL_CORE_1_1_SHIFT				1
462 463 464
#define OMAP4430_CLKSEL_CORE_1_1_MASK				BITFIELD(1, 1)

/* Used by CM_WKUP_USIM_CLKCTRL */
465
#define OMAP4430_CLKSEL_DIV_SHIFT				24
466 467 468
#define OMAP4430_CLKSEL_DIV_MASK				BITFIELD(24, 24)

/* Used by CM_CAM_FDIF_CLKCTRL */
469
#define OMAP4430_CLKSEL_FCLK_SHIFT				24
470 471 472
#define OMAP4430_CLKSEL_FCLK_MASK				BITFIELD(24, 25)

/* Used by CM_L4PER_MCBSP4_CLKCTRL */
473
#define OMAP4430_CLKSEL_INTERNAL_SOURCE_SHIFT			25
474 475 476 477 478 479 480
#define OMAP4430_CLKSEL_INTERNAL_SOURCE_MASK			BITFIELD(25, 25)

/*
 * Renamed from CLKSEL_INTERNAL_SOURCE Used by CM1_ABE_DMIC_CLKCTRL,
 * CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL,
 * CM1_ABE_MCBSP3_CLKCTRL
 */
481
#define OMAP4430_CLKSEL_INTERNAL_SOURCE_CM1_ABE_DMIC_SHIFT	26
482 483 484
#define OMAP4430_CLKSEL_INTERNAL_SOURCE_CM1_ABE_DMIC_MASK	BITFIELD(26, 27)

/* Used by CM_CLKSEL_CORE_RESTORE, CM_CLKSEL_CORE */
485
#define OMAP4430_CLKSEL_L3_SHIFT				4
486 487 488
#define OMAP4430_CLKSEL_L3_MASK					BITFIELD(4, 4)

/* Renamed from CLKSEL_L3 Used by CM_SHADOW_FREQ_CONFIG2 */
489
#define OMAP4430_CLKSEL_L3_SHADOW_SHIFT				2
490 491 492
#define OMAP4430_CLKSEL_L3_SHADOW_MASK				BITFIELD(2, 2)

/* Used by CM_CLKSEL_CORE_RESTORE, CM_CLKSEL_CORE */
493
#define OMAP4430_CLKSEL_L4_SHIFT				8
494 495 496
#define OMAP4430_CLKSEL_L4_MASK					BITFIELD(8, 8)

/* Used by CM_CLKSEL_ABE */
497
#define OMAP4430_CLKSEL_OPP_SHIFT				0
498 499 500
#define OMAP4430_CLKSEL_OPP_MASK				BITFIELD(0, 1)

/* Used by CM_GFX_GFX_CLKCTRL */
501
#define OMAP4430_CLKSEL_PER_192M_SHIFT				25
502 503 504
#define OMAP4430_CLKSEL_PER_192M_MASK				BITFIELD(25, 26)

/* Used by CM_EMU_DEBUGSS_CLKCTRL */
505
#define OMAP4430_CLKSEL_PMD_STM_CLK_SHIFT			27
506 507 508
#define OMAP4430_CLKSEL_PMD_STM_CLK_MASK			BITFIELD(27, 29)

/* Used by CM_EMU_DEBUGSS_CLKCTRL */
509
#define OMAP4430_CLKSEL_PMD_TRACE_CLK_SHIFT			24
510 511 512
#define OMAP4430_CLKSEL_PMD_TRACE_CLK_MASK			BITFIELD(24, 26)

/* Used by CM_GFX_GFX_CLKCTRL */
513
#define OMAP4430_CLKSEL_SGX_FCLK_SHIFT				24
514 515 516 517 518 519
#define OMAP4430_CLKSEL_SGX_FCLK_MASK				BITFIELD(24, 24)

/*
 * Used by CM1_ABE_DMIC_CLKCTRL, CM1_ABE_MCASP_CLKCTRL, CM1_ABE_MCBSP1_CLKCTRL,
 * CM1_ABE_MCBSP2_CLKCTRL, CM1_ABE_MCBSP3_CLKCTRL
 */
520
#define OMAP4430_CLKSEL_SOURCE_SHIFT				24
521 522 523
#define OMAP4430_CLKSEL_SOURCE_MASK				BITFIELD(24, 25)

/* Renamed from CLKSEL_SOURCE Used by CM_L4PER_MCBSP4_CLKCTRL */
524
#define OMAP4430_CLKSEL_SOURCE_24_24_SHIFT			24
525 526 527
#define OMAP4430_CLKSEL_SOURCE_24_24_MASK			BITFIELD(24, 24)

/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
528
#define OMAP4430_CLKSEL_UTMI_P1_SHIFT				24
529 530 531
#define OMAP4430_CLKSEL_UTMI_P1_MASK				BITFIELD(24, 24)

/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
532
#define OMAP4430_CLKSEL_UTMI_P2_SHIFT				25
533 534 535 536 537 538 539 540 541 542 543 544 545 546
#define OMAP4430_CLKSEL_UTMI_P2_MASK				BITFIELD(25, 25)

/*
 * Used by CM_WKUP_CLKSTCTRL, CM_EMU_CLKSTCTRL, CM_D2D_CLKSTCTRL,
 * CM_DUCATI_CLKSTCTRL, CM_L3INSTR_CLKSTCTRL, CM_L3_1_CLKSTCTRL,
 * CM_L3_2_CLKSTCTRL, CM_L4CFG_CLKSTCTRL, CM_MEMIF_CLKSTCTRL,
 * CM_SDMA_CLKSTCTRL, CM_GFX_CLKSTCTRL, CM_L4PER_CLKSTCTRL, CM_L4SEC_CLKSTCTRL,
 * CM_L3INIT_CLKSTCTRL, CM_CAM_CLKSTCTRL, CM_CEFUSE_CLKSTCTRL,
 * CM_L3INIT_CLKSTCTRL_RESTORE, CM_L3_1_CLKSTCTRL_RESTORE,
 * CM_L3_2_CLKSTCTRL_RESTORE, CM_L4CFG_CLKSTCTRL_RESTORE,
 * CM_L4PER_CLKSTCTRL_RESTORE, CM_MEMIF_CLKSTCTRL_RESTORE, CM_ALWON_CLKSTCTRL,
 * CM_IVAHD_CLKSTCTRL, CM_DSS_CLKSTCTRL, CM_MPU_CLKSTCTRL, CM_TESLA_CLKSTCTRL,
 * CM1_ABE_CLKSTCTRL, CM_MPU_CLKSTCTRL_RESTORE
 */
547
#define OMAP4430_CLKTRCTRL_SHIFT				0
548 549 550
#define OMAP4430_CLKTRCTRL_MASK					BITFIELD(0, 1)

/* Used by CM_EMU_OVERRIDE_DPLL_CORE */
551
#define OMAP4430_CORE_DPLL_EMU_DIV_SHIFT			0
552 553 554
#define OMAP4430_CORE_DPLL_EMU_DIV_MASK				BITFIELD(0, 6)

/* Used by CM_EMU_OVERRIDE_DPLL_CORE */
555
#define OMAP4430_CORE_DPLL_EMU_MULT_SHIFT			8
556 557 558
#define OMAP4430_CORE_DPLL_EMU_MULT_MASK			BITFIELD(8, 18)

/* Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP */
559
#define OMAP4430_D2D_DYNDEP_SHIFT				18
560 561 562
#define OMAP4430_D2D_DYNDEP_MASK				BITFIELD(18, 18)

/* Used by CM_MPU_STATICDEP */
563
#define OMAP4430_D2D_STATDEP_SHIFT				18
564 565 566 567 568 569 570 571 572
#define OMAP4430_D2D_STATDEP_MASK				BITFIELD(18, 18)

/*
 * Used by CM_SSC_DELTAMSTEP_DPLL_PER, CM_SSC_DELTAMSTEP_DPLL_UNIPRO,
 * CM_SSC_DELTAMSTEP_DPLL_USB, CM_SSC_DELTAMSTEP_DPLL_CORE_RESTORE,
 * CM_SSC_DELTAMSTEP_DPLL_ABE, CM_SSC_DELTAMSTEP_DPLL_CORE,
 * CM_SSC_DELTAMSTEP_DPLL_DDRPHY, CM_SSC_DELTAMSTEP_DPLL_IVA,
 * CM_SSC_DELTAMSTEP_DPLL_MPU
 */
573
#define OMAP4430_DELTAMSTEP_SHIFT				0
574 575 576
#define OMAP4430_DELTAMSTEP_MASK				BITFIELD(0, 19)

/* Used by CM_SHADOW_FREQ_CONFIG1_RESTORE, CM_SHADOW_FREQ_CONFIG1 */
577
#define OMAP4430_DLL_OVERRIDE_SHIFT				2
578 579 580
#define OMAP4430_DLL_OVERRIDE_MASK				BITFIELD(2, 2)

/* Renamed from DLL_OVERRIDE Used by CM_DLL_CTRL */
581
#define OMAP4430_DLL_OVERRIDE_0_0_SHIFT				0
582 583 584
#define OMAP4430_DLL_OVERRIDE_0_0_MASK				BITFIELD(0, 0)

/* Used by CM_SHADOW_FREQ_CONFIG1_RESTORE, CM_SHADOW_FREQ_CONFIG1 */
585
#define OMAP4430_DLL_RESET_SHIFT				3
586 587 588 589 590 591 592
#define OMAP4430_DLL_RESET_MASK					BITFIELD(3, 3)

/*
 * Used by CM_CLKSEL_DPLL_PER, CM_CLKSEL_DPLL_UNIPRO, CM_CLKSEL_DPLL_USB,
 * CM_CLKSEL_DPLL_CORE_RESTORE, CM_CLKSEL_DPLL_ABE, CM_CLKSEL_DPLL_CORE,
 * CM_CLKSEL_DPLL_DDRPHY, CM_CLKSEL_DPLL_IVA, CM_CLKSEL_DPLL_MPU
 */
593
#define OMAP4430_DPLL_BYP_CLKSEL_SHIFT				23
594 595 596
#define OMAP4430_DPLL_BYP_CLKSEL_MASK				BITFIELD(23, 23)

/* Used by CM_CLKDCOLDO_DPLL_USB */
597
#define OMAP4430_DPLL_CLKDCOLDO_GATE_CTRL_SHIFT			8
598 599 600
#define OMAP4430_DPLL_CLKDCOLDO_GATE_CTRL_MASK			BITFIELD(8, 8)

/* Used by CM_CLKSEL_DPLL_CORE_RESTORE, CM_CLKSEL_DPLL_CORE */
601
#define OMAP4430_DPLL_CLKOUTHIF_CLKSEL_SHIFT			20
602 603 604 605 606 607
#define OMAP4430_DPLL_CLKOUTHIF_CLKSEL_MASK			BITFIELD(20, 20)

/*
 * Used by CM_DIV_M3_DPLL_PER, CM_DIV_M3_DPLL_CORE_RESTORE, CM_DIV_M3_DPLL_ABE,
 * CM_DIV_M3_DPLL_CORE
 */
608
#define OMAP4430_DPLL_CLKOUTHIF_DIV_SHIFT			0
609 610 611 612 613 614
#define OMAP4430_DPLL_CLKOUTHIF_DIV_MASK			BITFIELD(0, 4)

/*
 * Used by CM_DIV_M3_DPLL_PER, CM_DIV_M3_DPLL_CORE_RESTORE, CM_DIV_M3_DPLL_ABE,
 * CM_DIV_M3_DPLL_CORE
 */
615
#define OMAP4430_DPLL_CLKOUTHIF_DIVCHACK_SHIFT			5
616 617 618 619 620 621
#define OMAP4430_DPLL_CLKOUTHIF_DIVCHACK_MASK			BITFIELD(5, 5)

/*
 * Used by CM_DIV_M3_DPLL_PER, CM_DIV_M3_DPLL_CORE_RESTORE, CM_DIV_M3_DPLL_ABE,
 * CM_DIV_M3_DPLL_CORE
 */
622
#define OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_SHIFT			8
623 624 625
#define OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_MASK			BITFIELD(8, 8)

/* Used by CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO, CM_DIV_M2_DPLL_ABE */
626
#define OMAP4430_DPLL_CLKOUTX2_GATE_CTRL_SHIFT			10
627 628 629 630 631 632 633
#define OMAP4430_DPLL_CLKOUTX2_GATE_CTRL_MASK			BITFIELD(10, 10)

/*
 * Used by CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO,
 * CM_DIV_M2_DPLL_CORE_RESTORE, CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE,
 * CM_DIV_M2_DPLL_DDRPHY, CM_DIV_M2_DPLL_MPU
 */
634
#define OMAP4430_DPLL_CLKOUT_DIV_SHIFT				0
635 636 637
#define OMAP4430_DPLL_CLKOUT_DIV_MASK				BITFIELD(0, 4)

/* Renamed from DPLL_CLKOUT_DIV Used by CM_DIV_M2_DPLL_USB */
638
#define OMAP4430_DPLL_CLKOUT_DIV_0_6_SHIFT			0
639 640 641 642 643 644 645
#define OMAP4430_DPLL_CLKOUT_DIV_0_6_MASK			BITFIELD(0, 6)

/*
 * Used by CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO,
 * CM_DIV_M2_DPLL_CORE_RESTORE, CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE,
 * CM_DIV_M2_DPLL_DDRPHY, CM_DIV_M2_DPLL_MPU
 */
646
#define OMAP4430_DPLL_CLKOUT_DIVCHACK_SHIFT			5
647 648 649
#define OMAP4430_DPLL_CLKOUT_DIVCHACK_MASK			BITFIELD(5, 5)

/* Renamed from DPLL_CLKOUT_DIVCHACK Used by CM_DIV_M2_DPLL_USB */
650
#define OMAP4430_DPLL_CLKOUT_DIVCHACK_M2_USB_SHIFT		7
651 652 653 654 655 656 657
#define OMAP4430_DPLL_CLKOUT_DIVCHACK_M2_USB_MASK		BITFIELD(7, 7)

/*
 * Used by CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_USB, CM_DIV_M2_DPLL_CORE_RESTORE,
 * CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE, CM_DIV_M2_DPLL_DDRPHY,
 * CM_DIV_M2_DPLL_MPU
 */
658
#define OMAP4430_DPLL_CLKOUT_GATE_CTRL_SHIFT			8
659 660 661
#define OMAP4430_DPLL_CLKOUT_GATE_CTRL_MASK			BITFIELD(8, 8)

/* Used by CM_SHADOW_FREQ_CONFIG1_RESTORE, CM_SHADOW_FREQ_CONFIG1 */
662
#define OMAP4430_DPLL_CORE_DPLL_EN_SHIFT			8
663 664 665
#define OMAP4430_DPLL_CORE_DPLL_EN_MASK				BITFIELD(8, 10)

/* Used by CM_SHADOW_FREQ_CONFIG1_RESTORE, CM_SHADOW_FREQ_CONFIG1 */
666
#define OMAP4430_DPLL_CORE_M2_DIV_SHIFT				11
667 668 669
#define OMAP4430_DPLL_CORE_M2_DIV_MASK				BITFIELD(11, 15)

/* Used by CM_SHADOW_FREQ_CONFIG2 */
670
#define OMAP4430_DPLL_CORE_M5_DIV_SHIFT				3
671 672 673
#define OMAP4430_DPLL_CORE_M5_DIV_MASK				BITFIELD(3, 7)

/* Used by CM_SHADOW_FREQ_CONFIG1_RESTORE, CM_SHADOW_FREQ_CONFIG1 */
674
#define OMAP4430_DPLL_CORE_SYS_REF_CLKSEL_SHIFT			1
675 676 677 678 679 680 681
#define OMAP4430_DPLL_CORE_SYS_REF_CLKSEL_MASK			BITFIELD(1, 1)

/*
 * Used by CM_CLKSEL_DPLL_PER, CM_CLKSEL_DPLL_UNIPRO,
 * CM_CLKSEL_DPLL_CORE_RESTORE, CM_CLKSEL_DPLL_ABE, CM_CLKSEL_DPLL_CORE,
 * CM_CLKSEL_DPLL_DDRPHY, CM_CLKSEL_DPLL_IVA, CM_CLKSEL_DPLL_MPU
 */
682
#define OMAP4430_DPLL_DIV_SHIFT					0
683 684 685
#define OMAP4430_DPLL_DIV_MASK					BITFIELD(0, 6)

/* Renamed from DPLL_DIV Used by CM_CLKSEL_DPLL_USB */
686
#define OMAP4430_DPLL_DIV_0_7_SHIFT				0
687 688 689 690 691 692 693
#define OMAP4430_DPLL_DIV_0_7_MASK				BITFIELD(0, 7)

/*
 * Used by CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_USB,
 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
 * CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU
 */
694
#define OMAP4430_DPLL_DRIFTGUARD_EN_SHIFT			8
695 696 697
#define OMAP4430_DPLL_DRIFTGUARD_EN_MASK			BITFIELD(8, 8)

/* Renamed from DPLL_DRIFTGUARD_EN Used by CM_CLKMODE_DPLL_UNIPRO */
698
#define OMAP4430_DPLL_DRIFTGUARD_EN_3_3_SHIFT			3
699 700 701 702 703 704 705
#define OMAP4430_DPLL_DRIFTGUARD_EN_3_3_MASK			BITFIELD(3, 3)

/*
 * Used by CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO, CM_CLKMODE_DPLL_USB,
 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
 * CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU
 */
706
#define OMAP4430_DPLL_EN_SHIFT					0
707 708 709 710 711 712 713
#define OMAP4430_DPLL_EN_MASK					BITFIELD(0, 2)

/*
 * Used by CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO,
 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
 * CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU
 */
714
#define OMAP4430_DPLL_LPMODE_EN_SHIFT				10
715 716 717 718 719 720 721
#define OMAP4430_DPLL_LPMODE_EN_MASK				BITFIELD(10, 10)

/*
 * Used by CM_CLKSEL_DPLL_PER, CM_CLKSEL_DPLL_UNIPRO,
 * CM_CLKSEL_DPLL_CORE_RESTORE, CM_CLKSEL_DPLL_ABE, CM_CLKSEL_DPLL_CORE,
 * CM_CLKSEL_DPLL_DDRPHY, CM_CLKSEL_DPLL_IVA, CM_CLKSEL_DPLL_MPU
 */
722
#define OMAP4430_DPLL_MULT_SHIFT				8
723 724 725
#define OMAP4430_DPLL_MULT_MASK					BITFIELD(8, 18)

/* Renamed from DPLL_MULT Used by CM_CLKSEL_DPLL_USB */
726
#define OMAP4430_DPLL_MULT_USB_SHIFT				8
727 728 729 730 731 732 733
#define OMAP4430_DPLL_MULT_USB_MASK				BITFIELD(8, 19)

/*
 * Used by CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO,
 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
 * CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU
 */
734
#define OMAP4430_DPLL_REGM4XEN_SHIFT				11
735 736 737
#define OMAP4430_DPLL_REGM4XEN_MASK				BITFIELD(11, 11)

/* Used by CM_CLKSEL_DPLL_USB */
738
#define OMAP4430_DPLL_SD_DIV_SHIFT				24
739 740 741 742 743 744 745
#define OMAP4430_DPLL_SD_DIV_MASK				BITFIELD(24, 31)

/*
 * Used by CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO, CM_CLKMODE_DPLL_USB,
 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
 * CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU
 */
746
#define OMAP4430_DPLL_SSC_ACK_SHIFT				13
747 748 749 750 751 752 753
#define OMAP4430_DPLL_SSC_ACK_MASK				BITFIELD(13, 13)

/*
 * Used by CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO, CM_CLKMODE_DPLL_USB,
 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
 * CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU
 */
754
#define OMAP4430_DPLL_SSC_DOWNSPREAD_SHIFT			14
755 756 757 758 759 760 761
#define OMAP4430_DPLL_SSC_DOWNSPREAD_MASK			BITFIELD(14, 14)

/*
 * Used by CM_CLKMODE_DPLL_PER, CM_CLKMODE_DPLL_UNIPRO, CM_CLKMODE_DPLL_USB,
 * CM_CLKMODE_DPLL_CORE_RESTORE, CM_CLKMODE_DPLL_ABE, CM_CLKMODE_DPLL_CORE,
 * CM_CLKMODE_DPLL_DDRPHY, CM_CLKMODE_DPLL_IVA, CM_CLKMODE_DPLL_MPU
 */
762
#define OMAP4430_DPLL_SSC_EN_SHIFT				12
763 764 765
#define OMAP4430_DPLL_SSC_EN_MASK				BITFIELD(12, 12)

/* Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, CM_L4PER_DYNAMICDEP */
766
#define OMAP4430_DSS_DYNDEP_SHIFT				8
767 768 769 770 771 772
#define OMAP4430_DSS_DYNDEP_MASK				BITFIELD(8, 8)

/*
 * Used by CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE,
 * CM_MPU_STATICDEP
 */
773
#define OMAP4430_DSS_STATDEP_SHIFT				8
774 775 776
#define OMAP4430_DSS_STATDEP_MASK				BITFIELD(8, 8)

/* Used by CM_L3_2_DYNAMICDEP */
777
#define OMAP4430_DUCATI_DYNDEP_SHIFT				0
778 779 780
#define OMAP4430_DUCATI_DYNDEP_MASK				BITFIELD(0, 0)

/* Used by CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE, CM_MPU_STATICDEP */
781
#define OMAP4430_DUCATI_STATDEP_SHIFT				0
782 783 784
#define OMAP4430_DUCATI_STATDEP_MASK				BITFIELD(0, 0)

/* Used by CM_SHADOW_FREQ_CONFIG1_RESTORE, CM_SHADOW_FREQ_CONFIG1 */
785
#define OMAP4430_FREQ_UPDATE_SHIFT				0
786 787 788
#define OMAP4430_FREQ_UPDATE_MASK				BITFIELD(0, 0)

/* Used by CM_L3_2_DYNAMICDEP */
789
#define OMAP4430_GFX_DYNDEP_SHIFT				10
790 791 792
#define OMAP4430_GFX_DYNDEP_MASK				BITFIELD(10, 10)

/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP */
793
#define OMAP4430_GFX_STATDEP_SHIFT				10
794 795 796
#define OMAP4430_GFX_STATDEP_MASK				BITFIELD(10, 10)

/* Used by CM_SHADOW_FREQ_CONFIG2 */
797
#define OMAP4430_GPMC_FREQ_UPDATE_SHIFT				0
798 799 800 801 802 803
#define OMAP4430_GPMC_FREQ_UPDATE_MASK				BITFIELD(0, 0)

/*
 * Used by CM_DIV_M4_DPLL_PER, CM_DIV_M4_DPLL_CORE_RESTORE,
 * CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA
 */
804
#define OMAP4430_HSDIVIDER_CLKOUT1_DIV_SHIFT			0
805 806 807 808 809 810
#define OMAP4430_HSDIVIDER_CLKOUT1_DIV_MASK			BITFIELD(0, 4)

/*
 * Used by CM_DIV_M4_DPLL_PER, CM_DIV_M4_DPLL_CORE_RESTORE,
 * CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA
 */
811
#define OMAP4430_HSDIVIDER_CLKOUT1_DIVCHACK_SHIFT		5
812 813 814 815 816 817
#define OMAP4430_HSDIVIDER_CLKOUT1_DIVCHACK_MASK		BITFIELD(5, 5)

/*
 * Used by CM_DIV_M4_DPLL_PER, CM_DIV_M4_DPLL_CORE_RESTORE,
 * CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA
 */
818
#define OMAP4430_HSDIVIDER_CLKOUT1_GATE_CTRL_SHIFT		8
819 820 821 822 823 824
#define OMAP4430_HSDIVIDER_CLKOUT1_GATE_CTRL_MASK		BITFIELD(8, 8)

/*
 * Used by CM_DIV_M4_DPLL_PER, CM_DIV_M4_DPLL_CORE_RESTORE,
 * CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA
 */
825
#define OMAP4430_HSDIVIDER_CLKOUT1_PWDN_SHIFT			12
826 827 828 829 830 831
#define OMAP4430_HSDIVIDER_CLKOUT1_PWDN_MASK			BITFIELD(12, 12)

/*
 * Used by CM_DIV_M5_DPLL_PER, CM_DIV_M5_DPLL_CORE_RESTORE,
 * CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA
 */
832
#define OMAP4430_HSDIVIDER_CLKOUT2_DIV_SHIFT			0
833 834 835 836 837 838
#define OMAP4430_HSDIVIDER_CLKOUT2_DIV_MASK			BITFIELD(0, 4)

/*
 * Used by CM_DIV_M5_DPLL_PER, CM_DIV_M5_DPLL_CORE_RESTORE,
 * CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA
 */
839
#define OMAP4430_HSDIVIDER_CLKOUT2_DIVCHACK_SHIFT		5
840 841 842 843 844 845
#define OMAP4430_HSDIVIDER_CLKOUT2_DIVCHACK_MASK		BITFIELD(5, 5)

/*
 * Used by CM_DIV_M5_DPLL_PER, CM_DIV_M5_DPLL_CORE_RESTORE,
 * CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA
 */
846
#define OMAP4430_HSDIVIDER_CLKOUT2_GATE_CTRL_SHIFT		8
847 848 849 850 851 852
#define OMAP4430_HSDIVIDER_CLKOUT2_GATE_CTRL_MASK		BITFIELD(8, 8)

/*
 * Used by CM_DIV_M5_DPLL_PER, CM_DIV_M5_DPLL_CORE_RESTORE,
 * CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA
 */
853
#define OMAP4430_HSDIVIDER_CLKOUT2_PWDN_SHIFT			12
854 855 856 857 858 859
#define OMAP4430_HSDIVIDER_CLKOUT2_PWDN_MASK			BITFIELD(12, 12)

/*
 * Used by CM_DIV_M6_DPLL_PER, CM_DIV_M6_DPLL_CORE_RESTORE,
 * CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_DDRPHY
 */
860
#define OMAP4430_HSDIVIDER_CLKOUT3_DIV_SHIFT			0
861 862 863 864 865 866
#define OMAP4430_HSDIVIDER_CLKOUT3_DIV_MASK			BITFIELD(0, 4)

/*
 * Used by CM_DIV_M6_DPLL_PER, CM_DIV_M6_DPLL_CORE_RESTORE,
 * CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_DDRPHY
 */
867
#define OMAP4430_HSDIVIDER_CLKOUT3_DIVCHACK_SHIFT		5
868 869 870 871 872 873
#define OMAP4430_HSDIVIDER_CLKOUT3_DIVCHACK_MASK		BITFIELD(5, 5)

/*
 * Used by CM_DIV_M6_DPLL_PER, CM_DIV_M6_DPLL_CORE_RESTORE,
 * CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_DDRPHY
 */
874
#define OMAP4430_HSDIVIDER_CLKOUT3_GATE_CTRL_SHIFT		8
875 876 877 878 879 880
#define OMAP4430_HSDIVIDER_CLKOUT3_GATE_CTRL_MASK		BITFIELD(8, 8)

/*
 * Used by CM_DIV_M6_DPLL_PER, CM_DIV_M6_DPLL_CORE_RESTORE,
 * CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_DDRPHY
 */
881
#define OMAP4430_HSDIVIDER_CLKOUT3_PWDN_SHIFT			12
882 883 884 885 886 887
#define OMAP4430_HSDIVIDER_CLKOUT3_PWDN_MASK			BITFIELD(12, 12)

/*
 * Used by CM_DIV_M7_DPLL_PER, CM_DIV_M7_DPLL_CORE_RESTORE,
 * CM_DIV_M7_DPLL_CORE
 */
888
#define OMAP4430_HSDIVIDER_CLKOUT4_DIV_SHIFT			0
889 890 891 892 893 894
#define OMAP4430_HSDIVIDER_CLKOUT4_DIV_MASK			BITFIELD(0, 4)

/*
 * Used by CM_DIV_M7_DPLL_PER, CM_DIV_M7_DPLL_CORE_RESTORE,
 * CM_DIV_M7_DPLL_CORE
 */
895
#define OMAP4430_HSDIVIDER_CLKOUT4_DIVCHACK_SHIFT		5
896 897 898 899 900 901
#define OMAP4430_HSDIVIDER_CLKOUT4_DIVCHACK_MASK		BITFIELD(5, 5)

/*
 * Used by CM_DIV_M7_DPLL_PER, CM_DIV_M7_DPLL_CORE_RESTORE,
 * CM_DIV_M7_DPLL_CORE
 */
902
#define OMAP4430_HSDIVIDER_CLKOUT4_GATE_CTRL_SHIFT		8
903 904 905 906 907 908
#define OMAP4430_HSDIVIDER_CLKOUT4_GATE_CTRL_MASK		BITFIELD(8, 8)

/*
 * Used by CM_DIV_M7_DPLL_PER, CM_DIV_M7_DPLL_CORE_RESTORE,
 * CM_DIV_M7_DPLL_CORE
 */
909
#define OMAP4430_HSDIVIDER_CLKOUT4_PWDN_SHIFT			12
910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964
#define OMAP4430_HSDIVIDER_CLKOUT4_PWDN_MASK			BITFIELD(12, 12)

/*
 * Used by PRM_PRM_PROFILING_CLKCTRL, CM_WKUP_GPIO1_CLKCTRL,
 * CM_WKUP_KEYBOARD_CLKCTRL, CM_WKUP_L4WKUP_CLKCTRL, CM_WKUP_RTC_CLKCTRL,
 * CM_WKUP_SARRAM_CLKCTRL, CM_WKUP_SYNCTIMER_CLKCTRL, CM_WKUP_TIMER12_CLKCTRL,
 * CM_WKUP_TIMER1_CLKCTRL, CM_WKUP_USIM_CLKCTRL, CM_WKUP_WDT1_CLKCTRL,
 * CM_WKUP_WDT2_CLKCTRL, CM_EMU_DEBUGSS_CLKCTRL, CM_D2D_MODEM_ICR_CLKCTRL,
 * CM_D2D_SAD2D_CLKCTRL, CM_D2D_SAD2D_FW_CLKCTRL, CM_DUCATI_DUCATI_CLKCTRL,
 * CM_L3INSTR_L3_3_CLKCTRL, CM_L3INSTR_L3_INSTR_CLKCTRL,
 * CM_L3INSTR_OCP_WP1_CLKCTRL, CM_L3_1_L3_1_CLKCTRL, CM_L3_2_GPMC_CLKCTRL,
 * CM_L3_2_L3_2_CLKCTRL, CM_L3_2_OCMC_RAM_CLKCTRL, CM_L4CFG_HW_SEM_CLKCTRL,
 * CM_L4CFG_L4_CFG_CLKCTRL, CM_L4CFG_MAILBOX_CLKCTRL, CM_L4CFG_SAR_ROM_CLKCTRL,
 * CM_MEMIF_DMM_CLKCTRL, CM_MEMIF_EMIF_1_CLKCTRL, CM_MEMIF_EMIF_2_CLKCTRL,
 * CM_MEMIF_EMIF_FW_CLKCTRL, CM_MEMIF_EMIF_H1_CLKCTRL,
 * CM_MEMIF_EMIF_H2_CLKCTRL, CM_SDMA_SDMA_CLKCTRL, CM_GFX_GFX_CLKCTRL,
 * CM_L4PER_ADC_CLKCTRL, CM_L4PER_DMTIMER10_CLKCTRL,
 * CM_L4PER_DMTIMER11_CLKCTRL, CM_L4PER_DMTIMER2_CLKCTRL,
 * CM_L4PER_DMTIMER3_CLKCTRL, CM_L4PER_DMTIMER4_CLKCTRL,
 * CM_L4PER_DMTIMER9_CLKCTRL, CM_L4PER_ELM_CLKCTRL, CM_L4PER_GPIO2_CLKCTRL,
 * CM_L4PER_GPIO3_CLKCTRL, CM_L4PER_GPIO4_CLKCTRL, CM_L4PER_GPIO5_CLKCTRL,
 * CM_L4PER_GPIO6_CLKCTRL, CM_L4PER_HDQ1W_CLKCTRL, CM_L4PER_HECC1_CLKCTRL,
 * CM_L4PER_HECC2_CLKCTRL, CM_L4PER_I2C1_CLKCTRL, CM_L4PER_I2C2_CLKCTRL,
 * CM_L4PER_I2C3_CLKCTRL, CM_L4PER_I2C4_CLKCTRL, CM_L4PER_I2C5_CLKCTRL,
 * CM_L4PER_L4PER_CLKCTRL, CM_L4PER_MCASP2_CLKCTRL, CM_L4PER_MCASP3_CLKCTRL,
 * CM_L4PER_MCBSP4_CLKCTRL, CM_L4PER_MCSPI1_CLKCTRL, CM_L4PER_MCSPI2_CLKCTRL,
 * CM_L4PER_MCSPI3_CLKCTRL, CM_L4PER_MCSPI4_CLKCTRL, CM_L4PER_MGATE_CLKCTRL,
 * CM_L4PER_MMCSD3_CLKCTRL, CM_L4PER_MMCSD4_CLKCTRL, CM_L4PER_MMCSD5_CLKCTRL,
 * CM_L4PER_MSPROHG_CLKCTRL, CM_L4PER_SLIMBUS2_CLKCTRL, CM_L4PER_UART1_CLKCTRL,
 * CM_L4PER_UART2_CLKCTRL, CM_L4PER_UART3_CLKCTRL, CM_L4PER_UART4_CLKCTRL,
 * CM_L4SEC_AES1_CLKCTRL, CM_L4SEC_AES2_CLKCTRL, CM_L4SEC_CRYPTODMA_CLKCTRL,
 * CM_L4SEC_DES3DES_CLKCTRL, CM_L4SEC_PKAEIP29_CLKCTRL, CM_L4SEC_RNG_CLKCTRL,
 * CM_L4SEC_SHA2MD51_CLKCTRL, CM_L3INIT_CCPTX_CLKCTRL, CM_L3INIT_EMAC_CLKCTRL,
 * CM_L3INIT_HSI_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL, CM_L3INIT_MMC2_CLKCTRL,
 * CM_L3INIT_MMC6_CLKCTRL, CM_L3INIT_P1500_CLKCTRL, CM_L3INIT_PCIESS_CLKCTRL,
 * CM_L3INIT_SATA_CLKCTRL, CM_L3INIT_TPPSS_CLKCTRL, CM_L3INIT_UNIPRO1_CLKCTRL,
 * CM_L3INIT_USBPHYOCP2SCP_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL,
 * CM_L3INIT_USB_HOST_FS_CLKCTRL, CM_L3INIT_USB_OTG_CLKCTRL,
 * CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_XHPI_CLKCTRL, CM_CAM_FDIF_CLKCTRL,
 * CM_CAM_ISS_CLKCTRL, CM_CEFUSE_CEFUSE_CLKCTRL,
 * CM_L3INIT_USB_HOST_CLKCTRL_RESTORE, CM_L3INIT_USB_TLL_CLKCTRL_RESTORE,
 * CM_L3INSTR_L3_3_CLKCTRL_RESTORE, CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE,
 * CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE, CM_L4PER_GPIO2_CLKCTRL_RESTORE,
 * CM_L4PER_GPIO3_CLKCTRL_RESTORE, CM_L4PER_GPIO4_CLKCTRL_RESTORE,
 * CM_L4PER_GPIO5_CLKCTRL_RESTORE, CM_L4PER_GPIO6_CLKCTRL_RESTORE,
 * CM_ALWON_MDMINTC_CLKCTRL, CM_ALWON_SR_CORE_CLKCTRL, CM_ALWON_SR_IVA_CLKCTRL,
 * CM_ALWON_SR_MPU_CLKCTRL, CM_IVAHD_IVAHD_CLKCTRL, CM_IVAHD_SL2_CLKCTRL,
 * CM_DSS_DEISS_CLKCTRL, CM_DSS_DSS_CLKCTRL, CM_CM2_PROFILING_CLKCTRL,
 * CM_MPU_MPU_CLKCTRL, CM_TESLA_TESLA_CLKCTRL, CM1_ABE_AESS_CLKCTRL,
 * CM1_ABE_DMIC_CLKCTRL, CM1_ABE_L4ABE_CLKCTRL, CM1_ABE_MCASP_CLKCTRL,
 * CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL, CM1_ABE_MCBSP3_CLKCTRL,
 * CM1_ABE_PDM_CLKCTRL, CM1_ABE_SLIMBUS_CLKCTRL, CM1_ABE_TIMER5_CLKCTRL,
 * CM1_ABE_TIMER6_CLKCTRL, CM1_ABE_TIMER7_CLKCTRL, CM1_ABE_TIMER8_CLKCTRL,
 * CM1_ABE_WDT3_CLKCTRL, CM_CM1_PROFILING_CLKCTRL
 */
965
#define OMAP4430_IDLEST_SHIFT					16
966 967 968
#define OMAP4430_IDLEST_MASK					BITFIELD(16, 17)

/* Used by CM_DUCATI_DYNAMICDEP, CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP */
969
#define OMAP4430_ISS_DYNDEP_SHIFT				9
970 971 972 973 974 975
#define OMAP4430_ISS_DYNDEP_MASK				BITFIELD(9, 9)

/*
 * Used by CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP, CM_SDMA_STATICDEP_RESTORE,
 * CM_MPU_STATICDEP, CM_TESLA_STATICDEP
 */
976
#define OMAP4430_ISS_STATDEP_SHIFT				9
977 978 979
#define OMAP4430_ISS_STATDEP_MASK				BITFIELD(9, 9)

/* Used by CM_L3_2_DYNAMICDEP, CM_TESLA_DYNAMICDEP */
980
#define OMAP4430_IVAHD_DYNDEP_SHIFT				2
981 982 983 984 985 986 987 988
#define OMAP4430_IVAHD_DYNDEP_MASK				BITFIELD(2, 2)

/*
 * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP,
 * CM_GFX_STATICDEP, CM_L3INIT_STATICDEP, CM_CAM_STATICDEP,
 * CM_SDMA_STATICDEP_RESTORE, CM_DSS_STATICDEP, CM_MPU_STATICDEP,
 * CM_TESLA_STATICDEP
 */
989
#define OMAP4430_IVAHD_STATDEP_SHIFT				2
990 991 992
#define OMAP4430_IVAHD_STATDEP_MASK				BITFIELD(2, 2)

/* Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, CM_L4PER_DYNAMICDEP */
993
#define OMAP4430_L3INIT_DYNDEP_SHIFT				7
994 995 996 997 998 999
#define OMAP4430_L3INIT_DYNDEP_MASK				BITFIELD(7, 7)

/*
 * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP,
 * CM_SDMA_STATICDEP_RESTORE, CM_MPU_STATICDEP, CM_TESLA_STATICDEP
 */
1000
#define OMAP4430_L3INIT_STATDEP_SHIFT				7
1001 1002 1003 1004 1005 1006
#define OMAP4430_L3INIT_STATDEP_MASK				BITFIELD(7, 7)

/*
 * Used by CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, CM_L3INIT_DYNAMICDEP,
 * CM_DSS_DYNAMICDEP, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP
 */
1007
#define OMAP4430_L3_1_DYNDEP_SHIFT				5
1008 1009 1010 1011 1012 1013 1014 1015
#define OMAP4430_L3_1_DYNDEP_MASK				BITFIELD(5, 5)

/*
 * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP,
 * CM_GFX_STATICDEP, CM_L4SEC_STATICDEP, CM_L3INIT_STATICDEP, CM_CAM_STATICDEP,
 * CM_SDMA_STATICDEP_RESTORE, CM_IVAHD_STATICDEP, CM_DSS_STATICDEP,
 * CM_MPU_STATICDEP, CM_TESLA_STATICDEP
 */
1016
#define OMAP4430_L3_1_STATDEP_SHIFT				5
1017 1018 1019 1020 1021 1022 1023 1024
#define OMAP4430_L3_1_STATDEP_MASK				BITFIELD(5, 5)

/*
 * Used by CM_EMU_DYNAMICDEP, CM_D2D_DYNAMICDEP, CM_DUCATI_DYNAMICDEP,
 * CM_L3_1_DYNAMICDEP, CM_L4CFG_DYNAMICDEP, CM_SDMA_DYNAMICDEP,
 * CM_GFX_DYNAMICDEP, CM_L4SEC_DYNAMICDEP, CM_L3INIT_DYNAMICDEP,
 * CM_CAM_DYNAMICDEP, CM_IVAHD_DYNAMICDEP
 */
1025
#define OMAP4430_L3_2_DYNDEP_SHIFT				6
1026 1027 1028 1029 1030 1031 1032 1033
#define OMAP4430_L3_2_DYNDEP_MASK				BITFIELD(6, 6)

/*
 * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP,
 * CM_GFX_STATICDEP, CM_L4SEC_STATICDEP, CM_L3INIT_STATICDEP, CM_CAM_STATICDEP,
 * CM_SDMA_STATICDEP_RESTORE, CM_IVAHD_STATICDEP, CM_DSS_STATICDEP,
 * CM_MPU_STATICDEP, CM_TESLA_STATICDEP
 */
1034
#define OMAP4430_L3_2_STATDEP_SHIFT				6
1035 1036 1037
#define OMAP4430_L3_2_STATDEP_MASK				BITFIELD(6, 6)

/* Used by CM_L3_1_DYNAMICDEP */
1038
#define OMAP4430_L4CFG_DYNDEP_SHIFT				12
1039 1040 1041 1042 1043 1044 1045
#define OMAP4430_L4CFG_DYNDEP_MASK				BITFIELD(12, 12)

/*
 * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP,
 * CM_L3INIT_STATICDEP, CM_SDMA_STATICDEP_RESTORE, CM_MPU_STATICDEP,
 * CM_TESLA_STATICDEP
 */
1046
#define OMAP4430_L4CFG_STATDEP_SHIFT				12
1047 1048 1049
#define OMAP4430_L4CFG_STATDEP_MASK				BITFIELD(12, 12)

/* Used by CM_L3_2_DYNAMICDEP */
1050
#define OMAP4430_L4PER_DYNDEP_SHIFT				13
1051 1052 1053 1054 1055 1056 1057
#define OMAP4430_L4PER_DYNDEP_MASK				BITFIELD(13, 13)

/*
 * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP,
 * CM_L4SEC_STATICDEP, CM_L3INIT_STATICDEP, CM_SDMA_STATICDEP_RESTORE,
 * CM_MPU_STATICDEP, CM_TESLA_STATICDEP
 */
1058
#define OMAP4430_L4PER_STATDEP_SHIFT				13
1059 1060 1061
#define OMAP4430_L4PER_STATDEP_MASK				BITFIELD(13, 13)

/* Used by CM_L3_2_DYNAMICDEP, CM_L4PER_DYNAMICDEP */
1062
#define OMAP4430_L4SEC_DYNDEP_SHIFT				14
1063 1064 1065 1066 1067 1068
#define OMAP4430_L4SEC_DYNDEP_MASK				BITFIELD(14, 14)

/*
 * Used by CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP, CM_L3INIT_STATICDEP,
 * CM_SDMA_STATICDEP_RESTORE, CM_MPU_STATICDEP
 */
1069
#define OMAP4430_L4SEC_STATDEP_SHIFT				14
1070 1071 1072
#define OMAP4430_L4SEC_STATDEP_MASK				BITFIELD(14, 14)

/* Used by CM_L4CFG_DYNAMICDEP */
1073
#define OMAP4430_L4WKUP_DYNDEP_SHIFT				15
1074 1075 1076 1077 1078 1079
#define OMAP4430_L4WKUP_DYNDEP_MASK				BITFIELD(15, 15)

/*
 * Used by CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP, CM_L3INIT_STATICDEP,
 * CM_SDMA_STATICDEP_RESTORE, CM_MPU_STATICDEP, CM_TESLA_STATICDEP
 */
1080
#define OMAP4430_L4WKUP_STATDEP_SHIFT				15
1081 1082 1083 1084 1085 1086
#define OMAP4430_L4WKUP_STATDEP_MASK				BITFIELD(15, 15)

/*
 * Used by CM_D2D_DYNAMICDEP, CM_L3_1_DYNAMICDEP, CM_L4CFG_DYNAMICDEP,
 * CM_MPU_DYNAMICDEP
 */
1087
#define OMAP4430_MEMIF_DYNDEP_SHIFT				4
1088 1089 1090 1091 1092 1093 1094 1095
#define OMAP4430_MEMIF_DYNDEP_MASK				BITFIELD(4, 4)

/*
 * Used by CM_D2D_STATICDEP, CM_DUCATI_STATICDEP, CM_SDMA_STATICDEP,
 * CM_GFX_STATICDEP, CM_L4SEC_STATICDEP, CM_L3INIT_STATICDEP, CM_CAM_STATICDEP,
 * CM_SDMA_STATICDEP_RESTORE, CM_IVAHD_STATICDEP, CM_DSS_STATICDEP,
 * CM_MPU_STATICDEP, CM_TESLA_STATICDEP
 */
1096
#define OMAP4430_MEMIF_STATDEP_SHIFT				4
1097 1098 1099 1100 1101 1102 1103 1104 1105
#define OMAP4430_MEMIF_STATDEP_MASK				BITFIELD(4, 4)

/*
 * Used by CM_SSC_MODFREQDIV_DPLL_PER, CM_SSC_MODFREQDIV_DPLL_UNIPRO,
 * CM_SSC_MODFREQDIV_DPLL_USB, CM_SSC_MODFREQDIV_DPLL_CORE_RESTORE,
 * CM_SSC_MODFREQDIV_DPLL_ABE, CM_SSC_MODFREQDIV_DPLL_CORE,
 * CM_SSC_MODFREQDIV_DPLL_DDRPHY, CM_SSC_MODFREQDIV_DPLL_IVA,
 * CM_SSC_MODFREQDIV_DPLL_MPU
 */
1106
#define OMAP4430_MODFREQDIV_EXPONENT_SHIFT			8
1107 1108 1109 1110 1111 1112 1113 1114 1115
#define OMAP4430_MODFREQDIV_EXPONENT_MASK			BITFIELD(8, 10)

/*
 * Used by CM_SSC_MODFREQDIV_DPLL_PER, CM_SSC_MODFREQDIV_DPLL_UNIPRO,
 * CM_SSC_MODFREQDIV_DPLL_USB, CM_SSC_MODFREQDIV_DPLL_CORE_RESTORE,
 * CM_SSC_MODFREQDIV_DPLL_ABE, CM_SSC_MODFREQDIV_DPLL_CORE,
 * CM_SSC_MODFREQDIV_DPLL_DDRPHY, CM_SSC_MODFREQDIV_DPLL_IVA,
 * CM_SSC_MODFREQDIV_DPLL_MPU
 */
1116
#define OMAP4430_MODFREQDIV_MANTISSA_SHIFT			0
1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171
#define OMAP4430_MODFREQDIV_MANTISSA_MASK			BITFIELD(0, 6)

/*
 * Used by PRM_PRM_PROFILING_CLKCTRL, CM_WKUP_GPIO1_CLKCTRL,
 * CM_WKUP_KEYBOARD_CLKCTRL, CM_WKUP_L4WKUP_CLKCTRL, CM_WKUP_RTC_CLKCTRL,
 * CM_WKUP_SARRAM_CLKCTRL, CM_WKUP_SYNCTIMER_CLKCTRL, CM_WKUP_TIMER12_CLKCTRL,
 * CM_WKUP_TIMER1_CLKCTRL, CM_WKUP_USIM_CLKCTRL, CM_WKUP_WDT1_CLKCTRL,
 * CM_WKUP_WDT2_CLKCTRL, CM_EMU_DEBUGSS_CLKCTRL, CM_D2D_MODEM_ICR_CLKCTRL,
 * CM_D2D_SAD2D_CLKCTRL, CM_D2D_SAD2D_FW_CLKCTRL, CM_DUCATI_DUCATI_CLKCTRL,
 * CM_L3INSTR_L3_3_CLKCTRL, CM_L3INSTR_L3_INSTR_CLKCTRL,
 * CM_L3INSTR_OCP_WP1_CLKCTRL, CM_L3_1_L3_1_CLKCTRL, CM_L3_2_GPMC_CLKCTRL,
 * CM_L3_2_L3_2_CLKCTRL, CM_L3_2_OCMC_RAM_CLKCTRL, CM_L4CFG_HW_SEM_CLKCTRL,
 * CM_L4CFG_L4_CFG_CLKCTRL, CM_L4CFG_MAILBOX_CLKCTRL, CM_L4CFG_SAR_ROM_CLKCTRL,
 * CM_MEMIF_DMM_CLKCTRL, CM_MEMIF_EMIF_1_CLKCTRL, CM_MEMIF_EMIF_2_CLKCTRL,
 * CM_MEMIF_EMIF_FW_CLKCTRL, CM_MEMIF_EMIF_H1_CLKCTRL,
 * CM_MEMIF_EMIF_H2_CLKCTRL, CM_SDMA_SDMA_CLKCTRL, CM_GFX_GFX_CLKCTRL,
 * CM_L4PER_ADC_CLKCTRL, CM_L4PER_DMTIMER10_CLKCTRL,
 * CM_L4PER_DMTIMER11_CLKCTRL, CM_L4PER_DMTIMER2_CLKCTRL,
 * CM_L4PER_DMTIMER3_CLKCTRL, CM_L4PER_DMTIMER4_CLKCTRL,
 * CM_L4PER_DMTIMER9_CLKCTRL, CM_L4PER_ELM_CLKCTRL, CM_L4PER_GPIO2_CLKCTRL,
 * CM_L4PER_GPIO3_CLKCTRL, CM_L4PER_GPIO4_CLKCTRL, CM_L4PER_GPIO5_CLKCTRL,
 * CM_L4PER_GPIO6_CLKCTRL, CM_L4PER_HDQ1W_CLKCTRL, CM_L4PER_HECC1_CLKCTRL,
 * CM_L4PER_HECC2_CLKCTRL, CM_L4PER_I2C1_CLKCTRL, CM_L4PER_I2C2_CLKCTRL,
 * CM_L4PER_I2C3_CLKCTRL, CM_L4PER_I2C4_CLKCTRL, CM_L4PER_I2C5_CLKCTRL,
 * CM_L4PER_L4PER_CLKCTRL, CM_L4PER_MCASP2_CLKCTRL, CM_L4PER_MCASP3_CLKCTRL,
 * CM_L4PER_MCBSP4_CLKCTRL, CM_L4PER_MCSPI1_CLKCTRL, CM_L4PER_MCSPI2_CLKCTRL,
 * CM_L4PER_MCSPI3_CLKCTRL, CM_L4PER_MCSPI4_CLKCTRL, CM_L4PER_MGATE_CLKCTRL,
 * CM_L4PER_MMCSD3_CLKCTRL, CM_L4PER_MMCSD4_CLKCTRL, CM_L4PER_MMCSD5_CLKCTRL,
 * CM_L4PER_MSPROHG_CLKCTRL, CM_L4PER_SLIMBUS2_CLKCTRL, CM_L4PER_UART1_CLKCTRL,
 * CM_L4PER_UART2_CLKCTRL, CM_L4PER_UART3_CLKCTRL, CM_L4PER_UART4_CLKCTRL,
 * CM_L4SEC_AES1_CLKCTRL, CM_L4SEC_AES2_CLKCTRL, CM_L4SEC_CRYPTODMA_CLKCTRL,
 * CM_L4SEC_DES3DES_CLKCTRL, CM_L4SEC_PKAEIP29_CLKCTRL, CM_L4SEC_RNG_CLKCTRL,
 * CM_L4SEC_SHA2MD51_CLKCTRL, CM_L3INIT_CCPTX_CLKCTRL, CM_L3INIT_EMAC_CLKCTRL,
 * CM_L3INIT_HSI_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL, CM_L3INIT_MMC2_CLKCTRL,
 * CM_L3INIT_MMC6_CLKCTRL, CM_L3INIT_P1500_CLKCTRL, CM_L3INIT_PCIESS_CLKCTRL,
 * CM_L3INIT_SATA_CLKCTRL, CM_L3INIT_TPPSS_CLKCTRL, CM_L3INIT_UNIPRO1_CLKCTRL,
 * CM_L3INIT_USBPHYOCP2SCP_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL,
 * CM_L3INIT_USB_HOST_FS_CLKCTRL, CM_L3INIT_USB_OTG_CLKCTRL,
 * CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_XHPI_CLKCTRL, CM_CAM_FDIF_CLKCTRL,
 * CM_CAM_ISS_CLKCTRL, CM_CEFUSE_CEFUSE_CLKCTRL,
 * CM_L3INIT_USB_HOST_CLKCTRL_RESTORE, CM_L3INIT_USB_TLL_CLKCTRL_RESTORE,
 * CM_L3INSTR_L3_3_CLKCTRL_RESTORE, CM_L3INSTR_L3_INSTR_CLKCTRL_RESTORE,
 * CM_L3INSTR_OCP_WP1_CLKCTRL_RESTORE, CM_L4PER_GPIO2_CLKCTRL_RESTORE,
 * CM_L4PER_GPIO3_CLKCTRL_RESTORE, CM_L4PER_GPIO4_CLKCTRL_RESTORE,
 * CM_L4PER_GPIO5_CLKCTRL_RESTORE, CM_L4PER_GPIO6_CLKCTRL_RESTORE,
 * CM_ALWON_MDMINTC_CLKCTRL, CM_ALWON_SR_CORE_CLKCTRL, CM_ALWON_SR_IVA_CLKCTRL,
 * CM_ALWON_SR_MPU_CLKCTRL, CM_IVAHD_IVAHD_CLKCTRL, CM_IVAHD_SL2_CLKCTRL,
 * CM_DSS_DEISS_CLKCTRL, CM_DSS_DSS_CLKCTRL, CM_CM2_PROFILING_CLKCTRL,
 * CM_MPU_MPU_CLKCTRL, CM_TESLA_TESLA_CLKCTRL, CM1_ABE_AESS_CLKCTRL,
 * CM1_ABE_DMIC_CLKCTRL, CM1_ABE_L4ABE_CLKCTRL, CM1_ABE_MCASP_CLKCTRL,
 * CM1_ABE_MCBSP1_CLKCTRL, CM1_ABE_MCBSP2_CLKCTRL, CM1_ABE_MCBSP3_CLKCTRL,
 * CM1_ABE_PDM_CLKCTRL, CM1_ABE_SLIMBUS_CLKCTRL, CM1_ABE_TIMER5_CLKCTRL,
 * CM1_ABE_TIMER6_CLKCTRL, CM1_ABE_TIMER7_CLKCTRL, CM1_ABE_TIMER8_CLKCTRL,
 * CM1_ABE_WDT3_CLKCTRL, CM_CM1_PROFILING_CLKCTRL
 */
1172
#define OMAP4430_MODULEMODE_SHIFT				0
1173 1174 1175
#define OMAP4430_MODULEMODE_MASK				BITFIELD(0, 1)

/* Used by CM_DSS_DSS_CLKCTRL */
1176
#define OMAP4430_OPTFCLKEN_48MHZ_CLK_SHIFT			9
1177 1178 1179
#define OMAP4430_OPTFCLKEN_48MHZ_CLK_MASK			BITFIELD(9, 9)

/* Used by CM_WKUP_BANDGAP_CLKCTRL */
1180
#define OMAP4430_OPTFCLKEN_BGAP_32K_SHIFT			8
1181 1182 1183
#define OMAP4430_OPTFCLKEN_BGAP_32K_MASK			BITFIELD(8, 8)

/* Used by CM_L3INIT_USBPHYOCP2SCP_CLKCTRL */
1184
#define OMAP4430_OPTFCLKEN_CLK32K_SHIFT				9
1185 1186 1187
#define OMAP4430_OPTFCLKEN_CLK32K_MASK				BITFIELD(9, 9)

/* Used by CM_CAM_ISS_CLKCTRL */
1188
#define OMAP4430_OPTFCLKEN_CTRLCLK_SHIFT			8
1189 1190 1191 1192 1193 1194 1195 1196 1197
#define OMAP4430_OPTFCLKEN_CTRLCLK_MASK				BITFIELD(8, 8)

/*
 * Used by CM_WKUP_GPIO1_CLKCTRL, CM_L4PER_GPIO2_CLKCTRL,
 * CM_L4PER_GPIO3_CLKCTRL, CM_L4PER_GPIO4_CLKCTRL, CM_L4PER_GPIO5_CLKCTRL,
 * CM_L4PER_GPIO6_CLKCTRL, CM_L4PER_GPIO2_CLKCTRL_RESTORE,
 * CM_L4PER_GPIO3_CLKCTRL_RESTORE, CM_L4PER_GPIO4_CLKCTRL_RESTORE,
 * CM_L4PER_GPIO5_CLKCTRL_RESTORE, CM_L4PER_GPIO6_CLKCTRL_RESTORE
 */
1198
#define OMAP4430_OPTFCLKEN_DBCLK_SHIFT				8
1199 1200 1201
#define OMAP4430_OPTFCLKEN_DBCLK_MASK				BITFIELD(8, 8)

/* Used by CM_MEMIF_DLL_CLKCTRL, CM_MEMIF_DLL_H_CLKCTRL */
1202
#define OMAP4430_OPTFCLKEN_DLL_CLK_SHIFT			8
1203 1204 1205
#define OMAP4430_OPTFCLKEN_DLL_CLK_MASK				BITFIELD(8, 8)

/* Used by CM_DSS_DSS_CLKCTRL */
1206
#define OMAP4430_OPTFCLKEN_DSSCLK_SHIFT				8
1207 1208 1209
#define OMAP4430_OPTFCLKEN_DSSCLK_MASK				BITFIELD(8, 8)

/* Used by CM1_ABE_SLIMBUS_CLKCTRL */
1210
#define OMAP4430_OPTFCLKEN_FCLK0_SHIFT				8
1211 1212 1213
#define OMAP4430_OPTFCLKEN_FCLK0_MASK				BITFIELD(8, 8)

/* Used by CM1_ABE_SLIMBUS_CLKCTRL */
1214
#define OMAP4430_OPTFCLKEN_FCLK1_SHIFT				9
1215 1216 1217
#define OMAP4430_OPTFCLKEN_FCLK1_MASK				BITFIELD(9, 9)

/* Used by CM1_ABE_SLIMBUS_CLKCTRL */
1218
#define OMAP4430_OPTFCLKEN_FCLK2_SHIFT				10
1219 1220 1221
#define OMAP4430_OPTFCLKEN_FCLK2_MASK				BITFIELD(10, 10)

/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
1222
#define OMAP4430_OPTFCLKEN_FUNC48MCLK_SHIFT			15
1223 1224 1225
#define OMAP4430_OPTFCLKEN_FUNC48MCLK_MASK			BITFIELD(15, 15)

/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
1226
#define OMAP4430_OPTFCLKEN_HSIC480M_P1_CLK_SHIFT		13
1227 1228 1229
#define OMAP4430_OPTFCLKEN_HSIC480M_P1_CLK_MASK			BITFIELD(13, 13)

/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
1230
#define OMAP4430_OPTFCLKEN_HSIC480M_P2_CLK_SHIFT		14
1231 1232 1233
#define OMAP4430_OPTFCLKEN_HSIC480M_P2_CLK_MASK			BITFIELD(14, 14)

/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
1234
#define OMAP4430_OPTFCLKEN_HSIC60M_P1_CLK_SHIFT			11
1235 1236 1237
#define OMAP4430_OPTFCLKEN_HSIC60M_P1_CLK_MASK			BITFIELD(11, 11)

/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
1238
#define OMAP4430_OPTFCLKEN_HSIC60M_P2_CLK_SHIFT			12
1239 1240 1241
#define OMAP4430_OPTFCLKEN_HSIC60M_P2_CLK_MASK			BITFIELD(12, 12)

/* Used by CM_L4PER_SLIMBUS2_CLKCTRL */
1242
#define OMAP4430_OPTFCLKEN_PER24MC_GFCLK_SHIFT			8
1243 1244 1245
#define OMAP4430_OPTFCLKEN_PER24MC_GFCLK_MASK			BITFIELD(8, 8)

/* Used by CM_L4PER_SLIMBUS2_CLKCTRL */
1246
#define OMAP4430_OPTFCLKEN_PERABE24M_GFCLK_SHIFT		9
1247 1248 1249
#define OMAP4430_OPTFCLKEN_PERABE24M_GFCLK_MASK			BITFIELD(9, 9)

/* Used by CM_L3INIT_USBPHYOCP2SCP_CLKCTRL */
1250
#define OMAP4430_OPTFCLKEN_PHY_48M_SHIFT			8
1251 1252 1253
#define OMAP4430_OPTFCLKEN_PHY_48M_MASK				BITFIELD(8, 8)

/* Used by CM_L4PER_SLIMBUS2_CLKCTRL */
1254
#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_SHIFT			10
1255 1256 1257
#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_MASK			BITFIELD(10, 10)

/* Renamed from OPTFCLKEN_SLIMBUS_CLK Used by CM1_ABE_SLIMBUS_CLKCTRL */
1258
#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_11_11_SHIFT		11
1259 1260 1261
#define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_11_11_MASK		BITFIELD(11, 11)

/* Used by CM_DSS_DSS_CLKCTRL */
1262
#define OMAP4430_OPTFCLKEN_SYS_CLK_SHIFT			10
1263 1264 1265
#define OMAP4430_OPTFCLKEN_SYS_CLK_MASK				BITFIELD(10, 10)

/* Used by CM_DSS_DSS_CLKCTRL */
1266
#define OMAP4430_OPTFCLKEN_TV_CLK_SHIFT				11
1267 1268 1269
#define OMAP4430_OPTFCLKEN_TV_CLK_MASK				BITFIELD(11, 11)

/* Used by CM_L3INIT_UNIPRO1_CLKCTRL */
1270
#define OMAP4430_OPTFCLKEN_TXPHYCLK_SHIFT			8
1271 1272 1273
#define OMAP4430_OPTFCLKEN_TXPHYCLK_MASK			BITFIELD(8, 8)

/* Used by CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL_RESTORE */
1274
#define OMAP4430_OPTFCLKEN_USB_CH0_CLK_SHIFT			8
1275 1276 1277
#define OMAP4430_OPTFCLKEN_USB_CH0_CLK_MASK			BITFIELD(8, 8)

/* Used by CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL_RESTORE */
1278
#define OMAP4430_OPTFCLKEN_USB_CH1_CLK_SHIFT			9
1279 1280 1281
#define OMAP4430_OPTFCLKEN_USB_CH1_CLK_MASK			BITFIELD(9, 9)

/* Used by CM_L3INIT_USB_TLL_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL_RESTORE */
1282
#define OMAP4430_OPTFCLKEN_USB_CH2_CLK_SHIFT			10
1283 1284 1285
#define OMAP4430_OPTFCLKEN_USB_CH2_CLK_MASK			BITFIELD(10, 10)

/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
1286
#define OMAP4430_OPTFCLKEN_UTMI_P1_CLK_SHIFT			8
1287 1288 1289
#define OMAP4430_OPTFCLKEN_UTMI_P1_CLK_MASK			BITFIELD(8, 8)

/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
1290
#define OMAP4430_OPTFCLKEN_UTMI_P2_CLK_SHIFT			9
1291 1292 1293
#define OMAP4430_OPTFCLKEN_UTMI_P2_CLK_MASK			BITFIELD(9, 9)

/* Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE */
1294
#define OMAP4430_OPTFCLKEN_UTMI_P3_CLK_SHIFT			10
1295 1296 1297
#define OMAP4430_OPTFCLKEN_UTMI_P3_CLK_MASK			BITFIELD(10, 10)

/* Used by CM_L3INIT_USB_OTG_CLKCTRL */
1298
#define OMAP4430_OPTFCLKEN_XCLK_SHIFT				8
1299 1300 1301
#define OMAP4430_OPTFCLKEN_XCLK_MASK				BITFIELD(8, 8)

/* Used by CM_EMU_OVERRIDE_DPLL_PER, CM_EMU_OVERRIDE_DPLL_CORE */
1302
#define OMAP4430_OVERRIDE_ENABLE_SHIFT				19
1303 1304 1305
#define OMAP4430_OVERRIDE_ENABLE_MASK				BITFIELD(19, 19)

/* Used by CM_CLKSEL_ABE */
1306
#define OMAP4430_PAD_CLKS_GATE_SHIFT				8
1307 1308 1309
#define OMAP4430_PAD_CLKS_GATE_MASK				BITFIELD(8, 8)

/* Used by CM_CORE_DVFS_CURRENT, CM_IVA_DVFS_CURRENT */
1310
#define OMAP4430_PERF_CURRENT_SHIFT				0
1311 1312 1313 1314 1315 1316 1317
#define OMAP4430_PERF_CURRENT_MASK				BITFIELD(0, 7)

/*
 * Used by CM_CORE_DVFS_PERF1, CM_CORE_DVFS_PERF2, CM_CORE_DVFS_PERF3,
 * CM_CORE_DVFS_PERF4, CM_IVA_DVFS_PERF_ABE, CM_IVA_DVFS_PERF_IVAHD,
 * CM_IVA_DVFS_PERF_TESLA
 */
1318
#define OMAP4430_PERF_REQ_SHIFT					0
1319 1320 1321
#define OMAP4430_PERF_REQ_MASK					BITFIELD(0, 7)

/* Used by CM_EMU_OVERRIDE_DPLL_PER */
1322
#define OMAP4430_PER_DPLL_EMU_DIV_SHIFT				0
1323 1324 1325
#define OMAP4430_PER_DPLL_EMU_DIV_MASK				BITFIELD(0, 6)

/* Used by CM_EMU_OVERRIDE_DPLL_PER */
1326
#define OMAP4430_PER_DPLL_EMU_MULT_SHIFT			8
1327 1328 1329
#define OMAP4430_PER_DPLL_EMU_MULT_MASK				BITFIELD(8, 18)

/* Used by CM_RESTORE_ST */
1330
#define OMAP4430_PHASE1_COMPLETED_SHIFT				0
1331 1332 1333
#define OMAP4430_PHASE1_COMPLETED_MASK				BITFIELD(0, 0)

/* Used by CM_RESTORE_ST */
1334
#define OMAP4430_PHASE2A_COMPLETED_SHIFT			1
1335 1336 1337
#define OMAP4430_PHASE2A_COMPLETED_MASK				BITFIELD(1, 1)

/* Used by CM_RESTORE_ST */
1338
#define OMAP4430_PHASE2B_COMPLETED_SHIFT			2
1339 1340 1341
#define OMAP4430_PHASE2B_COMPLETED_MASK				BITFIELD(2, 2)

/* Used by CM_EMU_DEBUGSS_CLKCTRL */
1342
#define OMAP4430_PMD_STM_MUX_CTRL_SHIFT				20
1343 1344 1345
#define OMAP4430_PMD_STM_MUX_CTRL_MASK				BITFIELD(20, 21)

/* Used by CM_EMU_DEBUGSS_CLKCTRL */
1346
#define OMAP4430_PMD_TRACE_MUX_CTRL_SHIFT			22
1347 1348 1349
#define OMAP4430_PMD_TRACE_MUX_CTRL_MASK			BITFIELD(22, 23)

/* Used by CM_DYN_DEP_PRESCAL */
1350
#define OMAP4430_PRESCAL_SHIFT					0
1351 1352 1353
#define OMAP4430_PRESCAL_MASK					BITFIELD(0, 5)

/* Used by REVISION_CM2, REVISION_CM1 */
1354
#define OMAP4430_REV_SHIFT					0
1355 1356 1357 1358 1359 1360
#define OMAP4430_REV_MASK					BITFIELD(0, 7)

/*
 * Used by CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_TLL_CLKCTRL,
 * CM_L3INIT_USB_HOST_CLKCTRL_RESTORE, CM_L3INIT_USB_TLL_CLKCTRL_RESTORE
 */
1361
#define OMAP4430_SAR_MODE_SHIFT					4
1362 1363 1364
#define OMAP4430_SAR_MODE_MASK					BITFIELD(4, 4)

/* Used by CM_SCALE_FCLK */
1365
#define OMAP4430_SCALE_FCLK_SHIFT				0
1366 1367 1368
#define OMAP4430_SCALE_FCLK_MASK				BITFIELD(0, 0)

/* Used by CM_L4CFG_DYNAMICDEP */
1369
#define OMAP4430_SDMA_DYNDEP_SHIFT				11
1370 1371 1372
#define OMAP4430_SDMA_DYNDEP_MASK				BITFIELD(11, 11)

/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP */
1373
#define OMAP4430_SDMA_STATDEP_SHIFT				11
1374 1375 1376
#define OMAP4430_SDMA_STATDEP_MASK				BITFIELD(11, 11)

/* Used by CM_CLKSEL_ABE */
1377
#define OMAP4430_SLIMBUS_CLK_GATE_SHIFT				10
1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392
#define OMAP4430_SLIMBUS_CLK_GATE_MASK				BITFIELD(10, 10)

/*
 * Used by CM_EMU_DEBUGSS_CLKCTRL, CM_D2D_SAD2D_CLKCTRL,
 * CM_DUCATI_DUCATI_CLKCTRL, CM_SDMA_SDMA_CLKCTRL, CM_GFX_GFX_CLKCTRL,
 * CM_L4SEC_CRYPTODMA_CLKCTRL, CM_L3INIT_CCPTX_CLKCTRL, CM_L3INIT_EMAC_CLKCTRL,
 * CM_L3INIT_HSI_CLKCTRL, CM_L3INIT_MMC1_CLKCTRL, CM_L3INIT_MMC2_CLKCTRL,
 * CM_L3INIT_MMC6_CLKCTRL, CM_L3INIT_P1500_CLKCTRL, CM_L3INIT_PCIESS_CLKCTRL,
 * CM_L3INIT_SATA_CLKCTRL, CM_L3INIT_TPPSS_CLKCTRL, CM_L3INIT_UNIPRO1_CLKCTRL,
 * CM_L3INIT_USB_HOST_CLKCTRL, CM_L3INIT_USB_HOST_FS_CLKCTRL,
 * CM_L3INIT_USB_OTG_CLKCTRL, CM_L3INIT_XHPI_CLKCTRL, CM_CAM_FDIF_CLKCTRL,
 * CM_CAM_ISS_CLKCTRL, CM_L3INIT_USB_HOST_CLKCTRL_RESTORE,
 * CM_IVAHD_IVAHD_CLKCTRL, CM_DSS_DEISS_CLKCTRL, CM_DSS_DSS_CLKCTRL,
 * CM_MPU_MPU_CLKCTRL, CM_TESLA_TESLA_CLKCTRL, CM1_ABE_AESS_CLKCTRL
 */
1393
#define OMAP4430_STBYST_SHIFT					18
1394 1395 1396 1397 1398 1399 1400
#define OMAP4430_STBYST_MASK					BITFIELD(18, 18)

/*
 * Used by CM_IDLEST_DPLL_PER, CM_IDLEST_DPLL_UNIPRO, CM_IDLEST_DPLL_USB,
 * CM_IDLEST_DPLL_ABE, CM_IDLEST_DPLL_CORE, CM_IDLEST_DPLL_DDRPHY,
 * CM_IDLEST_DPLL_IVA, CM_IDLEST_DPLL_MPU
 */
1401
#define OMAP4430_ST_DPLL_CLK_SHIFT				0
1402 1403 1404
#define OMAP4430_ST_DPLL_CLK_MASK				BITFIELD(0, 0)

/* Used by CM_CLKDCOLDO_DPLL_USB */
1405
#define OMAP4430_ST_DPLL_CLKDCOLDO_SHIFT			9
1406 1407 1408 1409 1410 1411 1412
#define OMAP4430_ST_DPLL_CLKDCOLDO_MASK				BITFIELD(9, 9)

/*
 * Used by CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_USB, CM_DIV_M2_DPLL_CORE_RESTORE,
 * CM_DIV_M2_DPLL_ABE, CM_DIV_M2_DPLL_CORE, CM_DIV_M2_DPLL_DDRPHY,
 * CM_DIV_M2_DPLL_MPU
 */
1413
#define OMAP4430_ST_DPLL_CLKOUT_SHIFT				9
1414 1415 1416 1417 1418 1419
#define OMAP4430_ST_DPLL_CLKOUT_MASK				BITFIELD(9, 9)

/*
 * Used by CM_DIV_M3_DPLL_PER, CM_DIV_M3_DPLL_CORE_RESTORE, CM_DIV_M3_DPLL_ABE,
 * CM_DIV_M3_DPLL_CORE
 */
1420
#define OMAP4430_ST_DPLL_CLKOUTHIF_SHIFT			9
1421 1422 1423
#define OMAP4430_ST_DPLL_CLKOUTHIF_MASK				BITFIELD(9, 9)

/* Used by CM_DIV_M2_DPLL_PER, CM_DIV_M2_DPLL_UNIPRO, CM_DIV_M2_DPLL_ABE */
1424
#define OMAP4430_ST_DPLL_CLKOUTX2_SHIFT				11
1425 1426 1427 1428 1429 1430
#define OMAP4430_ST_DPLL_CLKOUTX2_MASK				BITFIELD(11, 11)

/*
 * Used by CM_DIV_M4_DPLL_PER, CM_DIV_M4_DPLL_CORE_RESTORE,
 * CM_DIV_M4_DPLL_CORE, CM_DIV_M4_DPLL_DDRPHY, CM_DIV_M4_DPLL_IVA
 */
1431
#define OMAP4430_ST_HSDIVIDER_CLKOUT1_SHIFT			9
1432 1433 1434 1435 1436 1437
#define OMAP4430_ST_HSDIVIDER_CLKOUT1_MASK			BITFIELD(9, 9)

/*
 * Used by CM_DIV_M5_DPLL_PER, CM_DIV_M5_DPLL_CORE_RESTORE,
 * CM_DIV_M5_DPLL_CORE, CM_DIV_M5_DPLL_DDRPHY, CM_DIV_M5_DPLL_IVA
 */
1438
#define OMAP4430_ST_HSDIVIDER_CLKOUT2_SHIFT			9
1439 1440 1441 1442 1443 1444
#define OMAP4430_ST_HSDIVIDER_CLKOUT2_MASK			BITFIELD(9, 9)

/*
 * Used by CM_DIV_M6_DPLL_PER, CM_DIV_M6_DPLL_CORE_RESTORE,
 * CM_DIV_M6_DPLL_CORE, CM_DIV_M6_DPLL_DDRPHY
 */
1445
#define OMAP4430_ST_HSDIVIDER_CLKOUT3_SHIFT			9
1446 1447 1448 1449 1450 1451
#define OMAP4430_ST_HSDIVIDER_CLKOUT3_MASK			BITFIELD(9, 9)

/*
 * Used by CM_DIV_M7_DPLL_PER, CM_DIV_M7_DPLL_CORE_RESTORE,
 * CM_DIV_M7_DPLL_CORE
 */
1452
#define OMAP4430_ST_HSDIVIDER_CLKOUT4_SHIFT			9
1453 1454 1455
#define OMAP4430_ST_HSDIVIDER_CLKOUT4_MASK			BITFIELD(9, 9)

/* Used by CM_SYS_CLKSEL */
1456
#define OMAP4430_SYS_CLKSEL_SHIFT				0
1457 1458 1459
#define OMAP4430_SYS_CLKSEL_MASK				BITFIELD(0, 2)

/* Used by CM_L4CFG_DYNAMICDEP */
1460
#define OMAP4430_TESLA_DYNDEP_SHIFT				1
1461 1462 1463
#define OMAP4430_TESLA_DYNDEP_MASK				BITFIELD(1, 1)

/* Used by CM_DUCATI_STATICDEP, CM_MPU_STATICDEP */
1464
#define OMAP4430_TESLA_STATDEP_SHIFT				1
1465 1466 1467 1468 1469 1470 1471
#define OMAP4430_TESLA_STATDEP_MASK				BITFIELD(1, 1)

/*
 * Used by CM_EMU_DYNAMICDEP, CM_D2D_DYNAMICDEP, CM_DUCATI_DYNAMICDEP,
 * CM_L3_1_DYNAMICDEP, CM_L3_2_DYNAMICDEP, CM_L4CFG_DYNAMICDEP,
 * CM_L4PER_DYNAMICDEP, CM_MPU_DYNAMICDEP, CM_TESLA_DYNAMICDEP
 */
1472
#define OMAP4430_WINDOWSIZE_SHIFT				24
1473 1474
#define OMAP4430_WINDOWSIZE_MASK				BITFIELD(24, 27)
#endif