summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVagrant Cascadian <vagrant@debian.org>2022-04-06 23:42:03 +0300
committerKever Yang <kever.yang@rock-chips.com>2022-04-18 06:25:12 +0300
commit48cd7a1f6ccb7d971460e95a2b6c053d6e2a28d1 (patch)
tree54139cd000164e10565e1e128e50b7486bebf8d5 /include
parent0abb5b0426e5c20bdbb5748196569a2b5533d711 (diff)
downloadu-boot-48cd7a1f6ccb7d971460e95a2b6c053d6e2a28d1.tar.xz
rockchip: Enable SCSI in distro bootcmd for rk3399.
Include SCSI in the list of boot targets if CONFIG_CMD_SCSI is enabled. Signed-off-by: Vagrant Cascadian <vagrant@debian.org> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/rockchip-common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h
index ba7061a287..0c08776ae2 100644
--- a/include/configs/rockchip-common.h
+++ b/include/configs/rockchip-common.h
@@ -29,6 +29,12 @@
#define BOOT_TARGET_NVME(func)
#endif
+#if CONFIG_IS_ENABLED(CMD_SCSI)
+ #define BOOT_TARGET_SCSI(func) func(SCSI, scsi, 0)
+#else
+ #define BOOT_TARGET_SCSI(func)
+#endif
+
#if CONFIG_IS_ENABLED(CMD_USB)
#define BOOT_TARGET_USB(func) func(USB, usb, 0)
#else
@@ -57,6 +63,7 @@
#define BOOT_TARGET_DEVICES(func) \
BOOT_TARGET_MMC(func) \
BOOT_TARGET_NVME(func) \
+ BOOT_TARGET_SCSI(func) \
BOOT_TARGET_USB(func) \
BOOT_TARGET_PXE(func) \
BOOT_TARGET_DHCP(func) \