prcm-common.h 14.6 KB
Newer Older
1 2 3 4 5 6
#ifndef __ARCH_ASM_MACH_OMAP2_PRCM_COMMON_H
#define __ARCH_ASM_MACH_OMAP2_PRCM_COMMON_H

/*
 * OMAP2/3 PRCM base and module definitions
 *
7 8
 * Copyright (C) 2007-2009 Texas Instruments, Inc.
 * Copyright (C) 2007-2009 Nokia Corporation
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
 *
 * 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.
 */

/* Module offsets from both CM_BASE & PRM_BASE */

/*
 * Offsets that are the same on 24xx and 34xx
 *
 * Technically, in terms of the TRM, OCP_MOD is 34xx only; PLL_MOD is
 * CCR_MOD on 3430; and GFX_MOD only exists < 3430ES2.
 */
#define OCP_MOD						0x000
#define MPU_MOD						0x100
#define CORE_MOD					0x200
#define GFX_MOD						0x300
#define WKUP_MOD					0x400
#define PLL_MOD						0x500


/* Chip-specific module offsets */
34
#define OMAP24XX_GR_MOD					OCP_MOD
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
#define OMAP24XX_DSP_MOD				0x800

#define OMAP2430_MDM_MOD				0xc00

/* IVA2 module is < base on 3430 */
#define OMAP3430_IVA2_MOD				-0x800
#define OMAP3430ES2_SGX_MOD				GFX_MOD
#define OMAP3430_CCR_MOD				PLL_MOD
#define OMAP3430_DSS_MOD				0x600
#define OMAP3430_CAM_MOD				0x700
#define OMAP3430_PER_MOD				0x800
#define OMAP3430_EMU_MOD				0x900
#define OMAP3430_GR_MOD					0xa00
#define OMAP3430_NEON_MOD				0xb00
#define OMAP3430ES2_USBHOST_MOD				0xc00

/* 24XX register bits shared between CM & PRM registers */

/* CM_FCLKEN1_CORE, CM_ICLKEN1_CORE, PM_WKEN1_CORE shared bits */
#define OMAP2420_EN_MMC_SHIFT				26
55
#define OMAP2420_EN_MMC_MASK				(1 << 26)
56
#define OMAP24XX_EN_UART2_SHIFT				22
57
#define OMAP24XX_EN_UART2_MASK				(1 << 22)
58
#define OMAP24XX_EN_UART1_SHIFT				21
59
#define OMAP24XX_EN_UART1_MASK				(1 << 21)
60
#define OMAP24XX_EN_MCSPI2_SHIFT			18
61
#define OMAP24XX_EN_MCSPI2_MASK				(1 << 18)
62
#define OMAP24XX_EN_MCSPI1_SHIFT			17
63
#define OMAP24XX_EN_MCSPI1_MASK				(1 << 17)
64
#define OMAP24XX_EN_MCBSP2_SHIFT			16
65
#define OMAP24XX_EN_MCBSP2_MASK				(1 << 16)
66
#define OMAP24XX_EN_MCBSP1_SHIFT			15
67
#define OMAP24XX_EN_MCBSP1_MASK				(1 << 15)
68
#define OMAP24XX_EN_GPT12_SHIFT				14
69
#define OMAP24XX_EN_GPT12_MASK				(1 << 14)
70
#define OMAP24XX_EN_GPT11_SHIFT				13
71
#define OMAP24XX_EN_GPT11_MASK				(1 << 13)
72
#define OMAP24XX_EN_GPT10_SHIFT				12
73
#define OMAP24XX_EN_GPT10_MASK				(1 << 12)
74
#define OMAP24XX_EN_GPT9_SHIFT				11
75
#define OMAP24XX_EN_GPT9_MASK				(1 << 11)
76
#define OMAP24XX_EN_GPT8_SHIFT				10
77
#define OMAP24XX_EN_GPT8_MASK				(1 << 10)
78
#define OMAP24XX_EN_GPT7_SHIFT				9
79
#define OMAP24XX_EN_GPT7_MASK				(1 << 9)
80
#define OMAP24XX_EN_GPT6_SHIFT				8
81
#define OMAP24XX_EN_GPT6_MASK				(1 << 8)
82
#define OMAP24XX_EN_GPT5_SHIFT				7
83
#define OMAP24XX_EN_GPT5_MASK				(1 << 7)
84
#define OMAP24XX_EN_GPT4_SHIFT				6
85
#define OMAP24XX_EN_GPT4_MASK				(1 << 6)
86
#define OMAP24XX_EN_GPT3_SHIFT				5
87
#define OMAP24XX_EN_GPT3_MASK				(1 << 5)
88
#define OMAP24XX_EN_GPT2_SHIFT				4
89
#define OMAP24XX_EN_GPT2_MASK				(1 << 4)
90
#define OMAP2420_EN_VLYNQ_SHIFT				3
91
#define OMAP2420_EN_VLYNQ_MASK				(1 << 3)
92 93 94

