kernel: update 4.1 to 4.1.13
[openwrt.git] / target / linux / mediatek / patches / 0043-ARM-dts-mt8127-enable-basic-SMP-bringup-for-mt8127.patch
1 From e75f8b666c976aff2aa30b967f74df021d800993 Mon Sep 17 00:00:00 2001
2 From: "Joe.C" <yingjoe.chen@mediatek.com>
3 Date: Fri, 1 May 2015 15:43:30 +0800
4 Subject: [PATCH 43/76] ARM: dts: mt8127: enable basic SMP bringup for mt8127
5
6 Add arch timer node to enable arch-timer support. MT8127 firmware
7 doesn't correctly setup arch-timer frequency and CNTVOFF, add
8 properties to workaround this.
9
10 This also set cpu enable-method to enable SMP.
11
12 Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
13 ---
14  arch/arm/boot/dts/mt8127.dtsi |   16 ++++++++++++++++
15  1 file changed, 16 insertions(+)
16
17 --- a/arch/arm/boot/dts/mt8127.dtsi
18 +++ b/arch/arm/boot/dts/mt8127.dtsi
19 @@ -23,6 +23,7 @@
20         cpus {
21                 #address-cells = <1>;
22                 #size-cells = <0>;
23 +               enable-method = "mediatek,mt81xx-tz-smp";
24  
25                 cpu@0 {
26                         device_type = "cpu";
27 @@ -72,6 +73,21 @@
28                  };
29         };
30  
31 +       timer {
32 +               compatible = "arm,armv7-timer";
33 +               interrupt-parent = <&gic>;
34 +               interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
35 +                                         IRQ_TYPE_LEVEL_LOW)>,
36 +                            <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) |
37 +                                         IRQ_TYPE_LEVEL_LOW)>,
38 +                            <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) |
39 +                                         IRQ_TYPE_LEVEL_LOW)>,
40 +                            <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) |
41 +                                         IRQ_TYPE_LEVEL_LOW)>;
42 +               clock-frequency = <13000000>;
43 +               arm,cpu-registers-not-fw-configured;
44 +       };
45 +
46         soc {
47                 #address-cells = <2>;
48                 #size-cells = <2>;