VBE may want to load the SPL image from the same FIT as contains U-Boot,
if there is enough memory, so add it.

Signed-off-by: Simon Glass <s...@chromium.org>
---

 arch/arm/dts/rockchip-u-boot.dtsi | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/arch/arm/dts/rockchip-u-boot.dtsi 
b/arch/arm/dts/rockchip-u-boot.dtsi
index 7cce213c32e..39908495894 100644
--- a/arch/arm/dts/rockchip-u-boot.dtsi
+++ b/arch/arm/dts/rockchip-u-boot.dtsi
@@ -72,6 +72,25 @@
                fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
                fit,align = <512>;
                images {
+#ifdef CONFIG_VPL
+                       spl {
+                               description = "U-Boot SPL";
+                               type = "firmware";
+                               os = "u-boot";
+                               arch = ARCH;
+                               compression = "lz4";
+                               load = <CONFIG_SPL_TEXT_BASE>;
+                               entry = <CONFIG_SPL_TEXT_BASE>;
+                               phase = "spl";
+                               section {
+                                       compress = "lz4";
+                                       u-boot-spl-nodtb {
+                                       };
+                                       u-boot-spl-bss-pad {
+                                       };
+                               };
+                       };
+#endif /* VPL */
                        u-boot {
                                description = "U-Boot";
                                type = "standalone";
@@ -172,7 +191,11 @@
                                description = "NAME.dtb";
                                fdt = "fdt-SEQ";
 #ifdef CONFIG_ARM64
+# ifdef CONFIG_VPL
+                               fit,firmware = "atf-1", "u-boot", "spl";
+# else
                                fit,firmware = "atf-1", "u-boot";
+# endif
 #else
                                fit,firmware = "op-tee", "u-boot";
 #endif
-- 
2.43.0

Reply via email to