mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-13 21:36:57 +00:00
rockchip: rk3568: add boot device detection
Enable spl to detect which device it was booted from. Signed-off-by: Peter Geis <pgwipeout@gmail.com> Signed-off-by: Chris Morgan <macromorgan@hotmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
parent
e2df30c6c6
commit
0d61f8e5f1
1 changed files with 7 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
#include <dm.h>
|
||||
#include <asm/armv8/mmu.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch-rockchip/bootrom.h>
|
||||
#include <asm/arch-rockchip/grf_rk3568.h>
|
||||
#include <asm/arch-rockchip/hardware.h>
|
||||
#include <dt-bindings/clock/rk3568-cru.h>
|
||||
|
@ -70,6 +71,12 @@ static struct mm_region rk3568_mem_map[] = {
|
|||
}
|
||||
};
|
||||
|
||||
const char * const boot_devices[BROM_LAST_BOOTSOURCE + 1] = {
|
||||
[BROM_BOOTSOURCE_EMMC] = "/sdhci@fe310000",
|
||||
[BROM_BOOTSOURCE_SPINOR] = "/spi@fe300000/flash@0",
|
||||
[BROM_BOOTSOURCE_SD] = "/mmc@fe2b0000",
|
||||
};
|
||||
|
||||
struct mm_region *mem_map = rk3568_mem_map;
|
||||
|
||||
void board_debug_uart_init(void)
|
||||
|
|
Loading…
Add table
Reference in a new issue