timers.c (09323308f63708d60aea9d5b9552ce759ef278dc) timers.c (f9a015391e8908e68bd3147a8a5d8ac5f3ea2126)
1/***************************************************************************/
2
3/*
4 * timers.c - Generic hardware timer support.
5 *
6 * Copyright (C) 1993 Hamish Macdonald
7 * Copyright (C) 1999 D. Jeff Dionne
8 * Copyright (C) 2001 Georges Menie, Ken Desmet

--- 77 unchanged lines hidden (view full) ---

86 .rating = 250,
87 .read = m68328_read_clk,
88 .mask = CLOCKSOURCE_MASK(32),
89 .flags = CLOCK_SOURCE_IS_CONTINUOUS,
90};
91
92/***************************************************************************/
93
1/***************************************************************************/
2
3/*
4 * timers.c - Generic hardware timer support.
5 *
6 * Copyright (C) 1993 Hamish Macdonald
7 * Copyright (C) 1999 D. Jeff Dionne
8 * Copyright (C) 2001 Georges Menie, Ken Desmet

--- 77 unchanged lines hidden (view full) ---

86 .rating = 250,
87 .read = m68328_read_clk,
88 .mask = CLOCKSOURCE_MASK(32),
89 .flags = CLOCK_SOURCE_IS_CONTINUOUS,
90};
91
92/***************************************************************************/
93
94void hw_timer_init(irq_handler_t handler)
94void hw_timer_init(void)
95{
96 int ret;
97
98 /* disable timer 1 */
99 TCTL = 0;
100
101 /* set ISR */
102 ret = request_irq(TMR_IRQ_NUM, hw_tick, IRQF_TIMER, "timer", NULL);

--- 33 unchanged lines hidden ---
95{
96 int ret;
97
98 /* disable timer 1 */
99 TCTL = 0;
100
101 /* set ISR */
102 ret = request_irq(TMR_IRQ_NUM, hw_tick, IRQF_TIMER, "timer", NULL);

--- 33 unchanged lines hidden ---