]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cyclic: Integrate cyclic functionality at bootup in board_r/f
authorStefan Roese <sr@denx.de>
Fri, 2 Sep 2022 11:57:50 +0000 (13:57 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 13 Sep 2022 20:01:43 +0000 (16:01 -0400)
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>
common/board_f.c
common/board_r.c

index 18e2246733b09a63b03468a066edc4eaa61699e4..deb46be1822754d23d4b6d78da89e667bbf91bf0 100644 (file)
@@ -16,6 +16,7 @@
 #include <console.h>
 #include <cpu.h>
 #include <cpu_func.h>
+#include <cyclic.h>
 #include <display_options.h>
 #include <dm.h>
 #include <env.h>
@@ -828,6 +829,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,
index 56eb60fa275338a4ce910b99583dfb1b9f2da61c..062bc3e688c6ef4ac27e3707f0ae8f9097bd8b1c 100644 (file)
@@ -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)