cm-regbits-34xx.h 27.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_34XX_H
#define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_34XX_H

/*
 * OMAP3430 Clock Management register bits
 *
 * Copyright (C) 2007-2008 Texas Instruments, Inc.
 * Copyright (C) 2007-2008 Nokia Corporation
 *
 * Written by Paul Walmsley
 *
 * 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.
 */

/* Bits shared between registers */

/* CM_FCLKEN1_CORE and CM_ICLKEN1_CORE shared bits */
#define OMAP3430ES2_EN_MMC3_MASK			(1 << 30)
#define OMAP3430ES2_EN_MMC3_SHIFT			30
22
#define OMAP3430_EN_MSPRO_MASK				(1 << 23)
23
#define OMAP3430_EN_MSPRO_SHIFT				23
24
#define OMAP3430_EN_HDQ_MASK				(1 << 22)
25
#define OMAP3430_EN_HDQ_SHIFT				22
26
#define OMAP3430ES1_EN_FSHOSTUSB_MASK			(1 << 5)
27
#define OMAP3430ES1_EN_FSHOSTUSB_SHIFT			5
28
#define OMAP3430ES1_EN_D2D_MASK				(1 << 3)
29
#define OMAP3430ES1_EN_D2D_SHIFT			3
30
#define OMAP3430_EN_SSI_MASK				(1 << 0)
31 32 33 34 35 36 37
#define OMAP3430_EN_SSI_SHIFT				0

/* CM_FCLKEN3_CORE and CM_ICLKEN3_CORE shared bits */
#define OMAP3430ES2_EN_USBTLL_SHIFT			2
#define OMAP3430ES2_EN_USBTLL_MASK			(1 << 2)

/* CM_FCLKEN_WKUP and CM_ICLKEN_WKUP shared bits */
38
#define OMAP3430_EN_WDT2_MASK				(1 << 5)
39 40 41
#define OMAP3430_EN_WDT2_SHIFT				5

/* CM_ICLKEN_CAM, CM_FCLKEN_CAM shared bits */
42
#define OMAP3430_EN_CAM_MASK				(1 << 0)
43 44 45
#define OMAP3430_EN_CAM_SHIFT				0

/* CM_FCLKEN_PER, CM_ICLKEN_PER shared bits */
46
#define OMAP3430_EN_WDT3_MASK				(1 << 12)
47 48 49
#define OMAP3430_EN_WDT3_SHIFT				12

/* CM_CLKSEL2_EMU, CM_CLKSEL3_EMU shared bits */
50
#define OMAP3430_OVERRIDE_ENABLE_MASK			(1 << 19)
51 52 53 54 55


/* Bits specific to each register */

/* CM_FCLKEN_IVA2 */
56
#define OMAP3430_CM_FCLKEN_IVA2_EN_IVA2_MASK		(1 << 0)
57
#define OMAP3430_CM_FCLKEN_IVA2_EN_IVA2_SHIFT		0
58 59 60 61 62 63 64 65 66 67 68 69

/* CM_CLKEN_PLL_IVA2 */
#define OMAP3430_IVA2_DPLL_RAMPTIME_SHIFT		8
#define OMAP3430_IVA2_DPLL_RAMPTIME_MASK		(0x3 << 8)
#define OMAP3430_IVA2_DPLL_FREQSEL_SHIFT		4
#define OMAP3430_IVA2_DPLL_FREQSEL_MASK			(0xf << 4)
#define OMAP3430_EN_IVA2_DPLL_DRIFTGUARD_SHIFT		3
#define OMAP3430_EN_IVA2_DPLL_DRIFTGUARD_MASK		(1 << 3)
#define OMAP3430_EN_IVA2_DPLL_SHIFT			0
#define OMAP3430_EN_IVA2_DPLL_MASK			(0x7 << 0)

/* CM_IDLEST_IVA2 */
70
#define OMAP3430_ST_IVA2_MASK				(1 << 0)
71 72

/* CM_IDLEST_PLL_IVA2 */
73 74
#define OMAP3430_ST_IVA2_CLK_SHIFT			0
#define OMAP3430_ST_IVA2_CLK_MASK			(1 << 0)
75 76 77 78 79 80 81

/* CM_AUTOIDLE_PLL_IVA2 */
#define OMAP3430_AUTO_IVA2_DPLL_SHIFT			0
#define OMAP3430_AUTO_IVA2_DPLL_MASK			(0x7 << 0)

/* CM_CLKSEL1_PLL_IVA2 */
#define OMAP3430_IVA2_CLK_SRC_SHIFT			19
82
#define OMAP3430_IVA2_CLK_SRC_MASK			(0x7 << 19)
83 84 85 86 87 88 89 90 91 92 93 94 95 96
#define OMAP3430_IVA2_DPLL_MULT_SHIFT			8
#define OMAP3430_IVA2_DPLL_MULT_MASK			(0x7ff << 8)
#define OMAP3430_IVA2_DPLL_DIV_SHIFT			0
#define OMAP3430_IVA2_DPLL_DIV_MASK			(0x7f << 0)

/* CM_CLKSEL2_PLL_IVA2 */
#define OMAP3430_IVA2_DPLL_CLKOUT_DIV_SHIFT		0
#define OMAP3430_IVA2_DPLL_CLKOUT_DIV_MASK		(0x1f << 0)

/* CM_CLKSTCTRL_IVA2 */
#define OMAP3430_CLKTRCTRL_IVA2_SHIFT			0
#define OMAP3430_CLKTRCTRL_IVA2_MASK			(0x3 << 0)

/* CM_CLKSTST_IVA2 */
97 98
#define OMAP3430_CLKACTIVITY_IVA2_SHIFT			0
#define OMAP3430_CLKACTIVITY_IVA2_MASK			(1 << 0)
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114

/* CM_REVISION specific bits */

/* CM_SYSCONFIG specific bits */

/* CM_CLKEN_PLL_MPU */
#define OMAP3430_MPU_DPLL_RAMPTIME_SHIFT		8
#define OMAP3430_MPU_DPLL_RAMPTIME_MASK			(0x3 << 8)
#define OMAP3430_MPU_DPLL_FREQSEL_SHIFT			4
#define OMAP3430_MPU_DPLL_FREQSEL_MASK			(0xf << 4)
#define OMAP3430_EN_MPU_DPLL_DRIFTGUARD_SHIFT		3
#define OMAP3430_EN_MPU_DPLL_DRIFTGUARD_MASK		(1 << 3)
#define OMAP3430_EN_MPU_DPLL_SHIFT			0
#define OMAP3430_EN_MPU_DPLL_MASK			(0x7 << 0)

/* CM_IDLEST_MPU */
115
#define OMAP3430_ST_MPU_MASK				(1 << 0)
116 117

