]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
rockchip: rk3288: add boot_devices mapping to support 'same-as-spl'
authorKever Yang <kever.yang@rock-chips.com>
Mon, 22 Jul 2019 11:59:30 +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/rk3288/rk3288.c

index 0a185d676bf80e91cd55d837c65cb5a19d1e1981..04a87d64f44808b5840dbd3ae1ff3d3b5f6b596c 100644 (file)
@@ -4,6 +4,7 @@
  */
 #include <asm/armv7.h>
 #include <asm/io.h>
+#include <asm/arch-rockchip/bootrom.h>
 #include <asm/arch-rockchip/hardware.h>
 #include <asm/arch-rockchip/grf_rk3288.h>
 #include <asm/arch-rockchip/pmu_rk3288.h>
@@ -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)
 {