aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/patches-3.14/260-dt-sun7i-enable-arm-pmu.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/sunxi/patches-3.14/260-dt-sun7i-enable-arm-pmu.patch')
-rw-r--r--target/linux/sunxi/patches-3.14/260-dt-sun7i-enable-arm-pmu.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-3.14/260-dt-sun7i-enable-arm-pmu.patch b/target/linux/sunxi/patches-3.14/260-dt-sun7i-enable-arm-pmu.patch
new file mode 100644
index 0000000000..41ff076c85
--- /dev/null
+++ b/target/linux/sunxi/patches-3.14/260-dt-sun7i-enable-arm-pmu.patch
@@ -0,0 +1,33 @@
+From 531f223d1426a826c7da4908e1a5e8eb3d40d6ed Mon Sep 17 00:00:00 2001
+From: Maxime Ripard <maxime.ripard@free-electrons.com>
+Date: Thu, 17 Apr 2014 21:54:41 +0200
+Subject: [PATCH] ARM: sun7i: Add ARM PMU in A20 DTSI
+
+Enable the performance monitoring unit found in the A20 SoCs.
+
+Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
+Reviewed-by: Hans de Goede <hdegoede@redhat.com>
+---
+ arch/arm/boot/dts/sun7i-a20.dtsi | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
+index 9dd904d..f9f5e0c 100644
+--- a/arch/arm/boot/dts/sun7i-a20.dtsi
++++ b/arch/arm/boot/dts/sun7i-a20.dtsi
+@@ -57,6 +57,12 @@
+ <1 10 0xf08>;
+ };
+
++ pmu {
++ compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
++ interrupts = <0 120 4>,
++ <0 121 4>;
++ };
++
+ clocks {
+ #address-cells = <1>;
+ #size-cells = <1>;
+--
+2.0.3
+