Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162648
b: refs/heads/master
c: f1a59d2
h: refs/heads/master
v: v3
  • Loading branch information
Greg Ungerer committed Sep 15, 2009
1 parent 314dbc7 commit 3a1b46e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 27 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: a3d9bf1dfdaf6f7df6c5340521dff1aafe39393f
refs/heads/master: f1a59d244abd8d7b94b90f45ee5e0988e5a154cb
4 changes: 0 additions & 4 deletions trunk/arch/m68k/include/asm/m520xsim.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@
#define MCF_GPIO_PAR_FECI2C_PAR_SDA_URXD2 (0x02)
#define MCF_GPIO_PAR_FECI2C_PAR_SCL_UTXD2 (0x04)

#define ICR_INTRCONF 0x05
#define MCFPIT_IMR MCFINTC_IMRL
#define MCFPIT_IMR_IBIT (1 << MCFINT_PIT1)

/*
* Reset Controll Unit.
*/
Expand Down
14 changes: 0 additions & 14 deletions trunk/arch/m68k/include/asm/mcfsim.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,6 @@
#endif


/*
* PIT interrupt settings, if not found in mXXXXsim.h file.
*/
#ifndef ICR_INTRCONF
#define ICR_INTRCONF 0x2b /* PIT1 level 5, priority 3 */
#endif
#ifndef MCFPIT_IMR
#define MCFPIT_IMR MCFINTC_IMRH
#endif
#ifndef MCFPIT_IMR_IBIT
#define MCFPIT_IMR_IBIT (1 << (MCFINT_PIT1 - 32))
#endif


#ifndef __ASSEMBLY__
/*
* Definition for the interrupt auto-vectoring support.
Expand Down
8 changes: 0 additions & 8 deletions trunk/arch/m68knommu/platform/coldfire/pit.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
*/
#define FREQ ((MCF_CLK / 2) / 64)
#define TA(a) (MCF_IPSBAR + MCFPIT_BASE1 + (a))
#define INTC0 (MCF_IPSBAR + MCFICM_INTC0)
#define PIT_CYCLES_PER_JIFFY (FREQ / HZ)

static u32 pit_cnt;
Expand Down Expand Up @@ -154,8 +153,6 @@ static struct clocksource pit_clk = {

void hw_timer_init(void)
{
u32 imr;

cf_pit_clockevent.cpumask = cpumask_of(smp_processor_id());
cf_pit_clockevent.mult = div_sc(FREQ, NSEC_PER_SEC, 32);
cf_pit_clockevent.max_delta_ns =
Expand All @@ -166,11 +163,6 @@ void hw_timer_init(void)

setup_irq(MCFINT_VECBASE + MCFINT_PIT1, &pit_irq);

__raw_writeb(ICR_INTRCONF, INTC0 + MCFINTC_ICR0 + MCFINT_PIT1);
imr = __raw_readl(INTC0 + MCFPIT_IMR);
imr &= ~MCFPIT_IMR_IBIT;
__raw_writel(imr, INTC0 + MCFPIT_IMR);

pit_clk.mult = clocksource_hz2mult(FREQ, pit_clk.shift);
clocksource_register(&pit_clk);
}
Expand Down

0 comments on commit 3a1b46e

Please sign in to comment.