diff options
author | Paul Walmsley <paul@pwsan.com> | 2008-03-18 04:02:50 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2008-04-14 13:27:25 -0400 |
commit | 69d88a00a240fbed07fb6943c862ea3188e9097d (patch) | |
tree | 7656c3266f5e0b2ce6f92f5f0bb843126989a9bb /include/asm-arm/arch-omap/usb.h | |
parent | 9330899e0f878ff3b7a23b856de8bbb52c9c04fd (diff) |
ARM: OMAP2: Add common register access for 24xx and 34xx
This patch adds common register access for 24xx and 34xx power
and clock management in order to share code between 24xx and 34xx.
Only change USB platform init code to use new register access, other
access will be changed in later patches.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'include/asm-arm/arch-omap/usb.h')
-rw-r--r-- | include/asm-arm/arch-omap/usb.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/asm-arm/arch-omap/usb.h b/include/asm-arm/arch-omap/usb.h index 99ae9eabaf71..2147d18aaeae 100644 --- a/include/asm-arm/arch-omap/usb.h +++ b/include/asm-arm/arch-omap/usb.h | |||
@@ -132,14 +132,11 @@ | |||
132 | # define CONF_USB_PWRDN_DP_R (1 << 1) | 132 | # define CONF_USB_PWRDN_DP_R (1 << 1) |
133 | 133 | ||
134 | /* OMAP2 */ | 134 | /* OMAP2 */ |
135 | #define CONTROL_DEVCONF_REG __REG32(L4_24XX_BASE + 0x0274) | ||
136 | # define USB_UNIDIR 0x0 | 135 | # define USB_UNIDIR 0x0 |
137 | # define USB_UNIDIR_TLL 0x1 | 136 | # define USB_UNIDIR_TLL 0x1 |
138 | # define USB_BIDIR 0x2 | 137 | # define USB_BIDIR 0x2 |
139 | # define USB_BIDIR_TLL 0x3 | 138 | # define USB_BIDIR_TLL 0x3 |
140 | # define USBT0WRMODEI(x) ((x) << 22) | 139 | # define USBTXWRMODEI(port, x) ((x) << (22 - (port * 2))) |
141 | # define USBT1WRMODEI(x) ((x) << 20) | ||
142 | # define USBT2WRMODEI(x) ((x) << 18) | ||
143 | # define USBT2TLL5PI (1 << 17) | 140 | # define USBT2TLL5PI (1 << 17) |
144 | # define USB0PUENACTLOI (1 << 16) | 141 | # define USB0PUENACTLOI (1 << 16) |
145 | # define USBSTANDBYCTRL (1 << 15) | 142 | # define USBSTANDBYCTRL (1 << 15) |