/* CM_IDLEST_PLL_MPU */
118
#define OMAP3430_ST_MPU_CLK_SHIFT			0
119
#define OMAP3430_ST_MPU_CLK_MASK			(1 << 0)
120 121 122 123 124 125 126

/* CM_AUTOIDLE_PLL_MPU */
#define OMAP3430_AUTO_MPU_DPLL_SHIFT			0
#define OMAP3430_AUTO_MPU_DPLL_MASK			(0x7 << 0)

/* CM_CLKSEL1_PLL_MPU */
#define OMAP3430_MPU_CLK_SRC_SHIFT			19
127
#define OMAP3430_MPU_CLK_SRC_MASK			(0x7 << 19)
128 129 130 131 132 133 134 135 136 137 138 139 140 141
#define OMAP3430_MPU_DPLL_MULT_SHIFT			8
#define OMAP3430_MPU_DPLL_MULT_MASK			(0x7ff << 8)
#define OMAP3430_MPU_DPLL_DIV_SHIFT			0
#define OMAP3430_MPU_DPLL_DIV_MASK			(0x7f << 0)

/* CM_CLKSEL2_PLL_MPU */
#define OMAP3430_MPU_DPLL_CLKOUT_DIV_SHIFT		0
#define OMAP3430_MPU_DPLL_CLKOUT_DIV_MASK		(0x1f << 0)

/* CM_CLKSTCTRL_MPU */
#define OMAP3430_CLKTRCTRL_MPU_SHIFT			0
#define OMAP3430_CLKTRCTRL_MPU_MASK			(0x3 << 0)

/* CM_CLKSTST_MPU */
142 143
#define OMAP3430_CLKACTIVITY_MPU_SHIFT			0
#define OMAP3430_CLKACTIVITY_MPU_MASK			(1 << 0)
144 145

/* CM_FCLKEN1_CORE specific bits */
146
#define OMAP3430_EN_MODEM_MASK				(1 << 31)
147
#define OMAP3430_EN_MODEM_SHIFT				31
148 149

/* CM_ICLKEN1_CORE specific bits */
150
#define OMAP3430_EN_ICR_MASK				(1 << 29)
151
#define OMAP3430_EN_ICR_SHIFT				29
152
#define OMAP3430_EN_AES2_MASK				(1 << 28)
153
#define OMAP3430_EN_AES2_SHIFT				28
154
#define OMAP3430_EN_SHA12_MASK				(1 << 27)
155
#define OMAP3430_EN_SHA12_SHIFT				27
156
#define OMAP3430_EN_DES2_MASK				(1 << 26)
157
#define OMAP3430_EN_DES2_SHIFT				26
158
#define OMAP3430ES1_EN_FAC_MASK				(1 << 8)
159
#define OMAP3430ES1_EN_FAC_SHIFT			8
160
#define OMAP3430_EN_MAILBOXES_MASK			(1 << 7)
161
#define OMAP3430_EN_MAILBOXES_SHIFT			7
162
#define OMAP3430_EN_OMAPCTRL_MASK			(1 << 6)
163
#define OMAP3430_EN_OMAPCTRL_SHIFT			6
164
#define OMAP3430_EN_SAD2D_MASK				(1 << 3)
165
#define OMAP3430_EN_SAD2D_SHIFT				3
166
#define OMAP3430_EN_SDRC_MASK				(1 << 1)
167 168
#define OMAP3430_EN_SDRC_SHIFT				1

169 170 171
/* AM35XX specific CM_ICLKEN1_CORE bits */
#define AM35XX_EN_IPSS_MASK				(1 << 4)
#define AM35XX_EN_IPSS_SHIFT				4
172
#define AM35XX_EN_UART4_MASK				(1 << 23)
173 174
#define AM35XX_EN_UART4_SHIFT				23

175
/* CM_ICLKEN2_CORE */
176
#define OMAP3430_EN_PKA_MASK				(1 << 4)
177
#define OMAP3430_EN_PKA_SHIFT				4
178
#define OMAP3430_EN_AES1_MASK				(1 << 3)
179
#define OMAP3430_EN_AES1_SHIFT				3
180
#define OMAP3430_EN_RNG_MASK				(1 << 2)
181
#define OMAP3430_EN_RNG_SHIFT				2
182
#define OMAP3430_EN_SHA11_MASK				(1 << 1)
183
#define OMAP3430_EN_SHA11_SHIFT				1
184
#define OMAP3430_EN_DES1_MASK				(1 << 0)
185 186
#define OMAP3430_EN_DES1_SHIFT				0

187 188
/* CM_ICLKEN3_CORE */
#define OMAP3430_EN_MAD2D_SHIFT				3
189
#define OMAP3430_EN_MAD2D_MASK				(1 << 3)
190

191 192 193 194 195 196 197
/* CM_FCLKEN3_CORE specific bits */
#define OMAP3430ES2_EN_TS_SHIFT				1
#define OMAP3430ES2_EN_TS_MASK				(1 << 1)
#define OMAP3430ES2_EN_CPEFUSE_SHIFT			0
#define OMAP3430ES2_EN_CPEFUSE_MASK			(1 << 0)

/* CM_IDLEST1_CORE specific bits */
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
#define OMAP3430ES2_ST_MMC3_SHIFT			30
#define OMAP3430ES2_ST_MMC3_MASK			(1 << 30)
#define OMAP3430_ST_ICR_SHIFT				29
#define OMAP3430_ST_ICR_MASK				(1 << 29)
#define OMAP3430_ST_AES2_SHIFT				28
#define OMAP3430_ST_AES2_MASK				(1 << 28)
#define OMAP3430_ST_SHA12_SHIFT				27
#define OMAP3430_ST_SHA12_MASK				(1 << 27)
#define OMAP3430_ST_DES2_SHIFT				26
#define OMAP3430_ST_DES2_MASK				(1 << 26)
#define OMAP3430_ST_MSPRO_SHIFT				23
#define OMAP3430_ST_MSPRO_MASK				(1 << 23)
#define OMAP3430_ST_HDQ_SHIFT				22
#define OMAP3430_ST_HDQ_MASK				(1 << 22)
#define OMAP3430ES1_ST_FAC_SHIFT			8
#define OMAP3430ES1_ST_FAC_MASK				(1 << 8)
#define OMAP3430ES2_ST_SSI_IDLE_SHIFT			8
#define OMAP3430ES2_ST_SSI_IDLE_MASK			(1 << 8)
#define OMAP3430_ST_MAILBOXES_SHIFT			7
#define OMAP3430_ST_MAILBOXES_MASK			(1 << 7)
#define OMAP3430_ST_OMAPCTRL_SHIFT			6
#define OMAP3430_ST_OMAPCTRL_MASK			(1 << 6)
#define OMAP3430_ST_SDMA_SHIFT				2
#define OMAP3430_ST_SDMA_MASK				(1 << 2)
#define OMAP3430_ST_SDRC_SHIFT				1
#define OMAP3430_ST_SDRC_MASK				(1 << 1)
#define OMAP3430_ST_SSI_STDBY_SHIFT			0
#define OMAP3430_ST_SSI_STDBY_MASK			(1 << 0)
226

