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_ENABLEB

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 im

[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 coun