Skip to content
Snippets Groups Projects
Commit 1e9d6c15 authored by Eddie Cai's avatar Eddie Cai Committed by Simon Glass
Browse files

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: default avatarEddie Cai <eddie.cai.linux@gmail.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
Fixed build errors when CONFIG_CMD_USB not defined:
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent bfc664ba
No related branches found
No related tags found
No related merge requests found
...@@ -12,11 +12,20 @@ ...@@ -12,11 +12,20 @@
#include <config_distro_defaults.h> #include <config_distro_defaults.h>
/* First try to boot from SD (index 0), then eMMC (index 1 */ /* First try to boot from SD (index 0), then eMMC (index 1 */
#ifdef CONFIG_CMD_USB
#define BOOT_TARGET_DEVICES(func) \ #define BOOT_TARGET_DEVICES(func) \
func(MMC, mmc, 0) \ func(MMC, mmc, 0) \
func(MMC, mmc, 1) \ func(MMC, mmc, 1) \
func(USB, usb, 0) \
func(PXE, pxe, na) \ func(PXE, pxe, na) \
func(DHCP, dchp, 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 CONFIG_RANDOM_UUID
#define PARTS_DEFAULT \ #define PARTS_DEFAULT \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment