diff options
author | Paul Burton <paul.burton@imgtec.com> | 2014-04-07 10:11:21 +0100 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2014-04-20 13:16:43 +0200 |
commit | 6dc9bacea58db97e55bcb3ed2e00d5ca66a615d9 (patch) | |
tree | f4efb9ea9424502da2b369315be748d1a1ce6cd3 /common/board_f.c | |
parent | 3da7e5a50be7ca8deeac822787c7ee3bcd465c07 (diff) |
board_f: call timer_init on MIPS
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>
Diffstat (limited to 'common/board_f.c')
-rw-r--r-- | common/board_f.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/board_f.c b/common/board_f.c index 2ece9e26aaf..cbdf06f812e 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -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 |