mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
sparc: Remove non-generic board init files: board.c, time.c
Remove the board.c and time.c files and all associated non-generic board initialization code. Signed-off-by: Francois Retief <fgretief@spaceteq.co.za>
This commit is contained in:
parent
f376c42f3b
commit
7a4fb11b85
9 changed files with 7 additions and 662 deletions
|
@ -66,33 +66,3 @@ int interrupt_init(void)
|
|||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* timer interrupt/overflow counter */
|
||||
static volatile ulong timestamp = 0;
|
||||
|
||||
/* regs can not be used here! regs is actually the pointer given in
|
||||
* irq_install_handler
|
||||
*/
|
||||
void timer_interrupt(struct pt_regs *regs)
|
||||
{
|
||||
/* call cpu specific function from $(CPU)/interrupts.c */
|
||||
timer_interrupt_cpu((void *)regs);
|
||||
|
||||
timestamp++;
|
||||
}
|
||||
|
||||
void timer_interrupt_init(void)
|
||||
{
|
||||
int irq;
|
||||
|
||||
timestamp = 0;
|
||||
|
||||
irq = timer_interrupt_init_cpu();
|
||||
|
||||
if (irq < 0) {
|
||||
/* cpu specific code handled the interrupt registration it self */
|
||||
return;
|
||||
}
|
||||
/* register interrupt handler for timer */
|
||||
irq_install_handler(irq, (void (*)(void *))timer_interrupt, NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue