sparc: Update cpu_init.c to use generic timer infrastructure
authorFrancois Retief <fgretief@spaceteq.co.za>
Wed, 28 Oct 2015 13:18:22 +0000 (15:18 +0200)
committerFrancois Retief <fgretief@spaceteq.co.za>
Thu, 3 Dec 2015 11:15:49 +0000 (13:15 +0200)
commitc97088c3cfa84e7e53fddd26896f145cc8c431a2
tree6aed60fefa95f3b01e05a5ecf7e56bdb4e8eb409
parentc837901bf15616dd08997c30461e0f62bcd55245
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>
arch/sparc/cpu/leon2/cpu_init.c
arch/sparc/cpu/leon3/cpu_init.c
arch/sparc/include/asm/config.h
arch/sparc/include/asm/global_data.h
arch/sparc/lib/interrupts.c
common/board_f.c