diff options
author | Simon Glass <sjg@chromium.org> | 2022-03-04 18:43:04 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-03-10 16:28:36 +0300 |
commit | 42fdcebf859f93139d58defd5abef44dedb9b17a (patch) | |
tree | 51cb886505b82fa87bd38ef898fcb153e0c2cd49 /board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c | |
parent | 5b896ed5856f768cdd55cdeb44c5f8f6b6a7a18a (diff) | |
download | u-boot-42fdcebf859f93139d58defd5abef44dedb9b17a.tar.xz |
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 'board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c')
-rw-r--r-- | board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c b/board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c index 467f110951..ed8142d868 100644 --- a/board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c +++ b/board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <event.h> #include <i2c.h> #include <asm/io.h> #include <asm/arch/immap_ls102xa.h> @@ -109,12 +110,14 @@ int board_early_init_f(void) return 0; } -int misc_init_f(void) +static int pg_wcom_misc_init_f(void *ctx, struct event *event) { if (IS_ENABLED(CONFIG_PG_WCOM_UBOOT_UPDATE_SUPPORTED)) check_for_uboot_update(); + return 0; } +EVENT_SPY(EVT_MISC_INIT_F, pg_wcom_misc_init_f); int board_init(void) { |