aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip/rk3328
diff options
context:
space:
mode:
authorKever Yang <kever.yang@rock-chips.com>2019-07-22 19:59:33 +0800
committerKever Yang <kever.yang@rock-chips.com>2019-07-29 10:25:27 +0800
commit612fd9e5e0154104579f7c8686f0725b577daf6c (patch)
tree2e9895280f39651db82dffa3fbfad70c3e351d08 /arch/arm/mach-rockchip/rk3328
parent9cc67049c269d9f9fbda0b4e731bfbbf5b201ea0 (diff)
downloadu-boot-612fd9e5e0154104579f7c8686f0725b577daf6c.zip
u-boot-612fd9e5e0154104579f7c8686f0725b577daf6c.tar.gz
u-boot-612fd9e5e0154104579f7c8686f0725b577daf6c.tar.bz2
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 <kever.yang@rock-chips.com>
Diffstat (limited to 'arch/arm/mach-rockchip/rk3328')
-rw-r--r--arch/arm/mach-rockchip/rk3328/rk3328.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/rk3328/rk3328.c b/arch/arm/mach-rockchip/rk3328/rk3328.c
index 1cf829d..222a8d3 100644
--- a/arch/arm/mach-rockchip/rk3328/rk3328.c
+++ b/arch/arm/mach-rockchip/rk3328/rk3328.c
@@ -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,