/* CM_FCLKEN2_CORE, CM_ICLKEN2_CORE, PM_WKEN2_CORE shared bits */
#define OMAP2430_EN_GPIO5_SHIFT				10
95
#define OMAP2430_EN_GPIO5_MASK				(1 << 10)
96
#define OMAP2430_EN_MCSPI3_SHIFT			9
97
#define OMAP2430_EN_MCSPI3_MASK				(1 << 9)
98
#define OMAP2430_EN_MMCHS2_SHIFT			8
99
#define OMAP2430_EN_MMCHS2_MASK				(1 << 8)
100
#define OMAP2430_EN_MMCHS1_SHIFT			7
101
#define OMAP2430_EN_MMCHS1_MASK				(1 << 7)
102
#define OMAP24XX_EN_UART3_SHIFT				2
103
#define OMAP24XX_EN_UART3_MASK				(1 << 2)
104
#define OMAP24XX_EN_USB_SHIFT				0
105
#define OMAP24XX_EN_USB_MASK				(1 << 0)
106 107 108

/* CM_ICLKEN2_CORE, PM_WKEN2_CORE shared bits */
#define OMAP2430_EN_MDM_INTC_SHIFT			11
109
#define OMAP2430_EN_MDM_INTC_MASK			(1 << 11)
110
#define OMAP2430_EN_USBHS_SHIFT				6
111
#define OMAP2430_EN_USBHS_MASK				(1 << 6)
112 113

/* CM_IDLEST1_CORE, PM_WKST1_CORE shared bits */
114 115 116 117 118 119 120 121 122 123
#define OMAP2420_ST_MMC_SHIFT				26
#define OMAP2420_ST_MMC_MASK				(1 << 26)
#define OMAP24XX_ST_UART2_SHIFT				22
#define OMAP24XX_ST_UART2_MASK				(1 << 22)
#define OMAP24XX_ST_UART1_SHIFT				21
#define OMAP24XX_ST_UART1_MASK				(1 << 21)
#define OMAP24XX_ST_MCSPI2_SHIFT			18
#define OMAP24XX_ST_MCSPI2_MASK				(1 << 18)
#define OMAP24XX_ST_MCSPI1_SHIFT			17
#define OMAP24XX_ST_MCSPI1_MASK				(1 << 17)
C
Charulatha V 已提交
124 125 126 127
#define OMAP24XX_ST_MCBSP2_SHIFT			16
#define OMAP24XX_ST_MCBSP2_MASK				(1 << 16)
#define OMAP24XX_ST_MCBSP1_SHIFT			15
#define OMAP24XX_ST_MCBSP1_MASK				(1 << 15)
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
#define OMAP24XX_ST_GPT12_SHIFT				14
#define OMAP24XX_ST_GPT12_MASK				(1 << 14)
#define OMAP24XX_ST_GPT11_SHIFT				13
#define OMAP24XX_ST_GPT11_MASK				(1 << 13)
#define OMAP24XX_ST_GPT10_SHIFT				12
#define OMAP24XX_ST_GPT10_MASK				(1 << 12)
#define OMAP24XX_ST_GPT9_SHIFT				11
#define OMAP24XX_ST_GPT9_MASK				(1 << 11)
#define OMAP24XX_ST_GPT8_SHIFT				10
#define OMAP24XX_ST_GPT8_MASK				(1 << 10)
#define OMAP24XX_ST_GPT7_SHIFT				9
#define OMAP24XX_ST_GPT7_MASK				(1 << 9)
#define OMAP24XX_ST_GPT6_SHIFT				8
#define OMAP24XX_ST_GPT6_MASK				(1 << 8)
#define OMAP24XX_ST_GPT5_SHIFT				7
#define OMAP24XX_ST_GPT5_MASK				(1 << 7)
#define OMAP24XX_ST_GPT4_SHIFT				6
#define OMAP24XX_ST_GPT4_MASK				(1 << 6)
#define OMAP24XX_ST_GPT3_SHIFT				5
#define OMAP24XX_ST_GPT3_MASK				(1 << 5)
#define OMAP24XX_ST_GPT2_SHIFT				4
#define OMAP24XX_ST_GPT2_MASK				(1 << 4)
#define OMAP2420_ST_VLYNQ_SHIFT				3
#define OMAP2420_ST_VLYNQ_MASK				(1 << 3)
152 153

