[U-Boot] armv8: fsl-layerscape: introduce fsl_board_late_init()
diff mbox series

Message ID 20191021203745.27120-1-michael@walle.cc
State Accepted
Commit 762ee522e25e59696698b57519904aaf26d3dc1f
Delegated to: Priyanka Jain
Headers show
Series
  • [U-Boot] armv8: fsl-layerscape: introduce fsl_board_late_init()
Related show

Commit Message

Michael Walle Oct. 21, 2019, 8:37 p.m. UTC
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>
---
 arch/arm/cpu/armv8/fsl-layerscape/soc.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Comments

Priyanka Jain Nov. 11, 2019, 3:19 p.m. UTC | #1
>-----Original Message-----
>From: U-Boot <u-boot-bounces@lists.denx.de> On Behalf Of Michael Walle
>Sent: Tuesday, October 22, 2019 2:08 AM
>To: u-boot@lists.denx.de
>Cc: Tom Rini <trini@konsulko.com>
>Subject: [U-Boot] [PATCH] armv8: fsl-layerscape: introduce
>fsl_board_late_init()
>
>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>

Applied to fsl-qoriq master, awaiting upstream.

Thanks
priyankajain

Patch
diff mbox series

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/soc.c b/arch/arm/cpu/armv8/fsl-layerscape/soc.c
index 3fd34e3a43..7a9f9df9e8 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/soc.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/soc.c
@@ -819,6 +819,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
@@ -853,6 +858,6 @@  int board_late_init(void)
 	qspi_ahb_init();
 #endif
 
-	return 0;
+	return fsl_board_late_init();
 }
 #endif