227 228 229 230
/* AM35xx specific CM_IDLEST1_CORE bits */
#define AM35XX_ST_IPSS_SHIFT				5
#define AM35XX_ST_IPSS_MASK 				(1 << 5)

231
/* CM_IDLEST2_CORE */
232 233 234 235 236 237 238 239 240 241
#define OMAP3430_ST_PKA_SHIFT				4
#define OMAP3430_ST_PKA_MASK				(1 << 4)
#define OMAP3430_ST_AES1_SHIFT				3
#define OMAP3430_ST_AES1_MASK				(1 << 3)
#define OMAP3430_ST_RNG_SHIFT				2
#define OMAP3430_ST_RNG_MASK				(1 << 2)
#define OMAP3430_ST_SHA11_SHIFT				1
#define OMAP3430_ST_SHA11_MASK				(1 << 1)
#define OMAP3430_ST_DES1_SHIFT				0
#define OMAP3430_ST_DES1_MASK				(1 << 0)
242 243 244 245

/* CM_IDLEST3_CORE */
#define OMAP3430ES2_ST_USBTLL_SHIFT			2
#define OMAP3430ES2_ST_USBTLL_MASK			(1 << 2)
246 247
#define OMAP3430ES2_ST_CPEFUSE_SHIFT			0
#define OMAP3430ES2_ST_CPEFUSE_MASK			(1 << 0)
248 249

/* CM_AUTOIDLE1_CORE */
250
#define OMAP3430_AUTO_MODEM_MASK			(1 << 31)
251
#define OMAP3430_AUTO_MODEM_SHIFT			31
252
#define OMAP3430ES2_AUTO_MMC3_MASK			(1 << 30)
253
#define OMAP3430ES2_AUTO_MMC3_SHIFT			30
254
#define OMAP3430ES2_AUTO_ICR_MASK			(1 << 29)
255
#define OMAP3430ES2_AUTO_ICR_SHIFT			29
256
#define OMAP3430_AUTO_AES2_MASK				(1 << 28)
257
#define OMAP3430_AUTO_AES2_SHIFT			28
258
#define OMAP3430_AUTO_SHA12_MASK			(1 << 27)
259
#define OMAP3430_AUTO_SHA12_SHIFT			27
260
#define OMAP3430_AUTO_DES2_MASK				(1 << 26)
261
#define OMAP3430_AUTO_DES2_SHIFT			26
262
#define OMAP3430_AUTO_MMC2_MASK				(1 << 25)
263
#define OMAP3430_AUTO_MMC2_SHIFT			25
264
#define OMAP3430_AUTO_MMC1_MASK				(1 << 24)
265
#define OMAP3430_AUTO_MMC1_SHIFT			24
266
#define OMAP3430_AUTO_MSPRO_MASK			(1 << 23)
267
#define OMAP3430_AUTO_MSPRO_SHIFT			23
268
#define OMAP3430_AUTO_HDQ_MASK				(1 << 22)
269
#define OMAP3430_AUTO_HDQ_SHIFT				22
270
#define OMAP3430_AUTO_MCSPI4_MASK			(1 << 21)
271
#define OMAP3430_AUTO_MCSPI4_SHIFT			21
272
#define OMAP3430_AUTO_MCSPI3_MASK			(1 << 20)
273
#define OMAP3430_AUTO_MCSPI3_SHIFT			20
274
#define OMAP3430_AUTO_MCSPI2_MASK			(1 << 19)
275
#define OMAP3430_AUTO_MCSPI2_SHIFT			19
276
#define OMAP3430_AUTO_MCSPI1_MASK			(1 << 18)
277
#define OMAP3430_AUTO_MCSPI1_SHIFT			18
278
#define OMAP3430_AUTO_I2C3_MASK				(1 << 17)
279
#define OMAP3430_AUTO_I2C3_SHIFT			17
280
#define OMAP3430_AUTO_I2C2_MASK				(1 << 16)
281
#define OMAP3430_AUTO_I2C2_SHIFT			16
282
#define OMAP3430_AUTO_I2C1_MASK				(1 << 15)
283
#define OMAP3430_AUTO_I2C1_SHIFT			15
284
#define OMAP3430_AUTO_UART2_MASK			(1 << 14)
285
#define OMAP3430_AUTO_UART2_SHIFT			14
286
#define OMAP3430_AUTO_UART1_MASK			(1 << 13)
287
#define OMAP3430_AUTO_UART1_SHIFT			13
288
#define OMAP3430_AUTO_GPT11_MASK			(1 << 12)
289
#define OMAP3430_AUTO_GPT11_SHIFT			12
290
#define OMAP3430_AUTO_GPT10_MASK			(1 << 11)
291
#define OMAP3430_AUTO_GPT10_SHIFT			11
292
#define OMAP3430_AUTO_MCBSP5_MASK			(1 << 10)
293
#define OMAP3430_AUTO_MCBSP5_SHIFT			10
294
#define OMAP3430_AUTO_MCBSP1_MASK			(1 << 9)
295
#define OMAP3430_AUTO_MCBSP1_SHIFT			9
296
#define OMAP3430ES1_AUTO_FAC_MASK			(1 << 8)
297
#define OMAP3430ES1_AUTO_FAC_SHIFT			8
298
#define OMAP3430_AUTO_MAILBOXES_MASK			(1 << 7)
299
#define OMAP3430_AUTO_MAILBOXES_SHIFT			7
300
#define OMAP3430_AUTO_OMAPCTRL_MASK			(1 << 6)
301
#define OMAP3430_AUTO_OMAPCTRL_SHIFT			6
302
#define OMAP3430ES1_AUTO_FSHOSTUSB_MASK			(1 << 5)
303
#define OMAP3430ES1_AUTO_FSHOSTUSB_SHIFT		5
304
#define OMAP3430_AUTO_HSOTGUSB_MASK			(1 << 4)
305
#define OMAP3430_AUTO_HSOTGUSB_SHIFT			4
306
#define OMAP3430ES1_AUTO_D2D_MASK			(1 << 3)
307
#define OMAP3430ES1_AUTO_D2D_SHIFT			3
308
#define OMAP3430_AUTO_SAD2D_MASK			(1 << 3)
309
#define OMAP3430_AUTO_SAD2D_SHIFT			3
310
#define OMAP3430_AUTO_SSI_MASK				(1 << 0)
311 312 313
#define OMAP3430_AUTO_SSI_SHIFT				0

