rockchip: rk3399: sync spl_boot_devices_tbl and boot_devices node paths
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>
Fri, 15 Jul 2022 15:15:52 +0000 (17:15 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Sun, 4 Sep 2022 12:00:39 +0000 (20:00 +0800)
While technically not a bug, let's have some consistency in paths
returned by u-boot,spl-boot-order look-up and the one saved in
u-boot,spl-boot-device by syncing spl_boot_devices_tbl and boot_devices
node paths.

Cc: Quentin Schulz <foss+uboot@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Tested-by: Xavier Drudis Ferran <xdrudis@tinet.cat>
Reviewed-by: Xavier Drudis Ferran <xdrudis@tinet.cat>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/rk3399/rk3399.c

index 819cc7fa1be08b42e5c6f1e7c0f887cb9c780b3c..21db03b961c63243fd0c9957843043b4456e516c 100644 (file)
@@ -182,7 +182,7 @@ const char *spl_decode_boot_device(u32 boot_device)
        } spl_boot_devices_tbl[] = {
                { BOOT_DEVICE_MMC2, "/mmc@fe320000" },
                { BOOT_DEVICE_MMC1, "/mmc@fe330000" },
-               { BOOT_DEVICE_SPI, "/spi@ff1d0000" },
+               { BOOT_DEVICE_SPI, "/spi@ff1d0000/flash@0" },
        };
 
        for (i = 0; i < ARRAY_SIZE(spl_boot_devices_tbl); ++i)