summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2020-07-24 14:12:14 +0300
committerTom Rini <trini@konsulko.com>2020-08-06 14:26:35 -0400
commitba7431031f657ff18203c9598496e0288809ae17 (patch)
tree2d7660804597432af93141a19eebdc2fd4f7cb53
parent6ecefcfb6d0cfdd0c34db5d25ed58859eb266416 (diff)
downloadu-boot-ba7431031f657ff18203c9598496e0288809ae17.tar.gz
board_f: Introduce setup_bdinfo initcall
Introduce setup_bdinfo initcall as a generic routine to populate bdinfo fields. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
-rw-r--r--common/board_f.c6
-rw-r--r--include/init.h10
2 files changed, 16 insertions, 0 deletions
diff --git a/common/board_f.c b/common/board_f.c
index 88ff0424a7..72446f6da5 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -598,6 +598,11 @@ static int display_new_sp(void)
return 0;
}
+int setup_bdinfo(void)
+{
+ return 0;
+}
+
#if defined(CONFIG_M68K) || defined(CONFIG_MIPS) || defined(CONFIG_PPC) || \
defined(CONFIG_SH)
static int setup_board_part1(void)
@@ -975,6 +980,7 @@ static const init_fnc_t init_sequence_f[] = {
reserve_stacks,
dram_init_banksize,
show_dram_config,
+ setup_bdinfo,
#if defined(CONFIG_M68K) || defined(CONFIG_MIPS) || defined(CONFIG_PPC) || \
defined(CONFIG_SH)
setup_board_part1,
diff --git a/include/init.h b/include/init.h
index de408baf89..f2cd770079 100644
--- a/include/init.h
+++ b/include/init.h
@@ -142,6 +142,16 @@ int arch_reserve_stacks(void);
int arch_reserve_mmu(void);
/**
+ * setup_bdinfo() - Generic boardinfo setup
+ *
+ * Routine for populating various generic boardinfo fields of
+ * gd->bd. It is called during the generic board init sequence.
+ *
+ * Return: 0 if OK
+ */
+int setup_bdinfo(void);
+
+/**
* init_cache_f_r() - Turn on the cache in preparation for relocation
*
* Return: 0 if OK, -ve on error