summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEddie Cai <eddie.cai.linux@gmail.com>2017-04-01 06:49:54 (GMT)
committerSimon Glass <sjg@chromium.org>2017-04-15 16:13:17 (GMT)
commit1e9d6c159f8e7981cece88f5f43f834506f6fbe5 (patch)
treed168ba1d5e9b9df6167dcfe6169519fe33d7a407
parentbfc664ba8bacc76d0837504dcb5fc9b5606ac2ba (diff)
downloadu-boot-fsl-qoriq-1e9d6c159f8e7981cece88f5f43f834506f6fbe5.tar.xz
rockchip: Add USB to the default boot targets
Now that most rockchip SoC based board have usb host support, enable USB boot targets by default. Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com> Acked-by: Simon Glass <sjg@chromium.org> Fixed build errors when CONFIG_CMD_USB not defined: Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--include/configs/rockchip-common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h
index fd930c1..9d183ce 100644
--- a/include/configs/rockchip-common.h
+++ b/include/configs/rockchip-common.h
@@ -12,11 +12,20 @@
#include <config_distro_defaults.h>
/* First try to boot from SD (index 0), then eMMC (index 1 */
+#ifdef CONFIG_CMD_USB
#define BOOT_TARGET_DEVICES(func) \
func(MMC, mmc, 0) \
func(MMC, mmc, 1) \
+ func(USB, usb, 0) \
func(PXE, pxe, na) \
func(DHCP, dchp, na)
+#else
+#define BOOT_TARGET_DEVICES(func) \
+ func(MMC, mmc, 0) \
+ func(MMC, mmc, 1) \
+ func(PXE, pxe, na) \
+ func(DHCP, dchp, na)
+#endif
#define CONFIG_RANDOM_UUID
#define PARTS_DEFAULT \