summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@openbsd.org>2022-01-22 22:38:19 +0300
committerTom Rini <trini@konsulko.com>2022-02-11 00:44:23 +0300
commitdbb273a5b6c02fd5a191ce4c059c596439a839fe (patch)
tree951d0dee4c9991da3db7bad333f6b57689e61351 /include/configs
parent50333c94f2de161cdfda2ef1c9845c3a28e7a5d6 (diff)
downloadu-boot-dbb273a5b6c02fd5a191ce4c059c596439a839fe.tar.xz
configs: apple: Add NVMe boot target
Add a boot target for NVMe such that we can boot from NVMe. Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/apple.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/configs/apple.h b/include/configs/apple.h
index 3e5fb495f1..47faad8150 100644
--- a/include/configs/apple.h
+++ b/include/configs/apple.h
@@ -13,6 +13,12 @@
"fdt_addr_r=0x960100000\0" \
"kernel_addr_r=0x960200000\0"
+#if CONFIG_IS_ENABLED(CMD_NVME)
+ #define BOOT_TARGET_NVME(func) func(NVME, nvme, 0)
+#else
+ #define BOOT_TARGET_NVME(func)
+#endif
+
#if CONFIG_IS_ENABLED(CMD_USB)
#define BOOT_TARGET_USB(func) func(USB, usb, 0)
#else
@@ -20,6 +26,7 @@
#endif
#define BOOT_TARGET_DEVICES(func) \
+ BOOT_TARGET_NVME(func) \
BOOT_TARGET_USB(func)
#include <config_distro_bootcmd.h>