aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Morgan <macromorgan@hotmail.com>2023-02-13 16:27:38 -0600
committerKever Yang <kever.yang@rock-chips.com>2023-02-28 18:07:27 +0800
commit0d61f8e5f1c0035c3ee105d940b5b8d90bcec5b0 (patch)
tree4d2bbdbef40c7459baedb5cca6a9eef7e2094d0d
parente2df30c6c64919e11ba0ba33c813d29d949aa7c1 (diff)
downloadu-boot-0d61f8e5f1c0035c3ee105d940b5b8d90bcec5b0.zip
u-boot-0d61f8e5f1c0035c3ee105d940b5b8d90bcec5b0.tar.gz
u-boot-0d61f8e5f1c0035c3ee105d940b5b8d90bcec5b0.tar.bz2
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>
-rw-r--r--arch/arm/mach-rockchip/rk3568/rk3568.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/rk3568/rk3568.c b/arch/arm/mach-rockchip/rk3568/rk3568.c
index 22eeb77..a2d59ab 100644
--- a/arch/arm/mach-rockchip/rk3568/rk3568.c
+++ b/arch/arm/mach-rockchip/rk3568/rk3568.c
@@ -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)