summaryrefslogtreecommitdiff
path: root/include/configs/rockchip-common.h
diff options
context:
space:
mode:
authorJagan Teki <jagan@amarulasolutions.com>2020-04-10 21:26:31 +0300
committerJagan Teki <jagan@amarulasolutions.com>2020-04-30 20:03:31 +0300
commitf263b860acf82de85e4d61ac67b1e4f62efcf1cc (patch)
treedd2c5914b57687521dd4554d3c7cae5e7fcab22e /include/configs/rockchip-common.h
parentd2c19b740c48c662fe23d02ac8d6514895d8c205 (diff)
downloadu-boot-f263b860acf82de85e4d61ac67b1e4f62efcf1cc.tar.xz
rk3399: Enable SF distro bootcmd
Enable SPI flash(SF) distro boot command in rk3399. This distro boot will read the boot script at specific location at the flash and start sourcing the same. Included the SF device at the last of the target devices list since all the rest of the devices on the list have more possibility to boot the distribution due to the size of the SPI flash is concern. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'include/configs/rockchip-common.h')
-rw-r--r--include/configs/rockchip-common.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h
index b55e09a9ca..bf8c60d6dd 100644
--- a/include/configs/rockchip-common.h
+++ b/include/configs/rockchip-common.h
@@ -41,11 +41,26 @@
#define BOOT_TARGET_DHCP(func)
#endif
+#if CONFIG_IS_ENABLED(CMD_SF)
+ #define BOOT_TARGET_SF(func) func(SF, sf, 0)
+#else
+ #define BOOT_TARGET_SF(func)
+#endif
+
+#ifdef CONFIG_ROCKCHIP_RK3399
+#define BOOT_TARGET_DEVICES(func) \
+ BOOT_TARGET_MMC(func) \
+ BOOT_TARGET_USB(func) \
+ BOOT_TARGET_PXE(func) \
+ BOOT_TARGET_DHCP(func) \
+ BOOT_TARGET_SF(func)
+#else
#define BOOT_TARGET_DEVICES(func) \
BOOT_TARGET_MMC(func) \
BOOT_TARGET_USB(func) \
BOOT_TARGET_PXE(func) \
BOOT_TARGET_DHCP(func)
+#endif
#ifdef CONFIG_ARM64
#define ROOT_UUID "B921B045-1DF0-41C3-AF44-4C6F280D3FAE;\0"