summaryrefslogtreecommitdiffstats
path: root/bcm2837-enable-pmu.patch
diff options
context:
space:
mode:
authorJeremy Cline <jeremy@jcline.org>2018-04-04 09:42:24 -0400
committerJeremy Cline <jeremy@jcline.org>2018-04-06 13:39:04 -0400
commit99d5108d7e29aa819daba0545d545c423bcef4cc (patch)
treeb01ad1792e6a6d54df723fbb5c6fc1aa816adf4d /bcm2837-enable-pmu.patch
parente36a35763c91a2871199534b6e9686842eabfe2a (diff)
downloadkernel-99d5108d7e29aa819daba0545d545c423bcef4cc.tar.gz
kernel-99d5108d7e29aa819daba0545d545c423bcef4cc.tar.xz
kernel-99d5108d7e29aa819daba0545d545c423bcef4cc.zip
Linux v4.16
Diffstat (limited to 'bcm2837-enable-pmu.patch')
-rw-r--r--bcm2837-enable-pmu.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/bcm2837-enable-pmu.patch b/bcm2837-enable-pmu.patch
new file mode 100644
index 000000000..378dd64c1
--- /dev/null
+++ b/bcm2837-enable-pmu.patch
@@ -0,0 +1,31 @@
+From 69e52712002cb6768b894cde9620fb426fd8728d Mon Sep 17 00:00:00 2001
+From: Stefan Wahren <stefan.wahren@i2se.com>
+Date: Fri, 16 Mar 2018 21:49:37 +0100
+Subject: [PATCH] ARM: dts: bcm2837: Enable PMU on Raspberry Pi 3
+
+This enables the PMU (performance monitoring unit) on Raspberry Pi 3.
+In order to make it work on ARM and ARM64, we need to specify two
+compatible strings.
+
+Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
+---
+ arch/arm/boot/dts/bcm2837.dtsi | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/arch/arm/boot/dts/bcm2837.dtsi b/arch/arm/boot/dts/bcm2837.dtsi
+index 7704bb029605..1f5e5c782835 100644
+--- a/arch/arm/boot/dts/bcm2837.dtsi
++++ b/arch/arm/boot/dts/bcm2837.dtsi
+@@ -17,6 +17,12 @@
+ };
+ };
+
++ arm-pmu {
++ compatible = "arm,cortex-a53-pmu", "arm,cortex-a7-pmu";
++ interrupt-parent = <&local_intc>;
++ interrupts = <9 IRQ_TYPE_LEVEL_HIGH>;
++ };
++
+ timer {
+ compatible = "arm,armv7-timer";
+ interrupt-parent = <&local_intc>;