Skip to contentSkip to conversation

ARM: sun6i: Enable ARM arch timers

PATCH New Maxime Ripard 1 participant 2 messages Jan 11, 2015 – Jan 19, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/arm/boot/dts/sun6i-a31.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/boot/dts/sun6i-a31.dtsi +10 -0
index 69e5401df662..a0d1fe2c9c3a 100644
@@ -79,6 +79,16 @@
 		};
 	};
 
+	timer {
+		compatible = "arm,armv7-timer";
+		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
+			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
+			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
+			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
+		clock-frequency = <24000000>;
+		arm,cpu-registers-not-fw-configured;
+	};
+
 	cpus {
 		enable-method = "allwinner,sun6i-a31";
 		#address-cells = <1>;
Signature · 1 line
2.2.1
author Applied
#1 lore raw

PATCH 1/1 ARM: sun6i: Enable ARM arch timers

Quoted 6 lines · Maxime Ripard

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.

Applied.

Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150119/631ef335/attachment.sig>