diff options
| author | Simon Glass <[email protected]> | 2023-08-21 21:17:01 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-08-31 13:16:55 -0400 |
| commit | 91caa3bb89b112a1421ee2ee3661baf67c64bab9 (patch) | |
| tree | f70b4d2452f8ca45025916cd85f0d1af684902bb /common/board_r.c | |
| parent | 6a32bfae61652f9dae621410ca6e094f374a1f11 (diff) | |
event: Use an event to replace last_stage_init()
Add a new event which handles this function. Convert existing use of
the function to use the new event instead.
Make sure that EVENT is enabled by affected boards, by selecting it from
the LAST_STAGE_INIT option. For x86, enable it by default since all boards
need it.
For controlcenterdc, inline the get_tpm() function and make sure the event
is not built in SPL.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'common/board_r.c')
| -rw-r--r-- | common/board_r.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/common/board_r.c b/common/board_r.c index 7c1fbc69ed6..ad9a3cf6336 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -773,15 +773,8 @@ static init_fnc_t init_sequence_r[] = { #ifdef CONFIG_POST initr_post, #endif -#ifdef CONFIG_LAST_STAGE_INIT INIT_FUNC_WATCHDOG_RESET - /* - * Some parts can be only initialized if all others (like - * Interrupts) are up and running (i.e. the PC-style ISA - * keyboard). - */ - last_stage_init, -#endif + INITCALL_EVENT(EVT_LAST_STAGE_INIT), #if defined(CFG_PRAM) initr_mem, #endif |
