From: John Keeping Date: Thu, 14 Jul 2022 14:18:37 +0000 (+0100) Subject: rockchip: rk3308: fix same-as-spl boot order X-Git-Tag: v2025.01-rc5-pxa1908~1293^2~11 X-Git-Url: http://git.dujemihanovic.xyz/html/index.html?a=commitdiff_plain;h=74f7025ea67ee4165405e51dfb032d4fd050e345;p=u-boot.git rockchip: rk3308: fix same-as-spl boot order Rockchip SoCs need the boot_devices array defined in order to map the bootloader's value to a U-Boot device. Implement this for rk3308. Signed-off-by: John Keeping Reviewed-by: Philipp Tomsich Reviewed-by: Kever Yang --- diff --git a/arch/arm/mach-rockchip/rk3308/rk3308.c b/arch/arm/mach-rockchip/rk3308/rk3308.c index 70fe0d0ac3..dd9109b7c3 100644 --- a/arch/arm/mach-rockchip/rk3308/rk3308.c +++ b/arch/arm/mach-rockchip/rk3308/rk3308.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -142,6 +143,11 @@ enum { #define GPIO0_A4 4 +const char * const boot_devices[BROM_LAST_BOOTSOURCE + 1] = { + [BROM_BOOTSOURCE_EMMC] = "/mmc@ff490000", + [BROM_BOOTSOURCE_SD] = "/mmc@ff480000", +}; + int rk_board_init(void) { static struct rk3308_grf * const grf = (void *)GRF_BASE;