/* CM_IDLEST2_CORE, PM_WKST2_CORE shared bits */
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
#define OMAP2430_ST_MDM_INTC_SHIFT			11
#define OMAP2430_ST_MDM_INTC_MASK			(1 << 11)
#define OMAP2430_ST_GPIO5_SHIFT				10
#define OMAP2430_ST_GPIO5_MASK				(1 << 10)
#define OMAP2430_ST_MCSPI3_SHIFT			9
#define OMAP2430_ST_MCSPI3_MASK				(1 << 9)
#define OMAP2430_ST_MMCHS2_SHIFT			8
#define OMAP2430_ST_MMCHS2_MASK				(1 << 8)
#define OMAP2430_ST_MMCHS1_SHIFT			7
#define OMAP2430_ST_MMCHS1_MASK				(1 << 7)
#define OMAP2430_ST_USBHS_SHIFT				6
#define OMAP2430_ST_USBHS_MASK				(1 << 6)
#define OMAP24XX_ST_UART3_SHIFT				2
#define OMAP24XX_ST_UART3_MASK				(1 << 2)
#define OMAP24XX_ST_USB_SHIFT				0
#define OMAP24XX_ST_USB_MASK				(1 << 0)
170 171 172

/* CM_FCLKEN_WKUP, CM_ICLKEN_WKUP, PM_WKEN_WKUP shared bits */
#define OMAP24XX_EN_GPIOS_SHIFT				2
173
#define OMAP24XX_EN_GPIOS_MASK				(1 << 2)
174
#define OMAP24XX_EN_GPT1_SHIFT				0
175
#define OMAP24XX_EN_GPT1_MASK				(1 << 0)
176 177

/* PM_WKST_WKUP, CM_IDLEST_WKUP shared bits */
178 179 180 181
#define OMAP24XX_ST_GPIOS_SHIFT				2
#define OMAP24XX_ST_GPIOS_MASK				(1 << 2)
#define OMAP24XX_ST_GPT1_SHIFT				0
#define OMAP24XX_ST_GPT1_MASK				(1 << 0)
182 183

/* CM_IDLEST_MDM and PM_WKST_MDM shared bits */
184 185
#define OMAP2430_ST_MDM_SHIFT				0
#define OMAP2430_ST_MDM_MASK				(1 << 0)
186 187 188 189 190 191 192 193 194


/* 3430 register bits shared between CM & PRM registers */

/* CM_REVISION, PRM_REVISION shared bits */
#define OMAP3430_REV_SHIFT				0
#define OMAP3430_REV_MASK				(0xff << 0)

/* CM_SYSCONFIG, PRM_SYSCONFIG shared bits */
195
#define OMAP3430_AUTOIDLE_MASK				(1 << 0)
196 197

