diff options
author | Kever Yang <kever.yang@rock-chips.com> | 2019-07-22 14:59:17 +0300 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2019-07-29 05:25:27 +0300 |
commit | 3b3c623e61319ae268c5ccb55078931161bc719e (patch) | |
tree | 440ac8ff14cc6a9542a7e076c2df82b449a5e633 /arch/arm/mach-rockchip/rk3188 | |
parent | 9323ffafc91223472fa32de8b815cb2b4bc6977a (diff) | |
download | u-boot-3b3c623e61319ae268c5ccb55078931161bc719e.tar.xz |
rockchip: rk3188: 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/rk3188')
-rw-r--r-- | arch/arm/mach-rockchip/rk3188/rk3188.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/rk3188/rk3188.c b/arch/arm/mach-rockchip/rk3188/rk3188.c index 7a0b10a27d..08792f1674 100644 --- a/arch/arm/mach-rockchip/rk3188/rk3188.c +++ b/arch/arm/mach-rockchip/rk3188/rk3188.c @@ -4,11 +4,17 @@ */ #include <common.h> #include <asm/io.h> +#include <asm/arch-rockchip/bootrom.h> #include <asm/arch-rockchip/grf_rk3188.h> #include <asm/arch-rockchip/hardware.h> #define GRF_BASE 0x20008000 +const char * const boot_devices[BROM_LAST_BOOTSOURCE + 1] = { + [BROM_BOOTSOURCE_EMMC] = "dwmmc@1021c000", + [BROM_BOOTSOURCE_SD] = "dwmmc@10214000", +}; + #ifdef CONFIG_DEBUG_UART_BOARD_INIT void board_debug_uart_init(void) { |