Skip to content

Commit 121b96c

Browse files
committed
ARM: sun6i: Enable ARM arch timers
The A31 has non-initialized architected timers, without CNTFRQ or CNTVOFF set by the Allwinner's bootloader. Use the new DT property for such case, and enable the arch timers. Signed-off-by: Maxime Ripard <[email protected]>
1 parent 19f3af1 commit 121b96c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

arch/arm/boot/dts/sun6i-a31.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@
8787
};
8888
};
8989

90+
timer {
91+
compatible = "arm,armv7-timer";
92+
interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
93+
<GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
94+
<GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
95+
<GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
96+
clock-frequency = <24000000>;
97+
arm,cpu-registers-not-fw-configured;
98+
};
99+
90100
cpus {
91101
enable-method = "allwinner,sun6i-a31";
92102
#address-cells = <1>;

0 commit comments

Comments
 (0)