diff options
| author | Simon Glass <[email protected]> | 2023-08-21 21:16:59 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-08-31 13:16:54 -0400 |
| commit | 13a7db9ab1791736c69ce49be85db5f4c32dc581 (patch) | |
| tree | a64403053be7cc964b8a598ccec33b9cf39632d9 /common | |
| parent | 12be60daab224f2cbcb7c6584ab87f0f7caba83c (diff) | |
x86: Convert arch_fsp_init() to use events
Convert this to use events instead of calling a function directly in the
init sequence.
Rename it to arch_fsp_init_f() to distinguish it from the one that happens
after relocation.
For FSPv2 nothing needs to be done here, so drop the empty function.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'common')
| -rw-r--r-- | common/board_f.c | 4 | ||||
| -rw-r--r-- | common/event.c | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/common/board_f.c b/common/board_f.c index a485ba62fa1..46008bac659 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -855,9 +855,7 @@ static const init_fnc_t init_sequence_f[] = { #if defined(CONFIG_CONSOLE_RECORD_INIT_F) console_record_init, #endif -#if defined(CONFIG_HAVE_FSP) - arch_fsp_init, -#endif + INITCALL_EVENT(EVT_FSP_INIT_F), arch_cpu_init, /* basic arch cpu dependent setup */ mach_cpu_init, /* SoC/machine dependent CPU setup */ initf_dm, diff --git a/common/event.c b/common/event.c index 55f6932ef62..8a619088884 100644 --- a/common/event.c +++ b/common/event.c @@ -35,6 +35,7 @@ const char *const type_name[] = { /* init hooks */ "misc_init_f", + "fsp_init_r", /* Fpga load hook */ "fpga_load", |
