summaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip/rk3288
diff options
context:
space:
mode:
authorKever Yang <kever.yang@rock-chips.com>2019-07-22 14:59:30 +0300
committerKever Yang <kever.yang@rock-chips.com>2019-07-29 05:25:27 +0300
commit8af6cafc897a0b3cd7691c6c7f7e5445b31e0665 (patch)
tree966772095a5a3033f2eecfe3aebdfe7e25f02a3c /arch/arm/mach-rockchip/rk3288
parent68907a0a58fd8299b18c01e2e3445d90fee85a3d (diff)
downloadu-boot-8af6cafc897a0b3cd7691c6c7f7e5445b31e0665.tar.xz
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 <kever.yang@rock-chips.com>
Diffstat (limited to 'arch/arm/mach-rockchip/rk3288')
-rw-r--r--arch/arm/mach-rockchip/rk3288/rk3288.c6
1 files changed, 6 insertions, 0 deletions
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 <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)
{