]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv8: fsl-layerscape: introduce fsl_board_late_init()
authorMichael Walle <michael@walle.cc>
Mon, 21 Oct 2019 20:37:45 +0000 (22:37 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 8 Nov 2019 05:43:39 +0000 (11:13 +0530)
The fsl-layerscape already occupies board_late_init(), therefore it is
not possible for a board to have its own board_late_init(). Introduce
fsl_board_late_init() which can be implemented in the board specific
code.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/soc.c

index 03a40db186bd018d78da7e779b188b9fdeacd28d..f0df88c565ab0abd1d16d8787d2cc095a2f22a30 100644 (file)
@@ -829,6 +829,11 @@ int fsl_setenv_mcinitcmd(void)
 #endif
 
 #ifdef CONFIG_BOARD_LATE_INIT
+__weak int fsl_board_late_init(void)
+{
+       return 0;
+}
+
 int board_late_init(void)
 {
 #ifdef CONFIG_CHAIN_OF_TRUST
@@ -863,6 +868,6 @@ int board_late_init(void)
        qspi_ahb_init();
 #endif
 
-       return 0;
+       return fsl_board_late_init();
 }
 #endif