[U-Boot] [RFC PATCH 5/5] am335x_evm: enable musb gadget on port 0

Ilya Yanok ilya.yanok at cogentembedded.com
Wed Aug 8 23:13:01 CEST 2012


Enable musb gadget in Ethernet mode on port 0.

Signed-off-by: Ilya Yanok <ilya.yanok at cogentembedded.com>
---
 include/configs/am335x_evm.h |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index c827ebf..e0f0656 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -224,6 +224,25 @@
 #define CONFIG_SKIP_LOWLEVEL_INIT
 #endif
 
+
+/*
+ * USB configuration
+ */
+
+#define CONFIG_USB_AM335X
+#define CONFIG_MUSB_GADGET
+#define CONFIG_MUSB_GADGET_PORT0
+#define CONFIG_MUSB_PIO_ONLY
+#define CONFIG_USB_GADGET_DUALSPEED
+
+#ifdef CONFIG_MUSB_GADGET
+#define CONFIG_USB_ETHER
+#define CONFIG_USB_ETH_RNDIS
+#define CONFIG_CMD_NET
+#define CONFIG_CMD_DHCP
+#define CONFIG_CMD_TFTP
+#endif /* CONFIG_MUSB_GADGET */
+
 /* Unsupported features */
 #undef CONFIG_USE_IRQ
 
-- 
1.7.9.5



More information about the U-Boot mailing list