diff options
author | Simon Glass <sjg@chromium.org> | 2022-03-04 18:43:05 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-03-10 16:28:36 +0300 |
commit | 7fe32b3442f0d0e77a0768dcc1ee65fb352a080a (patch) | |
tree | 96a205669eeb9145d15eaec2f9bac5a53ea3c791 /drivers/core | |
parent | 42fdcebf859f93139d58defd5abef44dedb9b17a (diff) | |
download | u-boot-7fe32b3442f0d0e77a0768dcc1ee65fb352a080a.tar.xz |
event: Convert arch_cpu_init_dm() to use events
Instead of a special function, send an event after driver model is inited
and adjust the boards which use this function.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core')
-rw-r--r-- | drivers/core/root.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/core/root.c b/drivers/core/root.c index e3f87956d8..8efb4256b2 100644 --- a/drivers/core/root.c +++ b/drivers/core/root.c @@ -404,6 +404,11 @@ int dm_init_and_scan(bool pre_reloc_only) return ret; } } + if (CONFIG_IS_ENABLED(DM_EVENT)) { + ret = event_notify_null(EVT_DM_POST_INIT); + if (ret) + return log_msg_ret("ev", ret); + } return 0; } |