Thread (68 messages) 68 messages, 9 authors, 2014-06-20

Re: [RFC v2 04/10] ARM: vexpress: Extend UART with FIQ support

From: Rob Herring <hidden>
Date: 2014-05-29 13:44:00
Also in: linux-arm-kernel, linux-devicetree

On Thu, May 29, 2014 at 5:31 AM, Daniel Thompson
[off-list ref] wrote:
On 23/05/14 16:04, Russell King - ARM Linux wrote:
quoted
On Fri, May 23, 2014 at 02:57:52PM +0100, Daniel Thompson wrote:
quoted
@@ -140,7 +140,7 @@
                     v2m_serial0: uart@090000 {
                             compatible = "arm,pl011", "arm,primecell";
                             reg = <0x090000 0x1000>;
-                            interrupts = <5>;
+                            interrupts = <5>, <69>;
NAK.  This is obviously a Linux implementation detail - the second
number is your "FIQ" number which you've decided will be offset by
64.
+1
Certainly the offset of 64 is a more or less meaningless magic number
that I decided on, however I don't think it originates within Linux. It
is both introduced and consumed within the device tree itself.

I've proposed adding a flag to the gic bindings to mark a FIQ; the GIC
calls interrupt 69 (above) <0 5 0x84> (where 0x80 is the flag to request
FIQ routing alongside 0x04 which is the trigger type).
That would be better than the magic number, but I'm not convinced that
belongs in the DT either.

Whether the uart uses FIQ is not dependent on this DT setting, but
based on whether the user wants to use the uart for kdb or not. You
have enough information already to figure out which interrupt. What's
missing is whether you have the capability to use FIQ or not. I don't
recall if you can tell that from the GIC or not.

Rob
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help