From 467bad5e368abfb8bca218b988567799e53f9e03 Mon Sep 17 00:00:00 2001 From: Sughosh Ganu Date: Fri, 21 Oct 2022 18:16:01 +0530 Subject: event: Add an event for main_loop Add an event type EVT_MAIN_LOOP that can be used for registering events that need to be run after the platform has been initialised and before the main_loop function is called. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas Acked-by: Etienne Carriere --- include/event.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/event.h') diff --git a/include/event.h b/include/event.h index 3e6dcbc3dd6..e4580b68350 100644 --- a/include/event.h +++ b/include/event.h @@ -34,6 +34,9 @@ enum event_t { /* Device tree fixups before booting */ EVT_FT_FIXUP, + /* To be called once, before calling main_loop() */ + EVT_MAIN_LOOP, + EVT_COUNT }; -- cgit v1.2.3