rockchip: rk3328: add boot_devices mapping to support 'same-as-spl'
authorKever Yang <kever.yang@rock-chips.com>
Mon, 22 Jul 2019 11:59:33 +0000 (19:59 +0800)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 29 Jul 2019 02:25:27 +0000 (10:25 +0800)
The driver need a mapping to get the dts node by boot srouce ID.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/rk3328/rk3328.c

index 1cf829d..222a8d3 100644 (file)
@@ -4,12 +4,18 @@
  */
 
 #include <common.h>
+#include <asm/arch-rockchip/bootrom.h>
 #include <asm/arch-rockchip/hardware.h>
 #include <asm/armv8/mmu.h>
 #include <asm/io.h>
 
 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,