Skip to contentSkip to conversation

rk3399: Enable NVMe distro bootcmd

PATCH New Mark Kettenis 2 participants 2 messages May 24, 2020 – May 25, 2020 Arm Rockchip

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rk3399: Enable NVMe distro bootcmd

Include NVME in the list of boot targets if CONFIG_NVME is enabled.

---
 include/configs/rockchip-common.h | 7 +++++++
 1 file changed, 7 insertions(+)
include/configs/rockchip-common.h +7 -0
index bf8c60d6dd..0b9e24d1db 100644
@@ -23,6 +23,12 @@
 	#define BOOT_TARGET_MMC(func)
 #endif
 
+#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
@@ -50,6 +56,7 @@
 #ifdef CONFIG_ROCKCHIP_RK3399
 #define BOOT_TARGET_DEVICES(func) \
 	BOOT_TARGET_MMC(func) \
+	BOOT_TARGET_NVME(func) \
 	BOOT_TARGET_USB(func) \
 	BOOT_TARGET_PXE(func) \
 	BOOT_TARGET_DHCP(func) \
Signature · 1 line
2.26.2
#1 lore raw

PATCH 1/1 rk3399: Enable NVMe distro bootcmd

Quoted 3 lines · Mark Kettenis

Include NVME in the list of boot targets if CONFIG_NVME is enabled.

Thanks,
- Kever

Quoted 29 lines
---
  include/configs/rockchip-common.h | 7 +++++++
  1 file changed, 7 insertions(+)
include/configs/rockchip-common.h +7 -0
index bf8c60d6dd..0b9e24d1db 100644
@@ -23,6 +23,12 @@
  	#define BOOT_TARGET_MMC(func)
  #endif
 
+#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
@@ -50,6 +56,7 @@
  #ifdef CONFIG_ROCKCHIP_RK3399
  #define BOOT_TARGET_DEVICES(func) \
  	BOOT_TARGET_MMC(func) \
+	BOOT_TARGET_NVME(func) \
  	BOOT_TARGET_USB(func) \
  	BOOT_TARGET_PXE(func) \
  	BOOT_TARGET_DHCP(func) \