Commit d0602bd4675c4f49e455b3b7a4aebb9a01287d43

Authored by Alexey Brodkin
1 parent 3721208fa7

axs103: add support of generic OHCI USB 1.1 controller

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>

Showing 3 changed files with 13 additions and 2 deletions Side-by-side Diff

arch/arc/dts/axs10x.dts
... ... @@ -48,5 +48,11 @@
48 48 reg = < 0xe0040000 0x100 >;
49 49 interrupts = < 8 >;
50 50 };
  51 +
  52 + ohci@0xe0060000 {
  53 + compatible = "generic-ohci";
  54 + reg = < 0xe0060000 0x100 >;
  55 + interrupts = < 8 >;
  56 + };
51 57 };
configs/axs103_defconfig
... ... @@ -21,8 +21,7 @@
21 21 CONFIG_SYS_NS16550=y
22 22 CONFIG_USB=y
23 23 CONFIG_DM_USB=y
24   -CONFIG_USB_EHCI_HCD=y
25   -CONFIG_USB_EHCI_GENERIC=y
  24 +CONFIG_USB_OHCI_GENERIC=y
26 25 CONFIG_USB_STORAGE=y
27 26 CONFIG_USE_PRIVATE_LIBGCC=y
include/configs/axs101.h
... ... @@ -105,6 +105,12 @@
105 105 #define CONFIG_DW_AUTONEG
106 106  
107 107 /*
  108 + * USB 1.1 configuration
  109 + */
  110 +#define CONFIG_USB_OHCI_NEW
  111 +#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1
  112 +
  113 +/*
108 114 * Commands still not supported in Kconfig
109 115 */
110 116 #define CONFIG_CMD_FAT