/* CM_FCLKEN1_CORE, CM_ICLKEN1_CORE, PM_WKEN1_CORE shared bits */
198
#define OMAP3430_EN_MMC2_MASK				(1 << 25)
199
#define OMAP3430_EN_MMC2_SHIFT				25
200
#define OMAP3430_EN_MMC1_MASK				(1 << 24)
201
#define OMAP3430_EN_MMC1_SHIFT				24
202
#define OMAP3430_EN_MCSPI4_MASK				(1 << 21)
203
#define OMAP3430_EN_MCSPI4_SHIFT			21
204
#define OMAP3430_EN_MCSPI3_MASK				(1 << 20)
205
#define OMAP3430_EN_MCSPI3_SHIFT			20
206
#define OMAP3430_EN_MCSPI2_MASK				(1 << 19)
207
#define OMAP3430_EN_MCSPI2_SHIFT			19
208
#define OMAP3430_EN_MCSPI1_MASK				(1 << 18)
209
#define OMAP3430_EN_MCSPI1_SHIFT			18
210
#define OMAP3430_EN_I2C3_MASK				(1 << 17)
211
#define OMAP3430_EN_I2C3_SHIFT				17
212
#define OMAP3430_EN_I2C2_MASK				(1 << 16)
213
#define OMAP3430_EN_I2C2_SHIFT				16
214
#define OMAP3430_EN_I2C1_MASK				(1 << 15)
215
#define OMAP3430_EN_I2C1_SHIFT				15
216
#define OMAP3430_EN_UART2_MASK				(1 << 14)
217
#define OMAP3430_EN_UART2_SHIFT				14
218
#define OMAP3430_EN_UART1_MASK				(1 << 13)
219
#define OMAP3430_EN_UART1_SHIFT				13
220
#define OMAP3430_EN_GPT11_MASK				(1 << 12)
221
#define OMAP3430_EN_GPT11_SHIFT				12
222
#define OMAP3430_EN_GPT10_MASK				(1 << 11)
223
#define OMAP3430_EN_GPT10_SHIFT				11
224
#define OMAP3430_EN_MCBSP5_MASK				(1 << 10)
225
#define OMAP3430_EN_MCBSP5_SHIFT			10
226
#define OMAP3430_EN_MCBSP1_MASK				(1 << 9)
227
#define OMAP3430_EN_MCBSP1_SHIFT			9
228
#define OMAP3430_EN_FSHOSTUSB_MASK			(1 << 5)
229
#define OMAP3430_EN_FSHOSTUSB_SHIFT			5
230
#define OMAP3430_EN_D2D_MASK				(1 << 3)
231 232 233
#define OMAP3430_EN_D2D_SHIFT				3

/* CM_ICLKEN1_CORE, PM_WKEN1_CORE shared bits */
234 235
#define OMAP3430_EN_HSOTGUSB_MASK			(1 << 4)
#define OMAP3430_EN_HSOTGUSB_SHIFT			4
236 237

/* PM_WKST1_CORE, CM_IDLEST1_CORE shared bits */
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277
#define OMAP3430_ST_MMC2_SHIFT				25
#define OMAP3430_ST_MMC2_MASK				(1 << 25)
#define OMAP3430_ST_MMC1_SHIFT				24
#define OMAP3430_ST_MMC1_MASK				(1 << 24)
#define OMAP3430_ST_MCSPI4_SHIFT			21
#define OMAP3430_ST_MCSPI4_MASK				(1 << 21)
#define OMAP3430_ST_MCSPI3_SHIFT			20
#define OMAP3430_ST_MCSPI3_MASK				(1 << 20)
#define OMAP3430_ST_MCSPI2_SHIFT			19
#define OMAP3430_ST_MCSPI2_MASK				(1 << 19)
#define OMAP3430_ST_MCSPI1_SHIFT			18
#define OMAP3430_ST_MCSPI1_MASK				(1 << 18)
#define OMAP3430_ST_I2C3_SHIFT				17
#define OMAP3430_ST_I2C3_MASK				(1 << 17)
#define OMAP3430_ST_I2C2_SHIFT				16
#define OMAP3430_ST_I2C2_MASK				(1 << 16)
#define OMAP3430_ST_I2C1_SHIFT				15
#define OMAP3430_ST_I2C1_MASK				(1 << 15)
#define OMAP3430_ST_UART2_SHIFT				14
#define OMAP3430_ST_UART2_MASK				(1 << 14)
#define OMAP3430_ST_UART1_SHIFT				13
#define OMAP3430_ST_UART1_MASK				(1 << 13)
#define OMAP3430_ST_GPT11_SHIFT				12
#define OMAP3430_ST_GPT11_MASK				(1 << 12)
#define OMAP3430_ST_GPT10_SHIFT				11
#define OMAP3430_ST_GPT10_MASK				(1 << 11)
#define OMAP3430_ST_MCBSP5_SHIFT			10
#define OMAP3430_ST_MCBSP5_MASK				(1 << 10)
#define OMAP3430_ST_MCBSP1_SHIFT			9
#define OMAP3430_ST_MCBSP1_MASK				(1 << 9)
#define OMAP3430ES1_ST_FSHOSTUSB_SHIFT			5
#define OMAP3430ES1_ST_FSHOSTUSB_MASK			(1 << 5)
#define OMAP3430ES1_ST_HSOTGUSB_SHIFT			4
#define OMAP3430ES1_ST_HSOTGUSB_MASK			(1 << 4)
#define OMAP3430ES2_ST_HSOTGUSB_IDLE_SHIFT		5
#define OMAP3430ES2_ST_HSOTGUSB_IDLE_MASK		(1 << 5)
#define OMAP3430ES2_ST_HSOTGUSB_STDBY_SHIFT		4
#define OMAP3430ES2_ST_HSOTGUSB_STDBY_MASK		(1 << 4)
#define OMAP3430_ST_D2D_SHIFT				3
#define OMAP3430_ST_D2D_MASK				(1 << 3)
278 279

