[U-Boot] [Patch 5/7] TQMa6: MBa6: add usb support

Markus Niebel list-09_u-boot at tqsc.de
Mon Jun 16 12:50:56 CEST 2014


From: Markus Niebel <Markus.Niebel at tqs.de>

add support for USB and USB storage on the USB ports
on the MBA6 baseboard for TQMa6 moduels

Signed-off-by: Markus Niebel <Markus.Niebel at tq-group.com>
---
 board/tqc/tqma6/tqma6_mba6.c |    7 +++++++
 include/configs/tqma6.h      |   11 +++++++++++
 2 files changed, 18 insertions(+)

diff --git a/board/tqc/tqma6/tqma6_mba6.c b/board/tqc/tqma6/tqma6_mba6.c
index 94df68f..4082e05 100644
--- a/board/tqc/tqma6/tqma6_mba6.c
+++ b/board/tqc/tqma6/tqma6_mba6.c
@@ -293,6 +293,13 @@ int board_eth_init(bd_t *bis)
 	return 0;
 }
 
+#ifdef CONFIG_USB_EHCI_MX6
+int board_ehci_hcd_init(int port)
+{
+	return 0;
+}
+#endif
+
 int tqma6_bb_board_early_init_f(void)
 {
 	mba6_setup_iomuxc_uart();
diff --git a/include/configs/tqma6.h b/include/configs/tqma6.h
index a5ccd06..173a767 100644
--- a/include/configs/tqma6.h
+++ b/include/configs/tqma6.h
@@ -71,6 +71,17 @@
 #define CONFIG_GENERIC_MMC
 #define CONFIG_BOUNCE_BUFFER
 
+/* USB Configs */
+#define CONFIG_CMD_USB
+#define CONFIG_USB_EHCI
+#define CONFIG_USB_EHCI_MX6
+#define CONFIG_USB_STORAGE
+#define CONFIG_USB_HOST_ETHER
+#define CONFIG_USB_ETHER_SMSC95XX
+#define CONFIG_MXC_USB_PORT	1
+#define CONFIG_MXC_USB_PORTSC	(PORT_PTS_UTMI | PORT_PTS_PTW)
+#define CONFIG_MXC_USB_FLAGS	0
+
 /* Fuses */
 #define CONFIG_MXC_OCOTP
 #define CONFIG_CMD_FUSE
-- 
1.7.9.5



More information about the U-Boot mailing list