Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310664
b: refs/heads/master
c: 1b461d7
h: refs/heads/master
v: v3
  • Loading branch information
Greg Ungerer committed Jun 12, 2012
1 parent a516a14 commit cffe597
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dc5588ae3c597006095926c25634408257457a8f
refs/heads/master: 1b461d7631f17804257ab1734bd95c05ab655f8b
7 changes: 5 additions & 2 deletions trunk/arch/m68k/platform/68360/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ extern void m360_cpm_reset(void);
#define OSCILLATOR (unsigned long int)33000000
#endif

static irq_handler_t timer_interrupt;
unsigned long int system_clock;

extern QUICC *pquicc;
Expand All @@ -52,7 +53,7 @@ static irqreturn_t hw_tick(int irq, void *dummy)

pquicc->timer_ter1 = 0x0002; /* clear timer event */

return arch_timer_interrupt(irq, dummy);
return timer_interrupt(irq, dummy);
}

static struct irqaction m68360_timer_irq = {
Expand All @@ -61,7 +62,7 @@ static struct irqaction m68360_timer_irq = {
.handler = hw_tick,
};

void hw_timer_init(void)
void hw_timer_init(irq_handler_t handler)
{
unsigned char prescaler;
unsigned short tgcr_save;
Expand Down Expand Up @@ -94,6 +95,8 @@ void hw_timer_init(void)

pquicc->timer_ter1 = 0x0003; /* clear timer events */

timer_interrupt = handler;

/* enable timer 1 interrupt in CIMR */
setup_irq(CPMVEC_TIMER1, &m68360_timer_irq);

Expand Down

0 comments on commit cffe597

Please sign in to comment.