Skip to contentSkip to conversation

armv8: fsl-layerscape: introduce fsl_board_late_init()

PATCH New Michael Walle 2 participants 2 messages Oct 21, 2019 – Nov 11, 2019 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/arm/cpu/armv8/fsl-layerscape/soc.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
arch/arm/cpu/armv8/fsl-layerscape/soc.c +6 -1
index 3fd34e3a43..7a9f9df9e8 100644
@@ -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
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 armv8: fsl-layerscape: introduce fsl_board_late_init()

Quoted 10 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Michael Walle
Sent: Tuesday, October 22, 2019 2:08 AM
To: u-boot at lists.denx.de
Cc: Tom Rini <[email protected]>
Subject: [U-Boot] [PATCH] armv8: fsl-layerscape: introduce fsl_board_late_init()

Quoted 5 lines

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.

Applied to fsl-qoriq master, awaiting upstream.

Thanks
priyankajain