Re: [PATCH v9] ARM: clocksource: add support for MOXA ART SoCs

2013-07-20 Thread Daniel Lezcano
On 07/20/2013 10:45 PM, Linus Walleij wrote: > On Wed, Jul 17, 2013 at 10:04 AM, Jonas Jensen wrote: > >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include > > #include > >> +#define TIMEREG_CR_1_ENABLE

Re: [PATCH v9] ARM: clocksource: add support for MOXA ART SoCs

2013-07-20 Thread Linus Walleij
On Wed, Jul 17, 2013 at 10:04 AM, Jonas Jensen wrote: > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include #include > +#define TIMEREG_CR_1_ENABLEBIT(0) Because BIT() comes from there. And we shall not rely on

Re: [PATCH v9] ARM: clocksource: add support for MOXA ART SoCs

2013-07-20 Thread Linus Walleij
On Wed, Jul 17, 2013 at 10:04 AM, Jonas Jensen jonas.jen...@gmail.com wrote: +#include linux/clk.h +#include linux/clockchips.h +#include linux/interrupt.h +#include linux/irq.h +#include linux/irqreturn.h +#include linux/of.h +#include linux/of_address.h +#include linux/of_irq.h

Re: [PATCH v9] ARM: clocksource: add support for MOXA ART SoCs

2013-07-20 Thread Daniel Lezcano
On 07/20/2013 10:45 PM, Linus Walleij wrote: On Wed, Jul 17, 2013 at 10:04 AM, Jonas Jensen jonas.jen...@gmail.com wrote: +#include linux/clk.h +#include linux/clockchips.h +#include linux/interrupt.h +#include linux/irq.h +#include linux/irqreturn.h +#include linux/of.h +#include

[PATCH v9] ARM: clocksource: add support for MOXA ART SoCs

2013-07-17 Thread Jonas Jensen
This patch adds an clocksource driver for the main timer(s) found on MOXA ART SoCs. The MOXA ART SoC provides three separate timers with individual count/load/match registers, two are used here: TIMER1: clockevents, used to support oneshot and periodic events TIMER2: set up as a free running

[PATCH v9] ARM: clocksource: add support for MOXA ART SoCs

2013-07-17 Thread Jonas Jensen
This patch adds an clocksource driver for the main timer(s) found on MOXA ART SoCs. The MOXA ART SoC provides three separate timers with individual count/load/match registers, two are used here: TIMER1: clockevents, used to support oneshot and periodic events TIMER2: set up as a free running