diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-12-04 07:19:23 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-12-04 07:19:23 +0000 |
commit | 520de84638dbfe785e72edc67253956f88fde906 (patch) | |
tree | 7dc0e5b72b419008b5583580eda6a7cc3cf4d628 /target/linux | |
parent | c0f240134f667aac07e15b63ff86914b70a8cddb (diff) | |
download | upstream-520de84638dbfe785e72edc67253956f88fde906.tar.gz upstream-520de84638dbfe785e72edc67253956f88fde906.tar.bz2 upstream-520de84638dbfe785e72edc67253956f88fde906.zip |
add ar913x specific USB setup
SVN-Revision: 13505
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/platform.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c b/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c index ad22e06e17..5c8791be28 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c @@ -103,6 +103,18 @@ static void ar71xx_usb_setup(void) mdelay(900); } +static void ar91xx_usb_setup(void) +{ + ar71xx_device_stop(RESET_MODULE_USBSUS_OVERRIDE); + mdelay(10); + + ar71xx_device_start(RESET_MODULE_USB_HOST); + mdelay(10); + + ar71xx_device_start(RESET_MODULE_USB_PHY); + mdelay(10); +} + void __init ar71xx_add_device_usb(void) { switch (ar71xx_soc) { @@ -116,6 +128,7 @@ void __init ar71xx_add_device_usb(void) case AR71XX_SOC_AR9130: case AR71XX_SOC_AR9132: + ar91xx_usb_setup(); ar71xx_ehci_data.is_ar91xx = 1; platform_device_register(&ar71xx_ehci_device); break; |