/* CM_FCLKEN_WKUP, CM_ICLKEN_WKUP, PM_WKEN_WKUP shared bits */
280
#define OMAP3430_EN_GPIO1_MASK				(1 << 3)
281
#define OMAP3430_EN_GPIO1_SHIFT				3
282
#define OMAP3430_EN_GPT12_MASK				(1 << 1)
283
#define OMAP3430_EN_GPT12_SHIFT				1
284
#define OMAP3430_EN_GPT1_MASK				(1 << 0)
285 286 287
#define OMAP3430_EN_GPT1_SHIFT				0

/* CM_FCLKEN_WKUP, PM_WKEN_WKUP shared bits */
288
#define OMAP3430_EN_SR2_MASK				(1 << 7)
289
#define OMAP3430_EN_SR2_SHIFT				7
290
#define OMAP3430_EN_SR1_MASK				(1 << 6)
291 292 293
#define OMAP3430_EN_SR1_SHIFT				6

/* CM_ICLKEN_WKUP, PM_WKEN_WKUP shared bits */
294
#define OMAP3430_EN_GPT12_MASK				(1 << 1)
295 296 297
#define OMAP3430_EN_GPT12_SHIFT				1

/* CM_IDLEST_WKUP, PM_WKST_WKUP shared bits */
298 299 300 301 302 303 304 305 306 307
#define OMAP3430_ST_SR2_SHIFT				7
#define OMAP3430_ST_SR2_MASK				(1 << 7)
#define OMAP3430_ST_SR1_SHIFT				6
#define OMAP3430_ST_SR1_MASK				(1 << 6)
#define OMAP3430_ST_GPIO1_SHIFT				3
#define OMAP3430_ST_GPIO1_MASK				(1 << 3)
#define OMAP3430_ST_GPT12_SHIFT				1
#define OMAP3430_ST_GPT12_MASK				(1 << 1)
#define OMAP3430_ST_GPT1_SHIFT				0
#define OMAP3430_ST_GPT1_MASK				(1 << 0)
308 309 310 311 312 313

/*
 * CM_SLEEPDEP_GFX, CM_SLEEPDEP_DSS, CM_SLEEPDEP_CAM,
 * CM_SLEEPDEP_PER, PM_WKDEP_IVA2, PM_WKDEP_GFX,
 * PM_WKDEP_DSS, PM_WKDEP_CAM, PM_WKDEP_PER, PM_WKDEP_NEON shared bits
 */
314
#define OMAP3430_EN_MPU_MASK				(1 << 1)
315 316 317
#define OMAP3430_EN_MPU_SHIFT				1

/* CM_FCLKEN_PER, CM_ICLKEN_PER, PM_WKEN_PER shared bits */
318 319 320

#define OMAP3630_EN_UART4_MASK				(1 << 18)
#define OMAP3630_EN_UART4_SHIFT				18
321
#define OMAP3430_EN_GPIO6_MASK				(1 << 17)
322
#define OMAP3430_EN_GPIO6_SHIFT				17
323
#define OMAP3430_EN_GPIO5_MASK				(1 << 16)
324
#define OMAP3430_EN_GPIO5_SHIFT				16
325
#define OMAP3430_EN_GPIO4_MASK				(1 << 15)
326
#define OMAP3430_EN_GPIO4_SHIFT				15
327
#define OMAP3430_EN_GPIO3_MASK				(1 << 14)
328
#define OMAP3430_EN_GPIO3_SHIFT				14
329
#define OMAP3430_EN_GPIO2_MASK				(1 << 13)
330
#define OMAP3430_EN_GPIO2_SHIFT				13
331
#define OMAP3430_EN_UART3_MASK				(1 << 11)
332
#define OMAP3430_EN_UART3_SHIFT				11
333
#define OMAP3430_EN_GPT9_MASK				(1 << 10)
334
#define OMAP3430_EN_GPT9_SHIFT				10
335
#define OMAP3430_EN_GPT8_MASK				(1 << 9)
336
#define OMAP3430_EN_GPT8_SHIFT				9
337
#define OMAP3430_EN_GPT7_MASK				(1 << 8)
338
#define OMAP3430_EN_GPT7_SHIFT				8
339
#define OMAP3430_EN_GPT6_MASK				(1 << 7)
340
#define OMAP3430_EN_GPT6_SHIFT				7
341
#define OMAP3430_EN_GPT5_MASK				(1 << 6)
342
#define OMAP3430_EN_GPT5_SHIFT				6
343
#define OMAP3430_EN_GPT4_MASK				(1 << 5)
344
#define OMAP3430_EN_GPT4_SHIFT				5
345
#define OMAP3430_EN_GPT3_MASK				(1 << 4)
346
#define OMAP3430_EN_GPT3_SHIFT				4
347
#define OMAP3430_EN_GPT2_MASK				(1 << 3)
348 349 350 351 352
#define OMAP3430_EN_GPT2_SHIFT				3

