dc9f8ac36245bdb32df4fec0533207114583facf
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.13 / 131-dt-sun7i-add-arch-timers.patch
1 From fdc4530902ed845fc0f31b9bbcc45e05fefe21da Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Sun, 1 Dec 2013 22:40:34 +0100
4 Subject: [PATCH] ARM: dts: sun7i: Add arch timers
5
6 Note this requires a new enough uboot, otherwise things won't work, ie:
7
8 https://github.com/jwrdegoede/u-boot-sunxi/commits/sunxi-next
9 or:
10 http://xenbits.xen.org/gitweb/?p=people/ianc/u-boot.git;a=shortlog;h=refs/heads/devel/sunxi-psci
11
12 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
13 ---
14 arch/arm/boot/dts/sun7i-a20.dtsi | 8 ++++++++
15 1 file changed, 8 insertions(+)
16
17 diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
18 index f4ecd79..fa2ef07 100644
19 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
20 +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
21 @@ -370,6 +370,14 @@
22 };
23 };
24
25 + timer {
26 + compatible = "arm,armv7-timer";
27 + interrupts = <1 13 0xf08>,
28 + <1 14 0xf08>,
29 + <1 11 0xf08>,
30 + <1 10 0xf08>;
31 + };
32 +
33 soc@01c00000 {
34 compatible = "simple-bus";
35 #address-cells = <1>;
36 --
37 1.8.5.5
38