[U-Boot] [PATCH 3/3] arm: rpi: Enable USB support on RPi

Marek Vasut marex at denx.de
Sun Sep 21 15:13:24 CEST 2014


Enable DWC2 USB, storage and ethernet support. Tested on RPi B+.

Signed-off-by: Marek Vasut <marex at denx.de>
Cc: Stephen Warren <swarren at wwwdotorg.org>
Cc: Chin Liang See <clsee at altera.com>
Cc: Dinh Nguyen <dinguyen at altera.com>
Cc: Albert Aribaud <albert.u.boot at aribaud.net>
Cc: Tom Rini <trini at ti.com>
Cc: Wolfgang Denk <wd at denx.de>
Cc: Pavel Machek <pavel at denx.de>
---
 include/configs/rpi_b.h | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/include/configs/rpi_b.h b/include/configs/rpi_b.h
index 2d69809..9a53232 100644
--- a/include/configs/rpi_b.h
+++ b/include/configs/rpi_b.h
@@ -124,13 +124,7 @@
 
 /* Some things don't make sense on this HW or yet */
 #undef CONFIG_CMD_FPGA
-#undef CONFIG_CMD_NET
-#undef CONFIG_CMD_NFS
 #undef CONFIG_CMD_SAVEENV
-#undef CONFIG_CMD_DHCP
-#undef CONFIG_CMD_MII
-#undef CONFIG_CMD_NET
-#undef CONFIG_CMD_PING
 
 /* Environment */
 #define ENV_DEVICE_SETTINGS \
@@ -181,4 +175,13 @@
 
 #define CONFIG_BOOTDELAY 2
 
+#define CONFIG_CMD_USB
+#ifdef CONFIG_CMD_USB
+#define CONFIG_USB_DWC2
+#define CONFIG_USB_DWC2_REG_ADDR 0x20980000
+#define CONFIG_USB_STORAGE
+#define CONFIG_USB_HOST_ETHER
+#define CONFIG_USB_ETHER_SMSC95XX
+#endif
+
 #endif
-- 
2.0.0



More information about the U-Boot mailing list