diff options
author | Simon Glass <sjg@chromium.org> | 2022-03-04 08:43:05 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-03-10 08:28:36 -0500 |
commit | 7fe32b3442f0d0e77a0768dcc1ee65fb352a080a (patch) | |
tree | 96a205669eeb9145d15eaec2f9bac5a53ea3c791 /common | |
parent | 42fdcebf859f93139d58defd5abef44dedb9b17a (diff) |
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 'common')
-rw-r--r-- | common/board_f.c | 6 | ||||
-rw-r--r-- | common/event.c | 1 |
2 files changed, 1 insertions, 6 deletions
diff --git a/common/board_f.c b/common/board_f.c index 0ef34c7575..5b655ad6ef 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -803,11 +803,6 @@ __weak int reserve_arch(void) return 0; } -__weak int arch_cpu_init_dm(void) -{ - return 0; -} - __weak int checkcpu(void) { return 0; @@ -848,7 +843,6 @@ static const init_fnc_t init_sequence_f[] = { arch_cpu_init, /* basic arch cpu dependent setup */ mach_cpu_init, /* SoC/machine dependent CPU setup */ initf_dm, - arch_cpu_init_dm, #if defined(CONFIG_BOARD_EARLY_INIT_F) board_early_init_f, #endif diff --git a/common/event.c b/common/event.c index 4270809d49..9d67a060a0 100644 --- a/common/event.c +++ b/common/event.c @@ -26,6 +26,7 @@ const char *const type_name[] = { "test", /* Events related to driver model */ + "dm_post_init", "dm_pre_probe", "dm_post_probe", "dm_pre_remove", |