]> git.sur5r.net Git - u-boot/commitdiff
board_f: call timer_init on MIPS
authorPaul Burton <paul.burton@imgtec.com>
Mon, 7 Apr 2014 09:11:21 +0000 (10:11 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sun, 20 Apr 2014 11:16:43 +0000 (13:16 +0200)
MIPS needs a call to timer_init to preserve its current behaviour
ensuring that the cop0 compare register is initialised appropriately.

Reported-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
common/board_f.c

index 2ece9e26aaf3df0ddae1b0b977da2bcaff8b7c02..cbdf06f812e4b5a73a3c474d1d15bcf4db59376a 100644 (file)
@@ -819,7 +819,7 @@ static init_fnc_t init_sequence_f[] = {
        /* TODO: can we rename this to timer_init()? */
        init_timebase,
 #endif
-#ifdef CONFIG_ARM
+#if defined(CONFIG_ARM) || defined(CONFIG_MIPS)
        timer_init,             /* initialize timer */
 #endif
 #ifdef CONFIG_SYS_ALLOC_DPRAM