[U-Boot] [PATCH 3/3] rockchip: rv1108: call setup_boot_mode
Andy Yan
andy.yan at rock-chips.com
Tue Nov 28 06:34:34 UTC 2017
Call setup_boot_mode to check current boot mode.
Signed-off-by: Andy Yan <andy.yan at rock-chips.com>
---
arch/arm/mach-rockchip/Kconfig | 1 +
arch/arm/mach-rockchip/rv1108/rv1108.c | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index a26736a..b555d60 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -130,6 +130,7 @@ config ROCKCHIP_RK3399
config ROCKCHIP_RV1108
bool "Support Rockchip RV1108"
select CPU_V7
+ select BOARD_LATE_INIT
help
The Rockchip RV1108 is a ARM-based SoC with a single-core Cortex-A7
and a DSP.
diff --git a/arch/arm/mach-rockchip/rv1108/rv1108.c b/arch/arm/mach-rockchip/rv1108/rv1108.c
index 868cdd5..e21e505 100644
--- a/arch/arm/mach-rockchip/rv1108/rv1108.c
+++ b/arch/arm/mach-rockchip/rv1108/rv1108.c
@@ -5,6 +5,7 @@
*/
#include <common.h>
+#include <asm/arch/boot_mode.h>
#ifndef CONFIG_SYS_DCACHE_OFF
void enable_caches(void)
@@ -13,3 +14,8 @@ void enable_caches(void)
dcache_enable();
}
#endif
+
+int board_late_init(void)
+{
+ return setup_boot_mode();
+}
--
2.7.4
More information about the U-Boot
mailing list