From 612fd9e5e0154104579f7c8686f0725b577daf6c Mon Sep 17 00:00:00 2001 From: Kever Yang Date: Mon, 22 Jul 2019 19:59:33 +0800 Subject: [PATCH] rockchip: rk3328: 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 --- arch/arm/mach-rockchip/rk3328/rk3328.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3328/rk3328.c b/arch/arm/mach-rockchip/rk3328/rk3328.c index 1cf829dc34..222a8d36d3 100644 --- a/arch/arm/mach-rockchip/rk3328/rk3328.c +++ b/arch/arm/mach-rockchip/rk3328/rk3328.c @@ -4,12 +4,18 @@ */ #include +#include #include #include #include DECLARE_GLOBAL_DATA_PTR; +const char * const boot_devices[BROM_LAST_BOOTSOURCE + 1] = { + [BROM_BOOTSOURCE_EMMC] = "rksdmmc@ff520000", + [BROM_BOOTSOURCE_SD] = "rksdmmc@ff500000", +}; + static struct mm_region rk3328_mem_map[] = { { .virt = 0x0UL, -- 2.25.1