summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Brodkin <abrodkin@synopsys.com>2015-12-10 16:56:42 +0300
committerAlexey Brodkin <abrodkin@synopsys.com>2015-12-21 23:29:04 +0300
commitd0602bd4675c4f49e455b3b7a4aebb9a01287d43 (patch)
treedc49c325f04b0c2a92930584d112bf59b38cc69a
parent3721208fa7fdb2af6ac13300d5d81433742c6ba1 (diff)
downloadtalos-obmc-uboot-d0602bd4675c4f49e455b3b7a4aebb9a01287d43.tar.gz
talos-obmc-uboot-d0602bd4675c4f49e455b3b7a4aebb9a01287d43.zip
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>
-rw-r--r--arch/arc/dts/axs10x.dts6
-rw-r--r--configs/axs103_defconfig3
-rw-r--r--include/configs/axs101.h6
3 files changed, 13 insertions, 2 deletions
diff --git a/arch/arc/dts/axs10x.dts b/arch/arc/dts/axs10x.dts
index 80e6d6b15d..391d067158 100644
--- a/arch/arc/dts/axs10x.dts
+++ b/arch/arc/dts/axs10x.dts
@@ -48,4 +48,10 @@
reg = < 0xe0040000 0x100 >;
interrupts = < 8 >;
};
+
+ ohci@0xe0060000 {
+ compatible = "generic-ohci";
+ reg = < 0xe0060000 0x100 >;
+ interrupts = < 8 >;
+ };
};
diff --git a/configs/axs103_defconfig b/configs/axs103_defconfig
index 3c65c834f1..a208a27c21 100644
--- a/configs/axs103_defconfig
+++ b/configs/axs103_defconfig
@@ -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
diff --git a/include/configs/axs101.h b/include/configs/axs101.h
index 650d97d17f..c92cca274f 100644
--- a/include/configs/axs101.h
+++ b/include/configs/axs101.h
@@ -105,6 +105,12 @@
#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
*/
#define CONFIG_CMD_FAT
OpenPOWER on IntegriCloud