summaryrefslogtreecommitdiff
path: root/arch/arm/lib
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2012-04-02 11:19:45 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-07-07 14:07:44 +0200
commitd519b4bc0a1216eb273c76c129b779fa1ba2beb5 (patch)
tree601b6034511718c0db1fc0e19dad99d201708b28 /arch/arm/lib
parentaac316a8b025a93295b0a82822313503976e85be (diff)
downloadu-boot-imx-d519b4bc0a1216eb273c76c129b779fa1ba2beb5.zip
u-boot-imx-d519b4bc0a1216eb273c76c129b779fa1ba2beb5.tar.gz
u-boot-imx-d519b4bc0a1216eb273c76c129b779fa1ba2beb5.tar.bz2
ARM: introduce arch_early_init_r()
Introduce arch_early_init_r() function, which can be useful for doing early initialization after relocation has happened. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r--arch/arm/lib/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index 024646c..f21591d 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -500,6 +500,10 @@ void board_init_r(gd_t *id, ulong dest_addr)
malloc_start = dest_addr - TOTAL_MALLOC_LEN;
mem_malloc_init (malloc_start, TOTAL_MALLOC_LEN);
+#ifdef CONFIG_ARCH_EARLY_INIT_R
+ arch_early_init_r();
+#endif
+
#if !defined(CONFIG_SYS_NO_FLASH)
puts("Flash: ");