From fc36b91243393d73d4507ca5d50f7231011a7fe0 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Thu, 2 Apr 2026 17:36:59 +0200 Subject: event: Introduce EVT_POST_PREBOOT event Add a new EVT_POST_PREBOOT event type which is fired in main_loop() after the preboot command has been executed. Signed-off-by: Michal Simek Reviewed-by: Simon Glass Acked-by: Ilias Apalodimas --- include/event.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/event.h b/include/event.h index 1d267f1d105..3ce5f992b04 100644 --- a/include/event.h +++ b/include/event.h @@ -153,6 +153,15 @@ enum event_t { */ EVT_MAIN_LOOP, + /** + * @EVT_POST_PREBOOT: + * This event is triggered in main_loop() after the preboot command + * has run, so that devices initialised by preboot (e.g. USB, UFS) + * are available to event handlers. Its parameter is NULL. + * A non-zero return value causes the boot to fail. + */ + EVT_POST_PREBOOT, + /** * @EVT_OF_LIVE_BUILT: * This event is triggered immediately after the live device tree has been -- cgit v1.3.1