Thread (87 messages) 87 messages, 7 authors, 2017-07-06

[PATCH 46/58] clocksource/drivers: Add a new driver for the Atmel ARM TC blocks

From: Alexandre Belloni <hidden>
Date: 2017-06-07 23:17:34
Also in: lkml

On 07/06/2017 at 23:08:48 +0200, Daniel Lezcano wrote:
quoted
I was going to agree but this is not flexible enough because the
quadrature decoder always uses the first two channels. So on some
products, we may have:
 - TCB0:
   o channels 0,1: qdec
   o channel 2: clocksource

 - TCB1:
   o channels 0,1: qdec
   o channel 2: clockevent

This avoids wasting TCB channels.
Ok. In this case you can check if the interrupt is specified for the node, if
yes, then it is a clockevent.
But currently it is always specified in the SoC's dtsi. I don't find
that too practical to push that to the board's dts. Also, lying by
omission (the IRQ is always wired) in the DT is not different from
having a property selecting which timer is the clocksource and which is
the clockevent.

-- 
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help