summaryrefslogtreecommitdiff
path: root/arch/sparc/lib
diff options
context:
space:
mode:
authorFrancois Retief <fgretief@spaceteq.co.za>2015-10-28 13:18:22 (GMT)
committerFrancois Retief <fgretief@spaceteq.co.za>2015-12-03 11:15:49 (GMT)
commitc97088c3cfa84e7e53fddd26896f145cc8c431a2 (patch)
tree6aed60fefa95f3b01e05a5ecf7e56bdb4e8eb409 /arch/sparc/lib
parentc837901bf15616dd08997c30461e0f62bcd55245 (diff)
downloadu-boot-fsl-qoriq-c97088c3cfa84e7e53fddd26896f145cc8c431a2.tar.xz
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 'arch/sparc/lib')
-rw-r--r--arch/sparc/lib/interrupts.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/sparc/lib/interrupts.c b/arch/sparc/lib/interrupts.c
index b8f2efb..fab26c6 100644
--- a/arch/sparc/lib/interrupts.c
+++ b/arch/sparc/lib/interrupts.c
@@ -81,11 +81,6 @@ void timer_interrupt(struct pt_regs *regs)
timestamp++;
}
-ulong get_timer(ulong base)
-{
- return (timestamp - base);
-}
-
void timer_interrupt_init(void)
{
int irq;