Re: [PATCH v4 2/2] clocksource: add J-Core timer/clocksource driver

2016-07-27 Thread Arnd Bergmann
On Wednesday, July 27, 2016 5:35:09 AM CEST Rich Felker wrote: > + > +static void __init jcore_pit_init(struct device_node *node) > +{ > + int err; > + __iomem void *pit_base; > + unsigned pit_irq; > + unsigned cpu; > + struct jcore_pit_nb *nb = 0; > + struct jco

[PATCH v4 2/2] clocksource: add J-Core timer/clocksource driver

2016-07-26 Thread Rich Felker
At the hardware level, the J-Core PIT is integrated with the interrupt controller, but it is represented as its own device and has an independent programming interface. It provides a 12-bit countdown timer, which is not presently used, and a periodic timer. The interval length for the latter is pro