diff options
| author | Stefan Roese <sr@denx.de> | 2022-09-02 13:57:50 +0200 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2022-09-13 16:01:43 -0400 |
| commit | 70545642a0fdc5d7eb1664174dbd4d06a1a62e81 (patch) | |
| tree | 0f0a7999e56620db2b1879239bae35f32f3575ae /common/board_r.c | |
| parent | 661cdaa79d961248bc8290f421d9cf3eb8defffd (diff) | |
cyclic: Integrate cyclic functionality at bootup in board_r/f
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>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/board_r.c')
| -rw-r--r-- | common/board_r.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c index 56eb60fa275..062bc3e688c 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 <display_options.h> #include <exports.h> #ifdef CONFIG_MTD_NOR_FLASH @@ -611,6 +612,7 @@ static init_fnc_t init_sequence_r[] = { #endif initr_barrier, initr_malloc, + cyclic_init, log_init, initr_bootstage, /* Needs malloc() but has its own timer */ #if defined(CONFIG_CONSOLE_RECORD) |
