Commit 121b96cd authored by Maxime Ripard's avatar Maxime Ripard

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: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 19f3af1d
...@@ -87,6 +87,16 @@ framebuffer@1 { ...@@ -87,6 +87,16 @@ framebuffer@1 {
}; };
}; };
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 { cpus {
enable-method = "allwinner,sun6i-a31"; enable-method = "allwinner,sun6i-a31";
#address-cells = <1>; #address-cells = <1>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment