From: Stephen Warren Date: Mon, 12 Sep 2016 17:51:12 +0000 (-0600) Subject: ARM: tegra: add SoC-level hook for board_late_init() X-Git-Tag: v2016.11~18^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=86919a23060ca0628242aa022a1268d26d29b4e1;p=u-boot 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 Reviewed-by: Simon Glass Acked-by: Joe Hershberger --- diff --git a/arch/arm/mach-tegra/board186.c b/arch/arm/mach-tegra/board186.c index a071758afe..691c3fd98d 100644 --- a/arch/arm/mach-tegra/board186.c +++ b/arch/arm/mach-tegra/board186.c @@ -24,7 +24,12 @@ int board_init(void) return tegra_board_init(); } -int board_late_init(void) +__weak int tegra_soc_board_init_late(void) { return 0; } + +int board_late_init(void) +{ + return tegra_soc_board_init_late(); +}