Message ID | 20220805142610.375427-5-sr@denx.de |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show |
Series | Add support for cyclic function execution infrastruture | expand |
On Fri, 5 Aug 2022 at 08:26, Stefan Roese <sr@denx.de> wrote: > > This patch adds a call to cyclic_init() to board_f/r.c, enabling the > common cyclic infrastructure. After this it's possible to add cyclic > functions via cyclic_register(). > > Signed-off-by: Stefan Roese <sr@denx.de> > --- > v3: > - No change > v2: > - No change > > common/board_f.c | 2 ++ > common/board_r.c | 2 ++ > 2 files changed, 4 insertions(+) Reviewed-by: Simon Glass <sjg@chromium.org>
diff --git a/common/board_f.c b/common/board_f.c index 5c86faeb217b..694fb89b0a3e 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -16,6 +16,7 @@ #include <console.h> #include <cpu.h> #include <cpu_func.h> +#include <cyclic.h> #include <dm.h> #include <env.h> #include <env_internal.h> @@ -827,6 +828,7 @@ static const init_fnc_t init_sequence_f[] = { initf_malloc, log_init, initf_bootstage, /* uses its own timer, so does not need DM */ + cyclic_init, event_init, #ifdef CONFIG_BLOBLIST bloblist_init, diff --git a/common/board_r.c b/common/board_r.c index ed29069d2de6..5c260d093678 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -13,6 +13,7 @@ #include <api.h> #include <bootstage.h> #include <cpu_func.h> +#include <cyclic.h> #include <exports.h> #include <flash.h> #include <hang.h> @@ -588,6 +589,7 @@ static int run_main_loop(void) static init_fnc_t init_sequence_r[] = { initr_trace, initr_reloc, + cyclic_init, event_init, /* TODO: could x86/PPC have this also perhaps? */ #if defined(CONFIG_ARM) || defined(CONFIG_RISCV)
This patch adds a call to cyclic_init() to board_f/r.c, enabling the common cyclic infrastructure. After this it's possible to add cyclic functions via cyclic_register(). Signed-off-by: Stefan Roese <sr@denx.de> --- v3: - No change v2: - No change common/board_f.c | 2 ++ common/board_r.c | 2 ++ 2 files changed, 4 insertions(+)