diff options
author | Artur Rojek <artur@conclusive.pl> | 2023-10-18 16:00:57 +0200 |
---|---|---|
committer | Eugen Hristev <eugen.hristev@collabora.com> | 2023-10-23 17:07:06 +0300 |
commit | 6092ce50efa62806661e5488e0ad72050f0d9827 (patch) | |
tree | aeca76dd72d391c9e88841517b33faa22a20fb1b /include/event.h | |
parent | cd3dbb56874dbf0f85c4c36958e29c2515374a6b (diff) | |
download | u-boot-6092ce50efa62806661e5488e0ad72050f0d9827.tar.gz u-boot-6092ce50efa62806661e5488e0ad72050f0d9827.tar.bz2 u-boot-6092ce50efa62806661e5488e0ad72050f0d9827.zip |
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>
Diffstat (limited to 'include/event.h')
-rw-r--r-- | include/event.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/event.h b/include/event.h index c5646b713a..a8f046da3c 100644 --- a/include/event.h +++ b/include/event.h @@ -105,6 +105,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. * Some boards need to perform initialisation immediately before control |