mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 02:15:02 +00:00
event: add new EVT_SETTINGS_R event
Introduce EVT_SETTINGS_R, triggered post-relocation and before console init. This event gives an option to perform any platform-dependent setup, which needs to take place before show_board_info(). Usage examples include readout of EEPROM stored settings. Signed-off-by: Artur Rojek <artur@conclusive.pl> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
cd3dbb5687
commit
6092ce50ef
3 changed files with 11 additions and 0 deletions
|
@ -693,6 +693,7 @@ static init_fnc_t init_sequence_r[] = {
|
|||
#if defined(CONFIG_ID_EEPROM)
|
||||
mac_read_from_eeprom,
|
||||
#endif
|
||||
INITCALL_EVENT(EVT_SETTINGS_R),
|
||||
INIT_FUNC_WATCHDOG_RESET
|
||||
#if defined(CONFIG_PCI_INIT_R) && !defined(CONFIG_SYS_EARLY_PCI_INIT)
|
||||
/*
|
||||
|
|
|
@ -37,6 +37,7 @@ const char *const type_name[] = {
|
|||
/* init hooks */
|
||||
"misc_init_f",
|
||||
"fsp_init_r",
|
||||
"settings_r",
|
||||
"last_stage_init",
|
||||
|
||||
/* Fpga load hook */
|
||||
|
|
|
@ -104,6 +104,15 @@ enum event_t {
|
|||
*/
|
||||
EVT_FSP_INIT_F,
|
||||
|
||||
/**
|
||||
* @EVT_SETTINGS_R:
|
||||
* This event is triggered post-relocation and before console init.
|
||||
* This gives an option to perform any platform-dependent setup, which
|
||||
* needs to take place before show_board_info() (e.g. readout of EEPROM
|
||||
* stored settings).
|
||||
*/
|
||||
EVT_SETTINGS_R,
|
||||
|
||||
/**
|
||||
* @EVT_LAST_STAGE_INIT:
|
||||
* This event is triggered just before jumping to the main loop.
|
||||
|
|
Loading…
Add table
Reference in a new issue