summaryrefslogtreecommitdiff
path: root/include/init.h
diff options
context:
space:
mode:
authorMario Six <mario.six@gdsys.cc>2018-08-06 11:23:41 +0300
committerSimon Glass <sjg@chromium.org>2018-09-18 17:12:16 +0300
commitc0434407b595f785fc7401237896c48c791b45fd (patch)
tree05c02d01ba362bcab04d3de35a506eacdb567f7b /include/init.h
parentdc145a7be3fc6ae2181488e48aee51a34d43ffa0 (diff)
downloadu-boot-c0434407b595f785fc7401237896c48c791b45fd.tar.xz
board_f: Use static print_cpuinfo if CONFIG_CPU is active
When the DM CPU drivers are active, printing information about a CPU should be delegated to a matching driver. Hence, add a static print_cpuinfo that implements this delegation when DM CPU drivers are active. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc> Changed condition to CONFIG_IS_ENABLED(CPU): Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/init.h')
-rw-r--r--include/init.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/init.h b/include/init.h
index a58d7a6917..afc953d51e 100644
--- a/include/init.h
+++ b/include/init.h
@@ -109,7 +109,14 @@ int arch_reserve_stacks(void);
*/
int init_cache_f_r(void);
+#if !CONFIG_IS_ENABLED(CPU)
+/**
+ * print_cpuinfo() - Display information about the CPU
+ *
+ * Return: 0 if OK, -ve on error
+ */
int print_cpuinfo(void);
+#endif
int timer_init(void);
int reserve_mmu(void);
int misc_init_f(void);