]> git.sur5r.net Git - u-boot/commitdiff
axs103: add support of generic OHCI USB 1.1 controller
authorAlexey Brodkin <abrodkin@synopsys.com>
Thu, 10 Dec 2015 13:56:42 +0000 (16:56 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Mon, 21 Dec 2015 20:29:04 +0000 (23:29 +0300)
This commit adds support of USB 1.1 storage media on AXS103 board.
For some yet unknown reason USB 2.0 doesn't work on AXS103 board issuing
messages like this:
------------------------>8-------------------
AXS# usb start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... EHCI timed out on TD - token=0x80008c80
unable to get device descriptor (error=-1)
1 USB Device(s) found
------------------------>8-------------------

As a work-around we're falling back to USB 1.1.
Indeed it is much slower but at least USB storage devices are usable on
AXS103.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Simon Glass <sjg@chromium.org>
arch/arc/dts/axs10x.dts
configs/axs103_defconfig
include/configs/axs101.h

index 80e6d6b15d49463147d85fae30f867cc451ec882..391d0671584c0f24fa7c3e160e77c33aa63b0d1e 100644 (file)
                reg = < 0xe0040000 0x100 >;
                interrupts = < 8 >;
        };
+
+       ohci@0xe0060000 {
+               compatible = "generic-ohci";
+               reg = < 0xe0060000 0x100 >;
+               interrupts = < 8 >;
+       };
 };
index 3c65c834f14102bbfb89134214b2f30562265cc6..a208a27c214c0f47d0bb9b7ec5557618d64466a0 100644 (file)
@@ -21,7 +21,6 @@ CONFIG_ETH_DESIGNWARE=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
-CONFIG_USB_EHCI_HCD=y
-CONFIG_USB_EHCI_GENERIC=y
+CONFIG_USB_OHCI_GENERIC=y
 CONFIG_USB_STORAGE=y
 CONFIG_USE_PRIVATE_LIBGCC=y
index 650d97d17f23e9d8c8f18a5b2c0f68fbf23bf0a9..c92cca274fcee97095ad86037c0233d13e8a0cb3 100644 (file)
  */
 #define CONFIG_DW_AUTONEG
 
+/*
+ * USB 1.1 configuration
+ */
+#define CONFIG_USB_OHCI_NEW
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1
+
 /*
  * Commands still not supported in Kconfig
  */