summaryrefslogtreecommitdiff
path: root/include/event.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-03-04 08:43:04 -0700
committerTom Rini <trini@konsulko.com>2022-03-10 08:28:36 -0500
commit42fdcebf859f93139d58defd5abef44dedb9b17a (patch)
tree51cb886505b82fa87bd38ef898fcb153e0c2cd49 /include/event.h
parent5b896ed5856f768cdd55cdeb44c5f8f6b6a7a18a (diff)
event: Convert misc_init_f() to use events
This hook can be implmented using events, for the three boards that actually use it. Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we can just use CONFIG_EVENT to control this. Since sandbox always enables CONFIG_EVENT, we can drop the defconfig lines there too. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/event.h')
-rw-r--r--include/event.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/event.h b/include/event.h
index f4c12d768b..6b347e92f0 100644
--- a/include/event.h
+++ b/include/event.h
@@ -25,6 +25,9 @@ enum event_t {
EVT_DM_PRE_REMOVE,
EVT_DM_POST_REMOVE,
+ /* Init hooks */
+ EVT_MISC_INIT_F,
+
EVT_COUNT
};