summaryrefslogtreecommitdiff
path: root/common/board_f.c
diff options
context:
space:
mode:
authorOvidiu Panait <ovpanait@gmail.com>2020-01-22 23:28:25 +0300
committerTom Rini <trini@konsulko.com>2020-01-30 21:30:35 +0300
commit016e4ae7ef076e6c4abe0e2ec97cfc3e6d03a578 (patch)
treed2785db9825621d3540830b2805229c406b25f9e /common/board_f.c
parent5749faa3d6837d6dbaf2119fc3ec49a326690c8f (diff)
downloadu-boot-016e4ae7ef076e6c4abe0e2ec97cfc3e6d03a578.tar.xz
common/board_f.c: Remove arch-specific checks for cpucheck
This removes the arch-specific checks for "checkcpu" function from the init sequence. Make "checkcpu" generic and provide a weak nop stub instead. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Diffstat (limited to 'common/board_f.c')
-rw-r--r--common/board_f.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/common/board_f.c b/common/board_f.c
index 3f0132a6e3..8fa26e3ca5 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -862,6 +862,11 @@ __weak int arch_cpu_init_dm(void)
return 0;
}
+__weak int checkcpu(void)
+{
+ return 0;
+}
+
static const init_fnc_t init_sequence_f[] = {
setup_mon_len,
#ifdef CONFIG_OF_CONTROL
@@ -904,9 +909,7 @@ static const init_fnc_t init_sequence_f[] = {
console_init_f, /* stage 1 init of console */
display_options, /* say that we are here */
display_text_info, /* show debugging info if required */
-#if defined(CONFIG_PPC) || defined(CONFIG_SH) || defined(CONFIG_X86)
checkcpu,
-#endif
#if defined(CONFIG_SYSRESET)
print_resetinfo,
#endif