diff options
author | Cory Maccarrone <darkstar6262@gmail.com> | 2009-12-11 16:16:34 -0800 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-12-11 16:16:34 -0800 |
commit | 106997c1a4aa3a34d8e04fa0138ba332f7ceafef (patch) | |
tree | 2eb807445f245aae5d670de5a8b995e4e359fd82 /arch/arm/plat-omap/usb.c | |
parent | f8e9e98454606e43b728269de21db349f57861c7 (diff) | |
download | linux-106997c1a4aa3a34d8e04fa0138ba332f7ceafef.tar.gz linux-106997c1a4aa3a34d8e04fa0138ba332f7ceafef.tar.bz2 linux-106997c1a4aa3a34d8e04fa0138ba332f7ceafef.zip |
omap1: Add omap7xx USB support
This change implements USB client side support into the HTC
Herald board configuration. It uses a similar, but updated
algorithm to initialize the USB as is used in the linwizard
project.
Signed-off-by: Cory Maccarrone <darkstar6262@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/usb.c')
-rw-r--r-- | arch/arm/plat-omap/usb.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/usb.c b/arch/arm/plat-omap/usb.c index 51033a4503c3..d3bf17cd36f3 100644 --- a/arch/arm/plat-omap/usb.c +++ b/arch/arm/plat-omap/usb.c @@ -137,7 +137,13 @@ static u32 __init omap_usb0_init(unsigned nwires, unsigned is_device) if (is_device) { if (cpu_is_omap24xx()) omap_cfg_reg(J20_24XX_USB0_PUEN); - else + else if (cpu_is_omap7xx()) { + omap_cfg_reg(AA17_7XX_USB_DM); + omap_cfg_reg(W16_7XX_USB_PU_EN); + omap_cfg_reg(W17_7XX_USB_VBUSI); + omap_cfg_reg(W18_7XX_USB_DMCK_OUT); + omap_cfg_reg(W19_7XX_USB_DCRST); + } else omap_cfg_reg(W4_USB_PUEN); } |