[U-Boot] [PATCH 9/9] ARM: tegra: call tegra_board_init on Tegra186

Stephen Warren swarren at wwwdotorg.org
Wed Jul 27 23:24:57 CEST 2016


From: Stephen Warren <swarren at nvidia.com>

Introduce tegra_board_init() and call it from board_init(). Tegra wil use
tegra_board_init() for board-specific initialization, and board_init() for
SoC-specific initialization.

Signed-off-by: Stephen Warren <swarren at nvidia.com>
---
 arch/arm/mach-tegra/board186.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-tegra/board186.c b/arch/arm/mach-tegra/board186.c
index 876ccba5e599..a7583d443833 100644
--- a/arch/arm/mach-tegra/board186.c
+++ b/arch/arm/mach-tegra/board186.c
@@ -16,11 +16,16 @@ int board_early_init_f(void)
 	return 0;
 }
 
-int board_init(void)
+__weak int tegra_board_init(void)
 {
 	return 0;
 }
 
+int board_init(void)
+{
+	return tegra_board_init();
+}
+
 int board_late_init(void)
 {
 	return 0;
-- 
2.9.2



More information about the U-Boot mailing list