[packages/uboot] fix for emmc boot on rk3399

atler atler at pld-linux.org
Tue Nov 2 11:14:03 CET 2021


commit 7e4e32cd8fc17325b52660ac20644a7d5392d7e3
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Nov 2 11:11:38 2021 +0100

    fix for emmc boot on rk3399

 rk3399-emmc.patch | 36 ++++++++++++++++++++++++++++++++++++
 uboot.spec        |  2 ++
 2 files changed, 38 insertions(+)
---
diff --git a/uboot.spec b/uboot.spec
index a8c47d0..8fb9524 100644
--- a/uboot.spec
+++ b/uboot.spec
@@ -9,6 +9,7 @@ Source0:	https://ftp.denx.de/pub/u-boot/u-boot-%{version}.tar.bz2
 # Source0-md5:	f1392080facf59dd2c34096a5fd95d4c
 Patch0:		rpi-Enable-using-the-DT-provided-by-the-Raspberry-Pi.patch
 Patch1:		%{name}-pbp_usb_hang.patch
+Patch2:		rk3399-emmc.patch
 URL:		https://www.denx.de/wiki/U-Boot
 %ifarch aarch64
 BuildRequires:	arm-trusted-firmware-armv8
@@ -116,6 +117,7 @@ czasie utworzenia, sumach kontrolnych CRC32 itp.
 %endif
 %ifarch aarch64
 %patch1 -p1
+%patch2 -p1
 %endif
 
 %build
diff --git a/rk3399-emmc.patch b/rk3399-emmc.patch
new file mode 100644
index 0000000..7ca032a
--- /dev/null
+++ b/rk3399-emmc.patch
@@ -0,0 +1,36 @@
+From u-boot  Mon Nov 01 04:43:47 2021
+From: Yifeng Zhao <yifeng.zhao () rock-chips ! com>
+Date: Mon, 01 Nov 2021 04:43:47 +0000
+To: u-boot
+Subject: [PATCH] dts: rockchip: rk3399: enable emmc phy for spl
+Message-Id: <20211101044347.17822-1-yifeng.zhao () rock-chips ! com>
+X-MARC-Message: https://marc.info/?l=u-boot&m=163574185622041
+
+adapting commit ac804143cf ("mmc: rockchip_sdhci: add phy and clock
+config for rk3399") to fix the issue "Not found emmc phy device".
+
+Signed-off-by: Yifeng Zhao <yifeng.zhao at rock-chips.com>
+---
+
+ arch/arm/dts/rk3399-u-boot.dtsi | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/arch/arm/dts/rk3399-u-boot.dtsi b/arch/arm/dts/rk3399-u-boot.dtsi
+index 73922c328a..716b9a433a 100644
+--- a/arch/arm/dts/rk3399-u-boot.dtsi
++++ b/arch/arm/dts/rk3399-u-boot.dtsi
+@@ -88,6 +88,10 @@
+ 	u-boot,dm-pre-reloc;
+ };
+ 
++&emmc_phy {
++	u-boot,dm-pre-reloc;
++};
++
+ &grf {
+ 	u-boot,dm-pre-reloc;
+ };
+-- 
+2.17.1
+
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/uboot.git/commitdiff/7e4e32cd8fc17325b52660ac20644a7d5392d7e3



More information about the pld-cvs-commit mailing list