/* CM_AUTOIDLE2_CORE */
314
#define OMAP3430_AUTO_PKA_MASK				(1 << 4)
315
#define OMAP3430_AUTO_PKA_SHIFT				4
316
#define OMAP3430_AUTO_AES1_MASK				(1 << 3)
317
#define OMAP3430_AUTO_AES1_SHIFT			3
318
#define OMAP3430_AUTO_RNG_MASK				(1 << 2)
319
#define OMAP3430_AUTO_RNG_SHIFT				2
320
#define OMAP3430_AUTO_SHA11_MASK			(1 << 1)
321
#define OMAP3430_AUTO_SHA11_SHIFT			1
322
#define OMAP3430_AUTO_DES1_MASK				(1 << 0)
323 324 325
#define OMAP3430_AUTO_DES1_SHIFT			0

/* CM_AUTOIDLE3_CORE */
326 327 328
#define	OMAP3430ES2_AUTO_USBHOST			(1 << 0)
#define	OMAP3430ES2_AUTO_USBHOST_SHIFT			0
#define	OMAP3430ES2_AUTO_USBTLL				(1 << 2)
329 330
#define OMAP3430ES2_AUTO_USBTLL_SHIFT			2
#define OMAP3430ES2_AUTO_USBTLL_MASK			(1 << 2)
331
#define OMAP3430_AUTO_MAD2D_SHIFT			3
332
#define OMAP3430_AUTO_MAD2D_MASK			(1 << 3)
333 334 335 336 337 338 339 340 341 342 343 344 345 346

/* CM_CLKSEL_CORE */
#define OMAP3430_CLKSEL_SSI_SHIFT			8
#define OMAP3430_CLKSEL_SSI_MASK			(0xf << 8)
#define OMAP3430_CLKSEL_GPT11_MASK			(1 << 7)
#define OMAP3430_CLKSEL_GPT11_SHIFT			7
#define OMAP3430_CLKSEL_GPT10_MASK			(1 << 6)
#define OMAP3430_CLKSEL_GPT10_SHIFT			6
#define OMAP3430ES1_CLKSEL_FSHOSTUSB_SHIFT		4
#define OMAP3430ES1_CLKSEL_FSHOSTUSB_MASK		(0x3 << 4)
#define OMAP3430_CLKSEL_L4_SHIFT			2
#define OMAP3430_CLKSEL_L4_MASK				(0x3 << 2)
#define OMAP3430_CLKSEL_L3_SHIFT			0
#define OMAP3430_CLKSEL_L3_MASK				(0x3 << 0)
347 348
#define OMAP3630_CLKSEL_96M_SHIFT			12
#define OMAP3630_CLKSEL_96M_MASK			(0x3 << 12)
349 350 351 352 353 354 355 356 357 358

/* CM_CLKSTCTRL_CORE */
#define OMAP3430ES1_CLKTRCTRL_D2D_SHIFT			4
#define OMAP3430ES1_CLKTRCTRL_D2D_MASK			(0x3 << 4)
#define OMAP3430_CLKTRCTRL_L4_SHIFT			2
#define OMAP3430_CLKTRCTRL_L4_MASK			(0x3 << 2)
#define OMAP3430_CLKTRCTRL_L3_SHIFT			0
#define OMAP3430_CLKTRCTRL_L3_MASK			(0x3 << 0)

/* CM_CLKSTST_CORE */
359 360 361 362 363 364
#define OMAP3430ES1_CLKACTIVITY_D2D_SHIFT		2
#define OMAP3430ES1_CLKACTIVITY_D2D_MASK		(1 << 2)
#define OMAP3430_CLKACTIVITY_L4_SHIFT			1
#define OMAP3430_CLKACTIVITY_L4_MASK			(1 << 1)
#define OMAP3430_CLKACTIVITY_L3_SHIFT			0
#define OMAP3430_CLKACTIVITY_L3_MASK			(1 << 0)
365 366

/* CM_FCLKEN_GFX */
367
#define OMAP3430ES1_EN_3D_MASK				(1 << 2)
368
#define OMAP3430ES1_EN_3D_SHIFT				2
369
#define OMAP3430ES1_EN_2D_MASK				(1 << 1)
370 371 372 373 374 375 376 377 378 379 380 381 382 383 384
#define OMAP3430ES1_EN_2D_SHIFT				1

/* CM_ICLKEN_GFX specific bits */

/* CM_IDLEST_GFX specific bits */

/* CM_CLKSEL_GFX specific bits */

/* CM_SLEEPDEP_GFX specific bits */

/* CM_CLKSTCTRL_GFX */
#define OMAP3430ES1_CLKTRCTRL_GFX_SHIFT			0
#define OMAP3430ES1_CLKTRCTRL_GFX_MASK			(0x3 << 0)

/* CM_CLKSTST_GFX */
385 386
#define OMAP3430ES1_CLKACTIVITY_GFX_SHIFT		0
#define OMAP3430ES1_CLKACTIVITY_GFX_MASK		(1 << 0)
387 388

/* CM_FCLKEN_SGX */
389 390 391
#define OMAP3430ES2_CM_FCLKEN_SGX_EN_SGX_SHIFT		1
#define OMAP3430ES2_CM_FCLKEN_SGX_EN_SGX_MASK		(1 << 1)

392 393 394 395
/* CM_IDLEST_SGX */
#define OMAP3430ES2_ST_SGX_SHIFT			1
#define OMAP3430ES2_ST_SGX_MASK				(1 << 1)

396 397 398
/* CM_ICLKEN_SGX */
#define OMAP3430ES2_CM_ICLKEN_SGX_EN_SGX_SHIFT		0
#define OMAP3430ES2_CM_ICLKEN_SGX_EN_SGX_MASK		(1 << 0)
399 400 401 402 403

/* CM_CLKSEL_SGX */
#define OMAP3430ES2_CLKSEL_SGX_SHIFT			0
#define OMAP3430ES2_CLKSEL_SGX_MASK			(0x7 << 0)

404 405 406 407 408 409 410 411
/* CM_CLKSTCTRL_SGX */
#define OMAP3430ES2_CLKTRCTRL_SGX_SHIFT			0
#define OMAP3430ES2_CLKTRCTRL_SGX_MASK			(0x3 << 0)

/* CM_CLKSTST_SGX */
#define OMAP3430ES2_CLKACTIVITY_SGX_SHIFT		0
#define OMAP3430ES2_CLKACTIVITY_SGX_MASK		(1 << 0)

412 413
/* CM_FCLKEN_WKUP specific bits */
#define OMAP3430ES2_EN_USIMOCP_SHIFT			9
414
#define OMAP3430ES2_EN_USIMOCP_MASK			(1 << 9)
415 416

