mirror of
https://xff.cz/git/u-boot/
synced 2025-09-25 04:21:18 +02:00
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 <sjg@chromium.org>
This commit is contained in:
@@ -41,6 +41,18 @@ enum event_t {
|
||||
*/
|
||||
EVT_FSP_INIT_F,
|
||||
|
||||
/*
|
||||
* Emitted just before jumping to the main loop
|
||||
*
|
||||
* Some boards need to perform initialisation immediately before control
|
||||
* is passed to the command-line interpreter (e.g. for init that depend
|
||||
* on later phases in the init sequence).
|
||||
*
|
||||
* Some parts can be only initialized if all others (like Interrupts)
|
||||
* are up and running (e.g. the PC-style ISA keyboard).
|
||||
*/
|
||||
EVT_LAST_STAGE_INIT,
|
||||
|
||||
/* Fpga load hook */
|
||||
EVT_FPGA_LOAD,
|
||||
|
||||
|
Reference in New Issue
Block a user