[PATCH 3/4] rockchip: rk3308: add support for sdmmc boot

Pegorer Massimo Massimo.Pegorer at vimar.com
Sat Jul 15 12:19:40 CEST 2023


Some ROCK Pi S SKU/models are not equipped with SD-NAND (eMMC),
therefore SPL needs access to sdmmc: add it to rk3308-u-boot.dtsi
with bootph-all property.

Signed-off-by: Massimo Pegorer <massimo.pegorer at vimar.com>
---
 arch/arm/dts/rk3308-rock-pi-s-u-boot.dtsi | 2 +-
 arch/arm/dts/rk3308-u-boot.dtsi           | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm/dts/rk3308-rock-pi-s-u-boot.dtsi b/arch/arm/dts/rk3308-rock-pi-s-u-boot.dtsi
index a27a3adc08..09694b41e5 100644
--- a/arch/arm/dts/rk3308-rock-pi-s-u-boot.dtsi
+++ b/arch/arm/dts/rk3308-rock-pi-s-u-boot.dtsi
@@ -6,7 +6,7 @@
 
 / {
 	chosen {
-		u-boot,spl-boot-order = "same-as-spl", &emmc;
+		u-boot,spl-boot-order = "same-as-spl", &emmc, &sdmmc;
 	};
 };
 
diff --git a/arch/arm/dts/rk3308-u-boot.dtsi b/arch/arm/dts/rk3308-u-boot.dtsi
index c8451b2475..db2c20a705 100644
--- a/arch/arm/dts/rk3308-u-boot.dtsi
+++ b/arch/arm/dts/rk3308-u-boot.dtsi
@@ -26,6 +26,11 @@
 	bootph-all;
 };
 
+&sdmmc {
+	bootph-all;
+	u-boot,spl-fifo-mode;
+};
+
 &grf {
 	bootph-all;
 };
-- 
2.34.1



More information about the U-Boot mailing list