From: Kever Yang Date: Mon, 22 Jul 2019 11:59:30 +0000 (+0800) Subject: rockchip: rk3288: add boot_devices mapping to support 'same-as-spl' X-Git-Tag: v2019.10-rc1~6^2~36 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8af6cafc897a0b3cd7691c6c7f7e5445b31e0665;p=oweals%2Fu-boot.git rockchip: rk3288: add boot_devices mapping to support 'same-as-spl' The driver need a mapping to get the dts node by boot srouce ID. Signed-off-by: Kever Yang --- diff --git a/arch/arm/mach-rockchip/rk3288/rk3288.c b/arch/arm/mach-rockchip/rk3288/rk3288.c index 0a185d676b..04a87d64f4 100644 --- a/arch/arm/mach-rockchip/rk3288/rk3288.c +++ b/arch/arm/mach-rockchip/rk3288/rk3288.c @@ -4,6 +4,7 @@ */ #include #include +#include #include #include #include @@ -13,6 +14,11 @@ DECLARE_GLOBAL_DATA_PTR; #define GRF_BASE 0xff770000 +const char * const boot_devices[BROM_LAST_BOOTSOURCE + 1] = { + [BROM_BOOTSOURCE_EMMC] = "dwmmc@ff0f0000", + [BROM_BOOTSOURCE_SD] = "dwmmc@ff0c0000", +}; + #ifdef CONFIG_SPL_BUILD static void configure_l2ctlr(void) {