/* CM_ICLKEN_WKUP specific bits */
417
#define OMAP3430_EN_WDT1_MASK				(1 << 4)
418
#define OMAP3430_EN_WDT1_SHIFT				4
419
#define OMAP3430_EN_32KSYNC_MASK			(1 << 2)
420 421 422
#define OMAP3430_EN_32KSYNC_SHIFT			2

/* CM_IDLEST_WKUP specific bits */
423 424 425 426 427 428 429 430
#define OMAP3430ES2_ST_USIMOCP_SHIFT			9
#define OMAP3430ES2_ST_USIMOCP_MASK			(1 << 9)
#define OMAP3430_ST_WDT2_SHIFT				5
#define OMAP3430_ST_WDT2_MASK				(1 << 5)
#define OMAP3430_ST_WDT1_SHIFT				4
#define OMAP3430_ST_WDT1_MASK				(1 << 4)
#define OMAP3430_ST_32KSYNC_SHIFT			2
#define OMAP3430_ST_32KSYNC_MASK			(1 << 2)
431 432

/* CM_AUTOIDLE_WKUP */
433
#define OMAP3430ES2_AUTO_USIMOCP_MASK			(1 << 9)
434
#define OMAP3430ES2_AUTO_USIMOCP_SHIFT			9
435
#define OMAP3430_AUTO_WDT2_MASK				(1 << 5)
436
#define OMAP3430_AUTO_WDT2_SHIFT			5
437
#define OMAP3430_AUTO_WDT1_MASK				(1 << 4)
438
#define OMAP3430_AUTO_WDT1_SHIFT			4
439
#define OMAP3430_AUTO_GPIO1_MASK			(1 << 3)
440
#define OMAP3430_AUTO_GPIO1_SHIFT			3
441
#define OMAP3430_AUTO_32KSYNC_MASK			(1 << 2)
442
#define OMAP3430_AUTO_32KSYNC_SHIFT			2
443
#define OMAP3430_AUTO_GPT12_MASK			(1 << 1)
444
#define OMAP3430_AUTO_GPT12_SHIFT			1
445
#define OMAP3430_AUTO_GPT1_MASK				(1 << 0)
446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479
#define OMAP3430_AUTO_GPT1_SHIFT			0

/* CM_CLKSEL_WKUP */
#define OMAP3430ES2_CLKSEL_USIMOCP_MASK			(0xf << 3)
#define OMAP3430_CLKSEL_RM_SHIFT			1
#define OMAP3430_CLKSEL_RM_MASK				(0x3 << 1)
#define OMAP3430_CLKSEL_GPT1_SHIFT			0
#define OMAP3430_CLKSEL_GPT1_MASK			(1 << 0)

/* CM_CLKEN_PLL */
#define OMAP3430_PWRDN_EMU_PERIPH_SHIFT			31
#define OMAP3430_PWRDN_CAM_SHIFT			30
#define OMAP3430_PWRDN_DSS1_SHIFT			29
#define OMAP3430_PWRDN_TV_SHIFT				28
#define OMAP3430_PWRDN_96M_SHIFT			27
#define OMAP3430_PERIPH_DPLL_RAMPTIME_SHIFT		24
#define OMAP3430_PERIPH_DPLL_RAMPTIME_MASK		(0x3 << 24)
#define OMAP3430_PERIPH_DPLL_FREQSEL_SHIFT		20
#define OMAP3430_PERIPH_DPLL_FREQSEL_MASK		(0xf << 20)
#define OMAP3430_EN_PERIPH_DPLL_DRIFTGUARD_SHIFT	19
#define OMAP3430_EN_PERIPH_DPLL_DRIFTGUARD_MASK		(1 << 19)
#define OMAP3430_EN_PERIPH_DPLL_SHIFT			16
#define OMAP3430_EN_PERIPH_DPLL_MASK			(0x7 << 16)
#define OMAP3430_PWRDN_EMU_CORE_SHIFT			12
#define OMAP3430_CORE_DPLL_RAMPTIME_SHIFT		8
#define OMAP3430_CORE_DPLL_RAMPTIME_MASK		(0x3 << 8)
#define OMAP3430_CORE_DPLL_FREQSEL_SHIFT		4
#define OMAP3430_CORE_DPLL_FREQSEL_MASK			(0xf << 4)
#define OMAP3430_EN_CORE_DPLL_DRIFTGUARD_SHIFT		3
#define OMAP3430_EN_CORE_DPLL_DRIFTGUARD_MASK		(1 << 3)
#define OMAP3430_EN_CORE_DPLL_SHIFT			0
#define OMAP3430_EN_CORE_DPLL_MASK			(0x7 << 0)

/* CM_CLKEN2_PLL */
480
#define OMAP3430ES2_EN_PERIPH2_DPLL_LPMODE_SHIFT	10
481 482 483 484 485 486 487 488
#define OMAP3430ES2_PERIPH2_DPLL_RAMPTIME_MASK		(0x3 << 8)
#define OMAP3430ES2_PERIPH2_DPLL_FREQSEL_SHIFT		4
#define OMAP3430ES2_PERIPH2_DPLL_FREQSEL_MASK		(0xf << 4)
#define OMAP3430ES2_EN_PERIPH2_DPLL_DRIFTGUARD_SHIFT	3
#define OMAP3430ES2_EN_PERIPH2_DPLL_SHIFT		0
#define OMAP3430ES2_EN_PERIPH2_DPLL_MASK		(0x7 << 0)

/* CM_IDLEST_CKGEN */
489 490 491 492
#define OMAP3430_ST_54M_CLK_MASK			(1 << 5)
#define OMAP3430_ST_12M_CLK_MASK			(1 << 4)
#define OMAP3430_ST_48M_CLK_MASK			(1 << 3)
#define OMAP3430_ST_96M_CLK_MASK			(1 << 2)
493 494 495 496
#define OMAP3430_ST_PERIPH_CLK_SHIFT			1
#define OMAP3430_ST_PERIPH_CLK_MASK			(1 << 1)
#define OMAP3430_ST_CORE_CLK_SHIFT			0
#define OMAP3430_ST_CORE_CLK_MASK			(1 << 0)
497 498

/* CM_IDLEST2_CKGEN */
499 500
#define OMAP3430ES2_ST_USIM_CLK_SHIFT			2
#define OMAP3430ES2_ST_USIM_CLK_MASK			(1 << 2)
501 502 503 504 505 506 507 508 509 510 511
#define OMAP3430ES2_ST_120M_CLK_SHIFT			1
#define OMAP3430ES2_ST_120M_CLK_MASK			(1 << 1)
#define OMAP3430ES2_ST_PERIPH2_CLK_SHIFT		0
#define OMAP3430ES2_ST_PERIPH2_CLK_MASK			(1 << 0)

