summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Warren <swarren@wwwdotorg.org>2014-09-26 20:51:40 -0600
committerMarek Vasut <marex@denx.de>2014-10-22 22:02:08 +0200
commit227ec97f5173df008f85bf4743e00fe16f991204 (patch)
tree53bcb91affa66e77bd1e8b9f5749069e4e1d6681
parent4f80a06df3c174773b6fc4379f50562bf8db5a62 (diff)
downloadu-boot-imx-227ec97f5173df008f85bf4743e00fe16f991204.zip
u-boot-imx-227ec97f5173df008f85bf4743e00fe16f991204.tar.gz
u-boot-imx-227ec97f5173df008f85bf4743e00fe16f991204.tar.bz2
ARM: rpi_b: enable USB/DHCP/PXE in bootcmd
USB support must be enabled before config_distro_bootcmd.h is included for bootcmd to include USB-related functionality. Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
-rw-r--r--include/configs/rpi_b.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/include/configs/rpi_b.h b/include/configs/rpi_b.h
index 3c3ba9a..6d01b61 100644
--- a/include/configs/rpi_b.h
+++ b/include/configs/rpi_b.h
@@ -77,6 +77,16 @@
#define CONFIG_MMC_SDHCI_IO_ACCESSORS
#define CONFIG_BCM2835_SDHCI
+#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
+#define CONFIG_MISC_INIT_R
+#endif
+
/* Console UART */
#define CONFIG_PL011_SERIAL
#define CONFIG_PL011_CLOCK 3000000
@@ -165,7 +175,10 @@
"ramdisk_addr_r=0x02100000\0" \
#define BOOT_TARGET_DEVICES(func) \
- func(MMC, mmc, 0)
+ func(MMC, mmc, 0) \
+ func(USB, usb, 0) \
+ func(PXE, pxe, na) \
+ func(DHCP, dhcp, na)
#include <config_distro_bootcmd.h>
#define CONFIG_EXTRA_ENV_SETTINGS \
@@ -175,14 +188,4 @@
#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
-#define CONFIG_MISC_INIT_R
-#endif
-
#endif