Commit 86919a23060ca0628242aa022a1268d26d29b4e1

Authored by Stephen Warren
Committed by Joe Hershberger
1 parent ba4dfef146

ARM: tegra: add SoC-level hook for board_late_init()

Extend the Tegra186 implementation of board_late_init() to call a per-SoC
"hook" function. This will allow SoC-specific (rather than Tegra-wide)
functionality to be implemented without the core Tegra code needing to be
aware of the details. While board186.c is currently only used for
Tegra186, it should be applicable to any other future SoC, and perhaps its
simple design could be back-ported to older SoCs in the future too.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>

Showing 1 changed file with 6 additions and 1 deletions Side-by-side Diff

arch/arm/mach-tegra/board186.c
... ... @@ -24,8 +24,13 @@
24 24 return tegra_board_init();
25 25 }
26 26  
27   -int board_late_init(void)
  27 +__weak int tegra_soc_board_init_late(void)
28 28 {
29 29 return 0;
  30 +}
  31 +
  32 +int board_late_init(void)
  33 +{
  34 + return tegra_soc_board_init_late();
30 35 }