/* CM_AUTOIDLE_PLL */
#define OMAP3430_AUTO_PERIPH_DPLL_SHIFT			3
#define OMAP3430_AUTO_PERIPH_DPLL_MASK			(0x7 << 3)
#define OMAP3430_AUTO_CORE_DPLL_SHIFT			0
#define OMAP3430_AUTO_CORE_DPLL_MASK			(0x7 << 0)

512 513 514 515
/* CM_AUTOIDLE2_PLL */
#define OMAP3430ES2_AUTO_PERIPH2_DPLL_SHIFT		0
#define OMAP3430ES2_AUTO_PERIPH2_DPLL_MASK		(0x7 << 0)

516 517 518 519 520 521 522 523
/* CM_CLKSEL1_PLL */
/* Note that OMAP3430_CORE_DPLL_CLKOUT_DIV_MASK was (0x3 << 27) on 3430ES1 */
#define OMAP3430_CORE_DPLL_CLKOUT_DIV_SHIFT		27
#define OMAP3430_CORE_DPLL_CLKOUT_DIV_MASK		(0x1f << 27)
#define OMAP3430_CORE_DPLL_MULT_SHIFT			16
#define OMAP3430_CORE_DPLL_MULT_MASK			(0x7ff << 16)
#define OMAP3430_CORE_DPLL_DIV_SHIFT			8
#define OMAP3430_CORE_DPLL_DIV_MASK			(0x7f << 8)
524 525 526 527 528 529
#define OMAP3430_SOURCE_96M_SHIFT			6
#define OMAP3430_SOURCE_96M_MASK			(1 << 6)
#define OMAP3430_SOURCE_54M_SHIFT			5
#define OMAP3430_SOURCE_54M_MASK			(1 << 5)
#define OMAP3430_SOURCE_48M_SHIFT			3
#define OMAP3430_SOURCE_48M_MASK			(1 << 3)
530 531 532 533

/* CM_CLKSEL2_PLL */
#define OMAP3430_PERIPH_DPLL_MULT_SHIFT			8
#define OMAP3430_PERIPH_DPLL_MULT_MASK			(0x7ff << 8)
534
#define OMAP3630_PERIPH_DPLL_MULT_MASK			(0xfff << 8)
535 536
#define OMAP3430_PERIPH_DPLL_DIV_SHIFT			0
#define OMAP3430_PERIPH_DPLL_DIV_MASK			(0x7f << 0)
537 538 539 540
#define OMAP3630_PERIPH_DPLL_DCO_SEL_SHIFT		21
#define OMAP3630_PERIPH_DPLL_DCO_SEL_MASK		(0x7 << 21)
#define OMAP3630_PERIPH_DPLL_SD_DIV_SHIFT		24
#define OMAP3630_PERIPH_DPLL_SD_DIV_MASK		(0xff << 24)
541 542 543 544

/* CM_CLKSEL3_PLL */
#define OMAP3430_DIV_96M_SHIFT				0
#define OMAP3430_DIV_96M_MASK				(0x1f << 0)
545
#define OMAP3630_DIV_96M_MASK				(0x3f << 0)
546 547 548 549 550 551 552 553 554 555 556 557 558

/* CM_CLKSEL4_PLL */
#define OMAP3430ES2_PERIPH2_DPLL_MULT_SHIFT		8
#define OMAP3430ES2_PERIPH2_DPLL_MULT_MASK		(0x7ff << 8)
#define OMAP3430ES2_PERIPH2_DPLL_DIV_SHIFT		0
#define OMAP3430ES2_PERIPH2_DPLL_DIV_MASK		(0x7f << 0)

/* CM_CLKSEL5_PLL */
#define OMAP3430ES2_DIV_120M_SHIFT			0
#define OMAP3430ES2_DIV_120M_MASK			(0x1f << 0)

/* CM_CLKOUT_CTRL */
#define OMAP3430_CLKOUT2_EN_SHIFT			7
559
#define OMAP3430_CLKOUT2_EN_MASK			(1 << 7)
560 561 562 563 564 565
#define OMAP3430_CLKOUT2_DIV_SHIFT			3
#define OMAP3430_CLKOUT2_DIV_MASK			(0x7 << 3)
#define OMAP3430_CLKOUT2SOURCE_SHIFT			0
#define OMAP3430_CLKOUT2SOURCE_MASK			(0x3 << 0)

/* CM_FCLKEN_DSS */
566
#define OMAP3430_EN_TV_MASK				(1 << 2)
567
#define OMAP3430_EN_TV_SHIFT				2
568
#define OMAP3430_EN_DSS2_MASK				(1 << 1)
569
#define OMAP3430_EN_DSS2_SHIFT				1
570
#define OMAP3430_EN_DSS1_MASK				(1 << 0)
571 572 573
#define OMAP3430_EN_DSS1_SHIFT				0

/* CM_ICLKEN_DSS */
574
#define OMAP3430_CM_ICLKEN_DSS_EN_DSS_MASK		(1 << 0)
575 576 577
#define OMAP3430_CM_ICLKEN_DSS_EN_DSS_SHIFT		0

/* CM_IDLEST_DSS */
578 579 580 581 582 583
#define OMAP3430ES2_ST_DSS_IDLE_SHIFT			1
#define OMAP3430ES2_ST_DSS_IDLE_MASK			(1 << 1)
#define OMAP3430ES2_ST_DSS_STDBY_SHIFT			0
#define OMAP3430ES2_ST_DSS_STDBY_MASK			(1 << 0)
#define OMAP3430ES1_ST_DSS_SHIFT			0
#define OMAP3430ES1_ST_DSS_MASK				(1 << 0)
584 585

/* CM_AUTOIDLE_DSS */
586
#define OMAP3430_AUTO_DSS_MASK				(1 << 0)
587 588 589 590 591
#define OMAP3430_AUTO_DSS_SHIFT				0

/* CM_CLKSEL_DSS */
#define OMAP3430_CLKSEL_TV_SHIFT			8
#define OMAP3430_CLKSEL_TV_MASK				(0x1f << 8)
592
#define OMAP3630_CLKSEL_TV_MASK				(0x3f << 8)
593 594
#define OMAP3430_CLKSEL_DSS1_SHIFT			0
#define OMAP3430_CLKSEL_DSS1_MASK			(0x1f << 0)
595
#define OMAP3630_CLKSEL_DSS1_MASK			(0x3f << 0)
596 597 598 599 600 601 602 603

/* CM_SLEEPDEP_DSS specific bits */