/* CM_FCLKEN_PER, CM_ICLKEN_PER, PM_WKEN_PER, PM_WKST_PER shared bits */
/* XXX Possible TI documentation bug: should the PM_WKST_PER EN_* bits
 * be ST_* bits instead? */
353
#define OMAP3430_EN_MCBSP4_MASK				(1 << 2)
354
#define OMAP3430_EN_MCBSP4_SHIFT			2
355
#define OMAP3430_EN_MCBSP3_MASK				(1 << 1)
356
#define OMAP3430_EN_MCBSP3_SHIFT			1
357
#define OMAP3430_EN_MCBSP2_MASK				(1 << 0)
358 359 360
#define OMAP3430_EN_MCBSP2_SHIFT			0

/* CM_IDLEST_PER, PM_WKST_PER shared bits */
361 362
#define OMAP3630_ST_UART4_SHIFT				18
#define OMAP3630_ST_UART4_MASK				(1 << 18)
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390
#define OMAP3430_ST_GPIO6_SHIFT				17
#define OMAP3430_ST_GPIO6_MASK				(1 << 17)
#define OMAP3430_ST_GPIO5_SHIFT				16
#define OMAP3430_ST_GPIO5_MASK				(1 << 16)
#define OMAP3430_ST_GPIO4_SHIFT				15
#define OMAP3430_ST_GPIO4_MASK				(1 << 15)
#define OMAP3430_ST_GPIO3_SHIFT				14
#define OMAP3430_ST_GPIO3_MASK				(1 << 14)
#define OMAP3430_ST_GPIO2_SHIFT				13
#define OMAP3430_ST_GPIO2_MASK				(1 << 13)
#define OMAP3430_ST_UART3_SHIFT				11
#define OMAP3430_ST_UART3_MASK				(1 << 11)
#define OMAP3430_ST_GPT9_SHIFT				10
#define OMAP3430_ST_GPT9_MASK				(1 << 10)
#define OMAP3430_ST_GPT8_SHIFT				9
#define OMAP3430_ST_GPT8_MASK				(1 << 9)
#define OMAP3430_ST_GPT7_SHIFT				8
#define OMAP3430_ST_GPT7_MASK				(1 << 8)
#define OMAP3430_ST_GPT6_SHIFT				7
#define OMAP3430_ST_GPT6_MASK				(1 << 7)
#define OMAP3430_ST_GPT5_SHIFT				6
#define OMAP3430_ST_GPT5_MASK				(1 << 6)
#define OMAP3430_ST_GPT4_SHIFT				5
#define OMAP3430_ST_GPT4_MASK				(1 << 5)
#define OMAP3430_ST_GPT3_SHIFT				4
#define OMAP3430_ST_GPT3_MASK				(1 << 4)
#define OMAP3430_ST_GPT2_SHIFT				3
#define OMAP3430_ST_GPT2_MASK				(1 << 3)
391 392

/* CM_SLEEPDEP_PER, PM_WKDEP_IVA2, PM_WKDEP_MPU, PM_WKDEP_PER shared bits */
393 394
#define OMAP3430_EN_CORE_SHIFT				0
#define OMAP3430_EN_CORE_MASK				(1 << 0)
395

396 397 398 399 400 401 402

/*
 * MAX_MODULE_HARDRESET_WAIT: Maximum microseconds to wait for an OMAP
 * submodule to exit hardreset
 */
#define MAX_MODULE_HARDRESET_WAIT		10000

403 404 405 406 407 408
# ifndef __ASSEMBLER__
extern void __iomem *prm_base;
extern void __iomem *cm_base;
extern void __iomem *cm2_base;
# endif

409 410
#endif