]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: ls208xa: use defines for timer interrupts
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 5 Jun 2024 15:30:19 +0000 (17:30 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 17 Jun 2024 01:18:23 +0000 (09:18 +0800)
Replace hard-coded interrupt parts (GIC, flags) with standard defines
for readability.  No changes in resulting DTBs.  The comment was saying
interrupt was active low, but the actual used value was active high, so
assume that the code, not the comment, is correct.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi

index 5ea4ef349a884339f29365d560dbf66426c9ef94..61c5c2e034e66335cdbb0d5edaf140b74d3b3bc0 100644 (file)
 
        timer: timer {
                compatible = "arm,armv8-timer";
-               interrupts = <1 13 4>, /* Physical Secure PPI, active-low */
-                            <1 14 4>, /* Physical Non-Secure PPI, active-low */
-                            <1 11 4>, /* Virtual PPI, active-low */
-                            <1 10 4>; /* Hypervisor PPI, active-low */
+               interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>, /* Physical Secure PPI */
+                            <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>, /* Physical Non-Secure PPI */
+                            <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>, /* Virtual PPI */
+                            <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>; /* Hypervisor PPI */
        };
 
        psci {