/* CM_CLKSTCTRL_DSS */
#define OMAP3430_CLKTRCTRL_DSS_SHIFT			0
#define OMAP3430_CLKTRCTRL_DSS_MASK			(0x3 << 0)

/* CM_CLKSTST_DSS */
604 605
#define OMAP3430_CLKACTIVITY_DSS_SHIFT			0
#define OMAP3430_CLKACTIVITY_DSS_MASK			(1 << 0)
606 607

/* CM_FCLKEN_CAM specific bits */
608
#define OMAP3430_EN_CSI2_MASK				(1 << 1)
609
#define OMAP3430_EN_CSI2_SHIFT				1
610 611 612 613

/* CM_ICLKEN_CAM specific bits */

/* CM_IDLEST_CAM */
614
#define OMAP3430_ST_CAM_MASK				(1 << 0)
615 616

/* CM_AUTOIDLE_CAM */
617
#define OMAP3430_AUTO_CAM_MASK				(1 << 0)
618 619 620 621 622
#define OMAP3430_AUTO_CAM_SHIFT				0

/* CM_CLKSEL_CAM */
#define OMAP3430_CLKSEL_CAM_SHIFT			0
#define OMAP3430_CLKSEL_CAM_MASK			(0x1f << 0)
623
#define OMAP3630_CLKSEL_CAM_MASK			(0x3f << 0)
624 625 626 627 628 629 630 631

/* CM_SLEEPDEP_CAM specific bits */

/* CM_CLKSTCTRL_CAM */
#define OMAP3430_CLKTRCTRL_CAM_SHIFT			0
#define OMAP3430_CLKTRCTRL_CAM_MASK			(0x3 << 0)

/* CM_CLKSTST_CAM */
632 633
#define OMAP3430_CLKACTIVITY_CAM_SHIFT			0
#define OMAP3430_CLKACTIVITY_CAM_MASK			(1 << 0)
634 635 636 637 638 639

/* CM_FCLKEN_PER specific bits */

/* CM_ICLKEN_PER specific bits */

/* CM_IDLEST_PER */
640 641 642 643 644 645 646 647
#define OMAP3430_ST_WDT3_SHIFT				12
#define OMAP3430_ST_WDT3_MASK				(1 << 12)
#define OMAP3430_ST_MCBSP4_SHIFT			2
#define OMAP3430_ST_MCBSP4_MASK				(1 << 2)
#define OMAP3430_ST_MCBSP3_SHIFT			1
#define OMAP3430_ST_MCBSP3_MASK				(1 << 1)
#define OMAP3430_ST_MCBSP2_SHIFT			0
#define OMAP3430_ST_MCBSP2_MASK				(1 << 0)
648 649

/* CM_AUTOIDLE_PER */
650 651
#define OMAP3630_AUTO_UART4_MASK			(1 << 18)
#define OMAP3630_AUTO_UART4_SHIFT			18
652
#define OMAP3430_AUTO_GPIO6_MASK			(1 << 17)
653
#define OMAP3430_AUTO_GPIO6_SHIFT			17
654
#define OMAP3430_AUTO_GPIO5_MASK			(1 << 16)
655
#define OMAP3430_AUTO_GPIO5_SHIFT			16
656
#define OMAP3430_AUTO_GPIO4_MASK			(1 << 15)
657
#define OMAP3430_AUTO_GPIO4_SHIFT			15
658
#define OMAP3430_AUTO_GPIO3_MASK			(1 << 14)
659
#define OMAP3430_AUTO_GPIO3_SHIFT			14
660
#define OMAP3430_AUTO_GPIO2_MASK			(1 << 13)
661
#define OMAP3430_AUTO_GPIO2_SHIFT			13
662
#define OMAP3430_AUTO_WDT3_MASK				(1 << 12)
663
#define OMAP3430_AUTO_WDT3_SHIFT			12
664
#define OMAP3430_AUTO_UART3_MASK			(1 << 11)
665
#define OMAP3430_AUTO_UART3_SHIFT			11
666
#define OMAP3430_AUTO_GPT9_MASK				(1 << 10)
667
#define OMAP3430_AUTO_GPT9_SHIFT			10
668
#define OMAP3430_AUTO_GPT8_MASK				(1 << 9)
669
#define OMAP3430_AUTO_GPT8_SHIFT			9
670
#define OMAP3430_AUTO_GPT7_MASK				(1 << 8)
671
#define OMAP3430_AUTO_GPT7_SHIFT			8
672
#define OMAP3430_AUTO_GPT6_MASK				(1 << 7)
673
#define OMAP3430_AUTO_GPT6_SHIFT			7
674
#define OMAP3430_AUTO_GPT5_MASK				(1 << 6)
675
#define OMAP3430_AUTO_GPT5_SHIFT			6
676
#define OMAP3430_AUTO_GPT4_MASK				(1 << 5)
677
#define OMAP3430_AUTO_GPT4_SHIFT			5
678
#define OMAP3430_AUTO_GPT3_MASK				(1 << 4)
679
#define OMAP3430_AUTO_GPT3_SHIFT			4
680
#define OMAP3430_AUTO_GPT2_MASK				(1 << 3)
681
#define OMAP3430_AUTO_GPT2_SHIFT			3
682
#define OMAP3430_AUTO_MCBSP4_MASK			(1 << 2)
683
#define OMAP3430_AUTO_MCBSP4_SHIFT			2
684
#define OMAP3430_AUTO_MCBSP3_MASK			(1 << 1)
685
#define OMAP3430_AUTO_MCBSP3_SHIFT			1
686
#define OMAP3430_AUTO_MCBSP2_MASK			(1 << 0)
687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707
#define OMAP3430_AUTO_MCBSP2_SHIFT			0

/* CM_CLKSEL_PER */
#define OMAP3430_CLKSEL_GPT9_MASK			(1 << 7)
#define OMAP3430_CLKSEL_GPT9_SHIFT			7
#define OMAP3430_CLKSEL_GPT8_MASK			(1 << 6)
#define OMAP3430_CLKSEL_GPT8_SHIFT			6
#define OMAP3430_CLKSEL_GPT7_MASK			(1 << 5)
#define OMAP3430_CLKSEL_GPT7_SHIFT			5
#define OMAP3430_CLKSEL_GPT6_MASK			(1 << 4)
#define OMAP3430_CLKSEL_GPT6_SHIFT			4
#define OMAP3430_CLKSEL_GPT5_MASK			(1 << 3)
#define OMAP3430_CLKSEL_GPT5_SHIFT			3
#define OMAP3430_CLKSEL_GPT4_MASK			(1 << 2)
#define OMAP3430_CLKSEL_GPT4_SHIFT			2
#define OMAP3430_CLKSEL_GPT3_MASK			(1 << 1)
#define OMAP3430_CLKSEL_GPT3_SHIFT			1
#define OMAP3430_CLKSEL_GPT2_MASK			(1 << 0)
#define OMAP3430_CLKSEL_GPT2_SHIFT			0

