From: Jan Palus Date: Tue, 2 Nov 2021 10:11:38 +0000 (+0100) Subject: fix for emmc boot on rk3399 X-Git-Tag: auto/th/uboot-2021.10-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=7e4e32cd8fc17325b52660ac20644a7d5392d7e3;p=packages%2Fuboot.git fix for emmc boot on rk3399 --- 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 +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 +--- + + 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 + + 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