diff options
-rw-r--r-- | common/board_f.c | 7 | ||||
-rw-r--r-- | include/init.h | 12 |
2 files changed, 18 insertions, 1 deletions
diff --git a/common/board_f.c b/common/board_f.c index 72446f6da50..43564314886 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -598,11 +598,16 @@ static int display_new_sp(void) return 0; } -int setup_bdinfo(void) +__weak int arch_setup_bdinfo(void) { return 0; } +int setup_bdinfo(void) +{ + return arch_setup_bdinfo(); +} + #if defined(CONFIG_M68K) || defined(CONFIG_MIPS) || defined(CONFIG_PPC) || \ defined(CONFIG_SH) static int setup_board_part1(void) diff --git a/include/init.h b/include/init.h index f2cd7700795..0f48ccb57ad 100644 --- a/include/init.h +++ b/include/init.h @@ -142,6 +142,18 @@ int arch_reserve_stacks(void); int arch_reserve_mmu(void); /** + * arch_setup_bdinfo() - Architecture dependent boardinfo setup + * + * Architecture-specific routine for populating various boardinfo fields of + * gd->bd. It is called during the generic board init sequence. + * + * If an implementation is not provided, it will just be a nop stub. + * + * Return: 0 if OK + */ +int arch_setup_bdinfo(void); + +/** * setup_bdinfo() - Generic boardinfo setup * * Routine for populating various generic boardinfo fields of |