]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
rockchip: Add USB to the default boot targets
authorEddie Cai <eddie.cai.linux@gmail.com>
Sat, 1 Apr 2017 06:49:54 +0000 (14:49 +0800)
committerSimon Glass <sjg@chromium.org>
Sat, 15 Apr 2017 16:13:17 +0000 (10:13 -0600)
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>
include/configs/rockchip-common.h

index fd930c101ebf6bb050da4fd77479b9a5bc3d8e92..9d183cee6a8e167b4822a7f5cc074302b8f3c427 100644 (file)
 #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 \