From: Kever Yang Date: Mon, 22 Jul 2019 11:59:21 +0000 (+0800) Subject: rockchip: rk322x: add boot_devices mapping to support 'same-as-spl' X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=a49660b658b0921584f6f76b4bca72ff90f75653;p=u-boot.git rockchip: rk322x: 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 --- diff --git a/arch/arm/mach-rockchip/rk322x/rk322x.c b/arch/arm/mach-rockchip/rk322x/rk322x.c index c8c656ab4b..a8677b9783 100644 --- a/arch/arm/mach-rockchip/rk322x/rk322x.c +++ b/arch/arm/mach-rockchip/rk322x/rk322x.c @@ -3,9 +3,15 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */ #include +#include #include #include +const char * const boot_devices[BROM_LAST_BOOTSOURCE + 1] = { + [BROM_BOOTSOURCE_EMMC] = "dwmmc@30020000", + [BROM_BOOTSOURCE_SD] = "dwmmc@30000000", +}; + #ifdef CONFIG_DEBUG_UART_BOARD_INIT void board_debug_uart_init(void) {