/* CM_SLEEPDEP_PER specific bits */
708
#define OMAP3430_CM_SLEEPDEP_PER_EN_IVA2_MASK		(1 << 2)
709 710 711 712 713 714

/* CM_CLKSTCTRL_PER */
#define OMAP3430_CLKTRCTRL_PER_SHIFT			0
#define OMAP3430_CLKTRCTRL_PER_MASK			(0x3 << 0)

/* CM_CLKSTST_PER */
715 716
#define OMAP3430_CLKACTIVITY_PER_SHIFT			0
#define OMAP3430_CLKACTIVITY_PER_MASK			(1 << 0)
717 718 719 720

/* CM_CLKSEL1_EMU */
#define OMAP3430_DIV_DPLL4_SHIFT			24
#define OMAP3430_DIV_DPLL4_MASK				(0x1f << 24)
721
#define OMAP3630_DIV_DPLL4_MASK				(0x3f << 24)
722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741
#define OMAP3430_DIV_DPLL3_SHIFT			16
#define OMAP3430_DIV_DPLL3_MASK				(0x1f << 16)
#define OMAP3430_CLKSEL_TRACECLK_SHIFT			11
#define OMAP3430_CLKSEL_TRACECLK_MASK			(0x7 << 11)
#define OMAP3430_CLKSEL_PCLK_SHIFT			8
#define OMAP3430_CLKSEL_PCLK_MASK			(0x7 << 8)
#define OMAP3430_CLKSEL_PCLKX2_SHIFT			6
#define OMAP3430_CLKSEL_PCLKX2_MASK			(0x3 << 6)
#define OMAP3430_CLKSEL_ATCLK_SHIFT			4
#define OMAP3430_CLKSEL_ATCLK_MASK			(0x3 << 4)
#define OMAP3430_TRACE_MUX_CTRL_SHIFT			2
#define OMAP3430_TRACE_MUX_CTRL_MASK			(0x3 << 2)
#define OMAP3430_MUX_CTRL_SHIFT				0
#define OMAP3430_MUX_CTRL_MASK				(0x3 << 0)

/* CM_CLKSTCTRL_EMU */
#define OMAP3430_CLKTRCTRL_EMU_SHIFT			0
#define OMAP3430_CLKTRCTRL_EMU_MASK			(0x3 << 0)

/* CM_CLKSTST_EMU */
742 743
#define OMAP3430_CLKACTIVITY_EMU_SHIFT			0
#define OMAP3430_CLKACTIVITY_EMU_MASK			(1 << 0)
744 745 746 747 748 749 750 751 752 753 754 755 756 757

/* CM_CLKSEL2_EMU specific bits */
#define OMAP3430_CORE_DPLL_EMU_MULT_SHIFT		8
#define OMAP3430_CORE_DPLL_EMU_MULT_MASK		(0x7ff << 8)
#define OMAP3430_CORE_DPLL_EMU_DIV_SHIFT		0
#define OMAP3430_CORE_DPLL_EMU_DIV_MASK			(0x7f << 0)

/* CM_CLKSEL3_EMU specific bits */
#define OMAP3430_PERIPH_DPLL_EMU_MULT_SHIFT		8
#define OMAP3430_PERIPH_DPLL_EMU_MULT_MASK		(0x7ff << 8)
#define OMAP3430_PERIPH_DPLL_EMU_DIV_SHIFT		0
#define OMAP3430_PERIPH_DPLL_EMU_DIV_MASK		(0x7f << 0)

/* CM_POLCTRL */
758
#define OMAP3430_CLKOUT2_POL_MASK			(1 << 0)
759 760

/* CM_IDLEST_NEON */
761
#define OMAP3430_ST_NEON_MASK				(1 << 0)
762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777

/* CM_CLKSTCTRL_NEON */
#define OMAP3430_CLKTRCTRL_NEON_SHIFT			0
#define OMAP3430_CLKTRCTRL_NEON_MASK			(0x3 << 0)

/* CM_FCLKEN_USBHOST */
#define OMAP3430ES2_EN_USBHOST2_SHIFT			1
#define OMAP3430ES2_EN_USBHOST2_MASK			(1 << 1)
#define OMAP3430ES2_EN_USBHOST1_SHIFT			0
#define OMAP3430ES2_EN_USBHOST1_MASK			(1 << 0)

/* CM_ICLKEN_USBHOST */
#define OMAP3430ES2_EN_USBHOST_SHIFT			0
#define OMAP3430ES2_EN_USBHOST_MASK			(1 << 0)

/* CM_IDLEST_USBHOST */
778 779 780 781
#define OMAP3430ES2_ST_USBHOST_IDLE_SHIFT		1
#define OMAP3430ES2_ST_USBHOST_IDLE_MASK		(1 << 1)
#define OMAP3430ES2_ST_USBHOST_STDBY_SHIFT		0
#define OMAP3430ES2_ST_USBHOST_STDBY_MASK		(1 << 0)
782 783 784 785 786 787 788 789 790 791 792 793 794 795 796

/* CM_AUTOIDLE_USBHOST */
#define OMAP3430ES2_AUTO_USBHOST_SHIFT			0
#define OMAP3430ES2_AUTO_USBHOST_MASK			(1 << 0)

/* CM_SLEEPDEP_USBHOST */
#define OMAP3430ES2_EN_MPU_SHIFT			1
#define OMAP3430ES2_EN_MPU_MASK				(1 << 1)
#define OMAP3430ES2_EN_IVA2_SHIFT			2
#define OMAP3430ES2_EN_IVA2_MASK			(1 << 2)

/* CM_CLKSTCTRL_USBHOST */
#define OMAP3430ES2_CLKTRCTRL_USBHOST_SHIFT		0
#define OMAP3430ES2_CLKTRCTRL_USBHOST_MASK		(3 << 0)

797 798 799
/* CM_CLKSTST_USBHOST */
#define OMAP3430ES2_CLKACTIVITY_USBHOST_SHIFT		0
#define OMAP3430ES2_CLKACTIVITY_USBHOST_MASK		(1 << 0)
800

801 802 803 804 805 806 807 808 809 810 811
/*
 *
 */

/* OMAP3XXX CM_CLKSTCTRL_*.CLKTRCTRL_* register bit values */
#define OMAP34XX_CLKSTCTRL_DISABLE_AUTO		0x0
#define OMAP34XX_CLKSTCTRL_FORCE_SLEEP		0x1
#define OMAP34XX_CLKSTCTRL_FORCE_WAKEUP		0x2
#define OMAP34XX_CLKSTCTRL_ENABLE_AUTO		0x3


812
#endif