]> git.sur5r.net Git - u-boot/commitdiff
OMAP SPL: call timer_init in s_init to make udelay work earlier
authorAndreas Müller <schnitzeltony@gmx.de>
Wed, 4 Jan 2012 15:26:23 +0000 (15:26 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 16 Jan 2012 07:40:12 +0000 (08:40 +0100)
Signed-off-by: Andreas Müller <schnitzeltony@gmx.de>
arch/arm/cpu/armv7/omap-common/spl.c
arch/arm/cpu/armv7/omap3/board.c

index 9c35a090381127d4e593327a0caff192b9e79f75..74fea4fa506c8546be158460b53552dbb40a386d 100644 (file)
@@ -115,8 +115,6 @@ void board_init_r(gd_t *id, ulong dummy)
        mem_malloc_init(CONFIG_SYS_SPL_MALLOC_START,
                        CONFIG_SYS_SPL_MALLOC_SIZE);
 
-       timer_init();
-
 #ifdef CONFIG_SPL_BOARD_INIT
        spl_board_init();
 #endif
index 1f33c6398c106776d6163eb2bac9a22e02523abd..871aa37df8d4d6de7d935d42cc02135b10dc4775 100644 (file)
@@ -230,6 +230,8 @@ void s_init(void)
 
 #ifdef CONFIG_SPL_BUILD
        preloader_console_init();
+
+       timer_init();
 #endif
 
        if (!in_sdram)