ARM: tegra: call tegra_board_init on Tegra186
authorStephen Warren <swarren@nvidia.com>
Wed, 27 Jul 2016 21:24:57 +0000 (15:24 -0600)
committerTom Warren <twarren@nvidia.com>
Thu, 4 Aug 2016 20:36:59 +0000 (13:36 -0700)
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@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/mach-tegra/board186.c

index 876ccba5e599cb45fea9351eb92448d47cbd2e2b..a7583d4438338887edc457c2152ac6372ed7c2b3 100644 (file)
@@ -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;