]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: r8a7779: Correct interrupt type for ARM TWD
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 18 Mar 2016 10:19:21 +0000 (11:19 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 19 Apr 2016 22:56:40 +0000 (08:56 +1000)
The ARM TWD interrupt is a private peripheral interrupt (PPI), and per
the ARM GIC documentation, whether the type for PPIs can be set is
IMPLEMENTATION DEFINED.

For R-Car H1 devices the PPI type cannot be set, and so when we attempt
to set the type for the ARM TWD interrupt it fails.  This has gone
unnoticed because it fails silently, and because we cannot re-configure
the type it has had no impact. Nevertheless fix the type for the TWD
interrupt so that it matches the hardware configuration.

Based on patches by Jon Hunter for Tegra20/30 and OMAP4.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7779.dtsi

index 60bc1e66bba9251394425c15e8e7fbcb26ae6e54..5c1d48d712a18652429190a7210af3b50afdf43e 100644 (file)
@@ -67,7 +67,7 @@
                compatible = "arm,cortex-a9-twd-timer";
                reg = <0xf0000600 0x20>;
                interrupts = <GIC_PPI 13
-                       (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
+                       (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
                clocks = <&cpg_clocks R8A7779_CLK_ZS>;
        };