]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ARM: introduce arch_early_init_r()
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 2 Apr 2012 11:19:45 +0000 (11:19 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 7 Jul 2012 12:07:44 +0000 (14:07 +0200)
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>
arch/arm/include/asm/u-boot-arm.h
arch/arm/lib/board.c

index 4ca75f9f93d4b13b6a3c1437448ca459e51019b5..9f3cae5ece49dda74466f840a1792f4930b978b2 100644 (file)
@@ -52,6 +52,7 @@ void  cpu_init_cp15(void);
 /* cpu/.../arch/cpu.c */
 int    arch_cpu_init(void);
 int    arch_misc_init(void);
+int    arch_early_init_r(void);
 
 /* board/.../... */
 int    board_init(void);
index 024646cae5a7e8f8d459c620fe595e19e7484a4d..f21591dc6ab64ef8dc38d1b5aaeb130d7de34518 100644 (file)
@@ -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: ");