diff --git a/common/board_f.c b/common/board_f.c index c88691439b..c4806872c1 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -250,6 +250,11 @@ static int setup_mon_len(void) return 0; } +__weak int arch_fpga_init(void) +{ + return 0; +} + __weak int arch_cpu_init(void) { return 0; @@ -808,6 +813,7 @@ static const init_fnc_t init_sequence_f[] = { #if defined(CONFIG_HAVE_FSP) arch_fsp_init, #endif + arch_fpga_init, arch_cpu_init, /* basic arch cpu dependent setup */ mach_cpu_init, /* SoC/machine dependent CPU setup */ initf_dm, diff --git a/include/common.h b/include/common.h index b6b8c374fe..9e6e194b8f 100644 --- a/include/common.h +++ b/include/common.h @@ -523,6 +523,8 @@ int is_core_valid (unsigned int); */ int arch_cpu_init(void); +int arch_fpga_init(void); + void s_init(void); int checkcpu (void);