summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorFrancois Retief <fgretief@spaceteq.co.za>2015-10-28 15:18:22 +0200
committerFrancois Retief <fgretief@spaceteq.co.za>2015-12-03 13:15:49 +0200
commitc97088c3cfa84e7e53fddd26896f145cc8c431a2 (patch)
tree6aed60fefa95f3b01e05a5ecf7e56bdb4e8eb409 /common
parentc837901bf15616dd08997c30461e0f62bcd55245 (diff)
downloadblackbird-obmc-uboot-c97088c3cfa84e7e53fddd26896f145cc8c431a2.tar.gz
blackbird-obmc-uboot-c97088c3cfa84e7e53fddd26896f145cc8c431a2.zip
sparc: Update cpu_init.c to use generic timer infrastructure
Introduce the CONFIG_SYS_TIMER_* macros in include/asm/config.h to make use of the generic timer infrastructure in lib/time.c. Created a timer_init() function to initialize the timer hardware and update the #ifdef in board_init_f to allow this function to be called during the start-up sequence. Signed-off-by: Francois Retief <fgretief@spaceteq.co.za>
Diffstat (limited to 'common')
-rw-r--r--common/board_f.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/board_f.c b/common/board_f.c
index b035c90ff3..2dd10b9819 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -808,7 +808,8 @@ static init_fnc_t init_sequence_f[] = {
init_timebase,
#endif
#if defined(CONFIG_X86) || defined(CONFIG_ARM) || defined(CONFIG_MIPS) || \
- defined(CONFIG_BLACKFIN) || defined(CONFIG_NDS32)
+ defined(CONFIG_BLACKFIN) || defined(CONFIG_NDS32) || \
+ defined(CONFIG_SPARC)
timer_init, /* initialize timer */
#endif
#ifdef CONFIG_SYS_ALLOC_DPRAM
OpenPOWER on IntegriCloud