Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162658
b: refs/heads/master
c: 3945ca0
h: refs/heads/master
v: v3
  • Loading branch information
Greg Ungerer committed Sep 15, 2009
1 parent 6ba1e35 commit d832886
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: 39f0fb6a3448cfc316e0d5295ed1b121db50037e
refs/heads/master: 3945ca0f84fee3fe564189fe8cf8f02491d19622
9 changes: 2 additions & 7 deletions trunk/arch/m68knommu/platform/coldfire/timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
* These provide the underlying interrupt vector support.
* Unfortunately it is a little different on each ColdFire.
*/
extern void mcf_settimericr(int timer, int level);
void coldfire_profile_init(void);

#if defined(CONFIG_M532x)
Expand Down Expand Up @@ -98,8 +97,6 @@ static struct clocksource mcftmr_clk = {

void hw_timer_init(void)
{
setup_irq(MCF_IRQ_TIMER, &mcftmr_timer_irq);

__raw_writew(MCFTIMER_TMR_DISABLE, TA(MCFTIMER_TMR));
mcftmr_cycles_per_jiffy = FREQ / HZ;
/*
Expand All @@ -115,7 +112,7 @@ void hw_timer_init(void)
mcftmr_clk.mult = clocksource_hz2mult(FREQ, mcftmr_clk.shift);
clocksource_register(&mcftmr_clk);

mcf_clrimr(MCFINTC_TIMER1);
setup_irq(MCF_IRQ_TIMER, &mcftmr_timer_irq);

#ifdef CONFIG_HIGHPROFILE
coldfire_profile_init();
Expand Down Expand Up @@ -162,16 +159,14 @@ void coldfire_profile_init(void)
printk(KERN_INFO "PROFILE: lodging TIMER2 @ %dHz as profile timer\n",
PROFILEHZ);

setup_irq(MCF_IRQ_PROFILER, &coldfire_profile_irq);

/* Set up TIMER 2 as high speed profile clock */
__raw_writew(MCFTIMER_TMR_DISABLE, PA(MCFTIMER_TMR));

__raw_writetrr(((MCF_BUSCLK / 16) / PROFILEHZ), PA(MCFTIMER_TRR));
__raw_writew(MCFTIMER_TMR_ENORI | MCFTIMER_TMR_CLK16 |
MCFTIMER_TMR_RESTART | MCFTIMER_TMR_ENABLE, PA(MCFTIMER_TMR));

mcf_clrimr(MCFINTC_TIMER2);
setup_irq(MCF_IRQ_PROFILER, &coldfire_profile_irq);
}

/***************************************************************************/
Expand Down

0 comments on commit d832886

Please sign in to comment.