[PATCH 2/6] clocksource: add lpc32xx timer driver

Joachim Eastwood manabian at gmail.com
Thu Apr 9 13:43:55 PDT 2015


On 9 April 2015 at 22:24, Arnd Bergmann <arnd at arndb.de> wrote:
> On Thursday 02 April 2015 18:35:33 Joachim Eastwood wrote:
>> On 2 April 2015 at 16:24, Arnd Bergmann <arnd at arndb.de> wrote:
>> > On Wednesday 01 April 2015 23:20:39 Joachim Eastwood wrote:
>> >> Add support for using the NXP LPC timer as clocksource and
>> >> clock event. These timers are present on many NXP devices
>> >> including LPC32xx, LPC17xx, LPC18xx and LPC43xx.
>> >>
>> >> Signed-off-by: Joachim Eastwood <manabian at gmail.com>
>> >>
>> >
>> > Would it make sense to change mach-lpc32xx as a follow-up to use
>> > the same driver? It currently hardcodes a driver instead of using
>> > DT.
>>
>> I believe it would be hard since mach-lpc32xx currently lacks a proper
>> clk driver. mach-lpc32xx/timer.c currently does a lot of SoC specific
>> init.
>>
>> But if a better clk driver comes along for mach-lpc32xx the swap should be easy.
>
> Right, makes sense.

I will be getting a LPC3250 board soon so I can take a look at the clk
stuff. But from what I can see the clk register layout (system control
block) on lpc32xx seems very hairy.

btw, I noticed that the lpc32xx timer really has two clk inputs. On
lpc18xx both are feed by the same clk, but not on lpc32xx. So I will
update the driver and DT bindings to reflect this in the next version.


best regards,
Joachim Eastwood



More information about the linux-arm-kernel mailing list