upgrade 3.13 targets to 3.13.2, refresh patches
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.13 / 146-4-dt-sun6i-a31-add-hstimer.patch
1 From 28a9c5d93113cab73dd3a4b4a74a983151c08b9d Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime.ripard@free-electrons.com>
3 Date: Fri, 20 Dec 2013 22:41:09 +0100
4 Subject: [PATCH] ARM: sun6i: a31: Add support for the High Speed Timers
5
6 The Allwinner A31 has support for four high speed timers. Apart for the
7 number of timers (4 vs 2), it's basically the same logic than the high
8 speed timers found in the sun5i chips.
9
10 Now that we have a driver to support it, we can enable them in the
11 device tree.
12
13 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
14 ---
15 arch/arm/boot/dts/sun6i-a31.dtsi | 11 +++++++++++
16 1 file changed, 11 insertions(+)
17
18 --- a/arch/arm/boot/dts/sun6i-a31.dtsi
19 +++ b/arch/arm/boot/dts/sun6i-a31.dtsi
20 @@ -312,6 +312,17 @@
21 status = "disabled";
22 };
23
24 + hstimer@01c60000 {
25 + compatible = "allwinner,sun7i-a20-hstimer";
26 + reg = <0x01c60000 0x1000>;
27 + interrupts = <0 51 4>,
28 + <0 52 4>,
29 + <0 53 4>,
30 + <0 54 4>;
31 + clocks = <&ahb1_gates 19>;
32 + resets = <&ahb1_rst 19>;
33 + };
34 +
35 gic: interrupt-controller@01c81000 {
36 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
37 reg = <0x01c81000 0x1000>,