[PATCH 3/3] rockchip: Enable RAM boot using ROCKCHIP_MASKROM_IMAGE

Jonas Karlman jonas at kwiboo.se
Fri Feb 21 00:13:52 CET 2025


Imply ROCKCHIP_MASKROM_IMAGE to build maskrom RAM boot images for
RK3308, RK3328, RK3399, RK356x and RK3588.

Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
---
These are SoCs that have fully migrated to COMMON_STACK_ADDR and that
I have been able to runtime test maskrom RAM boot on.

An alternative approach could be to add a rockchip_ramboot.config that
enables the ROCKCHIP_MASKROM_IMAGE Kconfig symbol.
---
 arch/arm/mach-rockchip/Kconfig | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index c798cca60efb..74b303d001e6 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -180,6 +180,7 @@ config ROCKCHIP_RK3308
 	imply ROCKCHIP_COMMON_BOARD
 	imply ROCKCHIP_COMMON_STACK_ADDR
 	imply ROCKCHIP_EXTERNAL_TPL
+	imply ROCKCHIP_MASKROM_IMAGE
 	imply ROCKCHIP_OTP
 	imply SPL_CLK
 	imply SPL_DM_SEQ_ALIAS
@@ -214,6 +215,7 @@ config ROCKCHIP_RK3328
 	imply ROCKCHIP_COMMON_BOARD
 	imply ROCKCHIP_COMMON_STACK_ADDR
 	imply ROCKCHIP_EFUSE
+	imply ROCKCHIP_MASKROM_IMAGE
 	imply ROCKCHIP_SDRAM_COMMON
 	imply SPL_ROCKCHIP_COMMON_BOARD
 	imply SPL_SEPARATE_BSS
@@ -293,6 +295,7 @@ config ROCKCHIP_RK3399
 	imply ROCKCHIP_COMMON_BOARD
 	imply ROCKCHIP_COMMON_STACK_ADDR
 	imply ROCKCHIP_EFUSE
+	imply ROCKCHIP_MASKROM_IMAGE
 	imply ROCKCHIP_SDRAM_COMMON
 	imply SPL_DM_SEQ_ALIAS
 	imply SPL_FIT_SIGNATURE
@@ -343,6 +346,7 @@ config ROCKCHIP_RK3568
 	imply ROCKCHIP_COMMON_BOARD
 	imply ROCKCHIP_COMMON_STACK_ADDR
 	imply ROCKCHIP_EXTERNAL_TPL
+	imply ROCKCHIP_MASKROM_IMAGE
 	imply ROCKCHIP_OTP
 	imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF
 	imply SPL_MMC_HS200_SUPPORT if SPL_MMC && MMC_HS200_SUPPORT
@@ -378,6 +382,7 @@ config ROCKCHIP_RK3588
 	imply ROCKCHIP_COMMON_BOARD
 	imply ROCKCHIP_COMMON_STACK_ADDR
 	imply ROCKCHIP_EXTERNAL_TPL
+	imply ROCKCHIP_MASKROM_IMAGE
 	imply ROCKCHIP_OTP
 	imply SCMI_FIRMWARE
 	imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF
-- 
2.48.1



More information about the U-Boot mailing list