aboutsummaryrefslogtreecommitdiff
path: root/include/spl.h
diff options
context:
space:
mode:
authorLukas Funke <lukas.funke@weidmueller.com>2024-03-27 13:11:52 +0100
committerMichal Simek <michal.simek@amd.com>2024-06-17 16:02:29 +0200
commit52ef6a9cb88f3202871d14e68980ad102d9dc492 (patch)
tree40b9473a1a222abffdb7f382b9cfaa7a8bd4aa72 /include/spl.h
parent86c46b99a0e96a7281c153ca78c8e8890967997f (diff)
downloadu-boot-52ef6a9cb88f3202871d14e68980ad102d9dc492.zip
u-boot-52ef6a9cb88f3202871d14e68980ad102d9dc492.tar.gz
u-boot-52ef6a9cb88f3202871d14e68980ad102d9dc492.tar.bz2
spl: Introduce SoC specific init function
Some architectures use spl_board_init() in their SoC specific implementation. Board developers should be able to add board specific implementation via spl_board_init(). Hence, introduce a spl_soc_init() method which is called right before spl_board_init() for SoC specific implementation. Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com> Reviewed-by: Devarsh Thakkar <devarsht@ti.com> Link: https://lore.kernel.org/r/20240327121153.2455126-2-lukas.funke-oss@weidmueller.com Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'include/spl.h')
-rw-r--r--include/spl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index 043875f..5dfdf77 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -817,6 +817,14 @@ int spl_early_init(void);
int spl_init(void);
/*
+ * spl_soc_init() - Do architecture-specific init in SPL
+ *
+ * If SPL_SOC_INIT is enabled, this is called from board_init_r() before
+ * jumping to the next phase.
+ */
+void spl_soc_init(void);
+
+/*
* spl_board_init() - Do board-specific init in SPL
*
* If xPL_BOARD_INIT is enabled, this is called from board_init_r() before