|
@@ -149,8 +149,10 @@ void hw_timer_init(irq_handler_t handler)
|
|
|
cf_pit_clockevent.mult = div_sc(FREQ, NSEC_PER_SEC, 32);
|
|
|
cf_pit_clockevent.max_delta_ns =
|
|
|
clockevent_delta2ns(0xFFFF, &cf_pit_clockevent);
|
|
|
+ cf_pit_clockevent.max_delta_ticks = 0xFFFF;
|
|
|
cf_pit_clockevent.min_delta_ns =
|
|
|
clockevent_delta2ns(0x3f, &cf_pit_clockevent);
|
|
|
+ cf_pit_clockevent.min_delta_ticks = 0x3f;
|
|
|
clockevents_register_device(&cf_pit_clockevent);
|
|
|
|
|
|
setup_irq(MCF_IRQ_PIT1, &pit_irq);
|