When VPL is in use, memory init happens in SPL, so there is no need to
include the DMC device before that. Adjust the tags to save space.

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

(no changes since v3)

Changes in v3:
- Unindent bootph tags

Changes in v2:
- Only enable MMC when VPM is in use.

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

diff --git a/arch/arm/dts/rk3399-u-boot.dtsi b/arch/arm/dts/rk3399-u-boot.dtsi
index 587eef9504e..8b530401541 100644
--- a/arch/arm/dts/rk3399-u-boot.dtsi
+++ b/arch/arm/dts/rk3399-u-boot.dtsi
@@ -46,7 +46,12 @@
               0x0 0xffa88800 0x0 0x1800
               0x0 0xffa8a000 0x0 0x2000
               0x0 0xffa8c000 0x0 0x1000>;
+#ifdef CONFIG_VPL
+       bootph-pre-ram;
+       bootph-some-ram;
+#else
        bootph-all;
+#endif
        status = "okay";
 };
 
@@ -93,6 +98,10 @@
 };
 
 &sdmmc {
+#ifdef CONFIG_VPL
+       bootph-pre-sram;
+       bootph-verify;
+#endif
        bootph-pre-ram;
        bootph-some-ram;
 
-- 
2.43.0

Reply via email to