summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNeil Armstrong <narmstrong@baylibre.com>2018-06-14 13:43:38 +0200
committerTom Rini <trini@konsulko.com>2018-06-19 07:31:46 -0400
commit0ba089baab192ea92207977d193c5538edd05169 (patch)
treebcadff7264fdbebec3e015989d2259198a9eb9a4 /include
parent0421c9809a6f41a3aebbf2185ffb0c297cf83e22 (diff)
downloadu-boot-0ba089baab192ea92207977d193c5538edd05169.tar.gz
config: meson-gx-common: Enable USB boot
Add USB as boot target depending on the configuration. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/meson-gx-common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/configs/meson-gx-common.h b/include/configs/meson-gx-common.h
index 6e61b704a3..7435f3475e 100644
--- a/include/configs/meson-gx-common.h
+++ b/include/configs/meson-gx-common.h
@@ -23,10 +23,17 @@
#define GICD_BASE 0xc4301000
#define GICC_BASE 0xc4302000
+#ifdef CONFIG_CMD_USB
+#define BOOT_TARGET_DEVICES_USB(func) func(USB, usb, 0)
+#else
+#define BOOT_TARGET_DEVICES_USB(func)
+#endif
+
#define BOOT_TARGET_DEVICES(func) \
func(MMC, mmc, 0) \
func(MMC, mmc, 1) \
func(MMC, mmc, 2) \
+ BOOT_TARGET_DEVICES_USB(func) \
func(PXE, pxe, na) \
func(DHCP, dhcp, na)