]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk3568: Fix boot device detection
authorJonas Karlman <jonas@kwiboo.se>
Tue, 14 Mar 2023 00:38:23 +0000 (00:38 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Sun, 19 Mar 2023 05:17:28 +0000 (13:17 +0800)
The boot source node path for emmc is using the old sdhci name.
Replace with correct mmc name and also add same-as-spl to boot order.

Fixes: 0d61f8e5f1c0 ("rockchip: rk3568: add boot device detection")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk356x-u-boot.dtsi
arch/arm/mach-rockchip/rk3568/rk3568.c

index 23316410496d44928ed2347c438049981790a24a..04a7b0a0f6684358e52c8140d3ba547a9692a8ec 100644 (file)
@@ -12,7 +12,7 @@
        };
 
        chosen {
-               u-boot,spl-boot-order = &sdhci, &sdmmc0;
+               u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc0;
        };
 
        dmc: dmc {
index 4a08820a0937a3f99591ce44ca998ecd44b436e3..69ef19cc85afdb7a90fd6287b8059741509c4cbe 100644 (file)
@@ -82,7 +82,7 @@ static struct mm_region rk3568_mem_map[] = {
 };
 
 const char * const boot_devices[BROM_LAST_BOOTSOURCE + 1] = {
-       [BROM_BOOTSOURCE_EMMC] = "/sdhci@fe310000",
+       [BROM_BOOTSOURCE_EMMC] = "/mmc@fe310000",
        [BROM_BOOTSOURCE_SPINOR] = "/spi@fe300000/flash@0",
        [BROM_BOOTSOURCE_SD] = "/mmc@fe2b0000",
 };