summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichal Simek <[email protected]>2026-04-02 17:36:59 +0200
committerHeinrich Schuchardt <[email protected]>2026-04-17 08:02:42 +0200
commitfc36b91243393d73d4507ca5d50f7231011a7fe0 (patch)
treefb3292ab7e711cdd4cc78d8a2118b12761c89e13 /include
parent583efb5040587f06bab5f5d3eb321186c3a39fe4 (diff)
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]> Acked-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/event.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/event.h b/include/event.h
index 1d267f1d105..3ce5f992b04 100644
--- a/include/event.h
+++ b/include/event.h
@@ -154,6 +154,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
* built. This allows for machine specific fixups to be done to the live tree