diff options
author | Francois Retief <fgretief@spaceteq.co.za> | 2015-10-28 16:18:22 +0300 |
---|---|---|
committer | Francois Retief <fgretief@spaceteq.co.za> | 2015-12-03 14:15:49 +0300 |
commit | c97088c3cfa84e7e53fddd26896f145cc8c431a2 (patch) | |
tree | 6aed60fefa95f3b01e05a5ecf7e56bdb4e8eb409 /arch/sparc/lib/interrupts.c | |
parent | c837901bf15616dd08997c30461e0f62bcd55245 (diff) | |
download | u-boot-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/interrupts.c')
-rw-r--r-- | arch/sparc/lib/interrupts.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/sparc/lib/interrupts.c b/arch/sparc/lib/interrupts.c index b8f2efb303..fab26c62dd 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; |