diff options
author | Michal Simek <monstr@monstr.eu> | 2010-04-16 09:37:41 (GMT) |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-04-16 10:15:31 (GMT) |
commit | 5bbcb6cf22b1121d8c3e56b0e1fb84366e903ac7 (patch) | |
tree | b8c12a6559a58957d2f6bfd792690bad5b3ee5fa /arch/microblaze/lib | |
parent | cc53690e05f47b4c25e0a528de50e024fc0164ad (diff) | |
download | u-boot-5bbcb6cf22b1121d8c3e56b0e1fb84366e903ac7.tar.xz |
microblaze: Move timer initialization to board.c
I would like to handle case where system doesn't contain
intc that's why I need timer initialization out of intc code.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/lib')
-rw-r--r-- | arch/microblaze/lib/board.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c index d4baea9..7dfa71c 100644 --- a/arch/microblaze/lib/board.c +++ b/arch/microblaze/lib/board.c @@ -44,6 +44,10 @@ extern int interrupts_init (void); #if defined(CONFIG_CMD_NET) extern int eth_init (bd_t * bis); #endif +#ifdef CONFIG_SYS_TIMER_0 +extern int timer_init (void); +#endif + /* * All attempts to come up with a "common" initialization sequence @@ -68,6 +72,9 @@ init_fnc_t *init_sequence[] = { #ifdef CONFIG_SYS_INTC_0 interrupts_init, #endif +#ifdef CONFIG_SYS_TIMER_0 + timer_init, +#endif NULL, }; |