[PATCH 06/12] event: Set up the event system on start-up

Simon Glass sjg at chromium.org
Tue Dec 28 09:28:48 CET 2021


Call event_init() before relocation to get the event system running.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 common/board_f.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/board_f.c b/common/board_f.c
index dd69c3b6b77..ebb9b65c6be 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -19,6 +19,7 @@
 #include <dm.h>
 #include <env.h>
 #include <env_internal.h>
+#include <event.h>
 #include <fdtdec.h>
 #include <fs.h>
 #include <hang.h>
@@ -828,6 +829,7 @@ static const init_fnc_t init_sequence_f[] = {
 	initf_malloc,
 	log_init,
 	initf_bootstage,	/* uses its own timer, so does not need DM */
+	CONFIG_IS_ENABLED(EVENT, (event_init,))
 #ifdef CONFIG_BLOBLIST
 	bloblist_init,
 #endif
-- 
2.34.1.448.ga2b2bfdf31-goog



More information about the U-Boot mailing list