diff options
author | Jouni Hogander <jouni.hogander@nokia.com> | 2008-05-16 06:58:18 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-02-08 12:50:36 -0500 |
commit | 027d8ded5d1c142eb120caff7a395c0637467ac9 (patch) | |
tree | ff1bc885922ebf034810ddffebb2469f37154e32 /arch/arm | |
parent | ee1eec36345871955730e36232937c9d814a6e20 (diff) |
[ARM] OMAP34XX: Add miscellaneous definitions related to 34xx
Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/cm-regbits-34xx.h | 7 | ||||
-rw-r--r-- | arch/arm/mach-omap2/prm-regbits-34xx.h | 9 | ||||
-rw-r--r-- | arch/arm/mach-omap2/prm.h | 24 |
3 files changed, 29 insertions, 11 deletions
diff --git a/arch/arm/mach-omap2/cm-regbits-34xx.h b/arch/arm/mach-omap2/cm-regbits-34xx.h index aaf68a59800e..844356cc75bd 100644 --- a/arch/arm/mach-omap2/cm-regbits-34xx.h +++ b/arch/arm/mach-omap2/cm-regbits-34xx.h | |||
@@ -208,6 +208,10 @@ | |||
208 | #define OMAP3430ES2_ST_USBTLL_MASK (1 << 2) | 208 | #define OMAP3430ES2_ST_USBTLL_MASK (1 << 2) |
209 | 209 | ||
210 | /* CM_AUTOIDLE1_CORE */ | 210 | /* CM_AUTOIDLE1_CORE */ |
211 | #define OMAP3430ES2_AUTO_MMC3 (1 << 30) | ||
212 | #define OMAP3430ES2_AUTO_MMC3_SHIFT 30 | ||
213 | #define OMAP3430ES2_AUTO_ICR (1 << 29) | ||
214 | #define OMAP3430ES2_AUTO_ICR_SHIFT 29 | ||
211 | #define OMAP3430_AUTO_AES2 (1 << 28) | 215 | #define OMAP3430_AUTO_AES2 (1 << 28) |
212 | #define OMAP3430_AUTO_AES2_SHIFT 28 | 216 | #define OMAP3430_AUTO_AES2_SHIFT 28 |
213 | #define OMAP3430_AUTO_SHA12 (1 << 27) | 217 | #define OMAP3430_AUTO_SHA12 (1 << 27) |
@@ -276,6 +280,9 @@ | |||
276 | #define OMAP3430_AUTO_DES1_SHIFT 0 | 280 | #define OMAP3430_AUTO_DES1_SHIFT 0 |
277 | 281 | ||
278 | /* CM_AUTOIDLE3_CORE */ | 282 | /* CM_AUTOIDLE3_CORE */ |
283 | #define OMAP3430ES2_AUTO_USBHOST (1 << 0) | ||
284 | #define OMAP3430ES2_AUTO_USBHOST_SHIFT 0 | ||
285 | #define OMAP3430ES2_AUTO_USBTLL (1 << 2) | ||
279 | #define OMAP3430ES2_AUTO_USBTLL_SHIFT 2 | 286 | #define OMAP3430ES2_AUTO_USBTLL_SHIFT 2 |
280 | #define OMAP3430ES2_AUTO_USBTLL_MASK (1 << 2) | 287 | #define OMAP3430ES2_AUTO_USBTLL_MASK (1 << 2) |
281 | 288 | ||
diff --git a/arch/arm/mach-omap2/prm-regbits-34xx.h b/arch/arm/mach-omap2/prm-regbits-34xx.h index 5b5ecfe6c999..c6a7940f4287 100644 --- a/arch/arm/mach-omap2/prm-regbits-34xx.h +++ b/arch/arm/mach-omap2/prm-regbits-34xx.h | |||
@@ -366,6 +366,7 @@ | |||
366 | 366 | ||
367 | /* PM_WKEN_WKUP specific bits */ | 367 | /* PM_WKEN_WKUP specific bits */ |
368 | #define OMAP3430_EN_IO (1 << 8) | 368 | #define OMAP3430_EN_IO (1 << 8) |
369 | #define OMAP3430_EN_GPIO1 (1 << 3) | ||
369 | 370 | ||
370 | /* PM_MPUGRPSEL_WKUP specific bits */ | 371 | /* PM_MPUGRPSEL_WKUP specific bits */ |
371 | 372 | ||
@@ -452,6 +453,14 @@ | |||
452 | #define OMAP3430_CMDRA0_MASK (0xff << 0) | 453 | #define OMAP3430_CMDRA0_MASK (0xff << 0) |
453 | 454 | ||
454 | /* PRM_VC_CMD_VAL_0 specific bits */ | 455 | /* PRM_VC_CMD_VAL_0 specific bits */ |
456 | #define OMAP3430_VC_CMD_ON_SHIFT 24 | ||
457 | #define OMAP3430_VC_CMD_ON_MASK (0xFF << 24) | ||
458 | #define OMAP3430_VC_CMD_ONLP_SHIFT 16 | ||
459 | #define OMAP3430_VC_CMD_ONLP_MASK (0xFF << 16) | ||
460 | #define OMAP3430_VC_CMD_RET_SHIFT 8 | ||
461 | #define OMAP3430_VC_CMD_RET_MASK (0xFF << 8) | ||
462 | #define OMAP3430_VC_CMD_OFF_SHIFT 0 | ||
463 | #define OMAP3430_VC_CMD_OFF_MASK (0xFF << 0) | ||
455 | 464 | ||
456 | /* PRM_VC_CMD_VAL_1 specific bits */ | 465 | /* PRM_VC_CMD_VAL_1 specific bits */ |
457 | 466 | ||
diff --git a/arch/arm/mach-omap2/prm.h b/arch/arm/mach-omap2/prm.h index e4dc4b17881d..826d326b8062 100644 --- a/arch/arm/mach-omap2/prm.h +++ b/arch/arm/mach-omap2/prm.h | |||
@@ -141,6 +141,19 @@ | |||
141 | #define PM_PWSTCTRL 0x00e0 | 141 | #define PM_PWSTCTRL 0x00e0 |
142 | #define PM_PWSTST 0x00e4 | 142 | #define PM_PWSTST 0x00e4 |
143 | 143 | ||
144 | /* Omap2 specific registers */ | ||
145 | #define OMAP24XX_PM_WKEN2 0x00a4 | ||
146 | #define OMAP24XX_PM_WKST2 0x00b4 | ||
147 | |||
148 | #define OMAP24XX_PRCM_IRQSTATUS_DSP 0x00f0 /* IVA mod */ | ||
149 | #define OMAP24XX_PRCM_IRQENABLE_DSP 0x00f4 /* IVA mod */ | ||
150 | #define OMAP24XX_PRCM_IRQSTATUS_IVA 0x00f8 | ||
151 | #define OMAP24XX_PRCM_IRQENABLE_IVA 0x00fc | ||
152 | |||
153 | /* Omap3 specific registers */ | ||
154 | #define OMAP3430ES2_PM_WKEN3 0x00f0 | ||
155 | #define OMAP3430ES2_PM_WKST3 0x00b8 | ||
156 | |||
144 | #define OMAP3430_PM_MPUGRPSEL 0x00a4 | 157 | #define OMAP3430_PM_MPUGRPSEL 0x00a4 |
145 | #define OMAP3430_PM_MPUGRPSEL1 OMAP3430_PM_MPUGRPSEL | 158 | #define OMAP3430_PM_MPUGRPSEL1 OMAP3430_PM_MPUGRPSEL |
146 | 159 | ||
@@ -153,16 +166,6 @@ | |||
153 | #define OMAP3430_PRM_IRQENABLE_IVA2 0x00fc | 166 | #define OMAP3430_PRM_IRQENABLE_IVA2 0x00fc |
154 | 167 | ||
155 | 168 | ||
156 | /* Architecture-specific registers */ | ||
157 | |||
158 | #define OMAP24XX_PM_WKEN2 0x00a4 | ||
159 | #define OMAP24XX_PM_WKST2 0x00b4 | ||
160 | |||
161 | #define OMAP24XX_PRCM_IRQSTATUS_DSP 0x00f0 /* IVA mod */ | ||
162 | #define OMAP24XX_PRCM_IRQENABLE_DSP 0x00f4 /* IVA mod */ | ||
163 | #define OMAP24XX_PRCM_IRQSTATUS_IVA 0x00f8 | ||
164 | #define OMAP24XX_PRCM_IRQENABLE_IVA 0x00fc | ||
165 | |||
166 | #ifndef __ASSEMBLER__ | 169 | #ifndef __ASSEMBLER__ |
167 | 170 | ||
168 | /* Power/reset management domain register get/set */ | 171 | /* Power/reset management domain register get/set */ |
@@ -228,7 +231,6 @@ static inline u32 prm_clear_mod_reg_bits(u32 bits, s16 module, s16 idx) | |||
228 | #define OMAP_RSTTIME1_SHIFT 0 | 231 | #define OMAP_RSTTIME1_SHIFT 0 |
229 | #define OMAP_RSTTIME1_MASK (0xff << 0) | 232 | #define OMAP_RSTTIME1_MASK (0xff << 0) |
230 | 233 | ||
231 | |||
232 | /* PRM_RSTCTRL */ | 234 | /* PRM_RSTCTRL */ |
233 | /* Named RM_RSTCTRL_WKUP on the 24xx */ | 235 | /* Named RM_RSTCTRL_WKUP on the 24xx */ |
234 | /* 2420 calls RST_DPLL3 'RST_DPLL' */ | 236 | /* 2420 calls RST_DPLL3 'RST_DPLL' */ |