aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVince Weaver <vincent.weaver@maine.edu>2013-12-31 16:54:16 -0500
committerStephen Warren <swarren@wwwdotorg.org>2014-02-11 23:41:39 -0500
commit14ac652b67fe08b0dca78995a4298aad38345a31 (patch)
tree141ac6ef1688e458e3aa60f9c20654874b31b836
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
ARM: bcm2835: perf_event support for Raspberry-Pi
The following patch enables performance counter support on Raspberry-Pi. We have this working on the 2708 based rasp-pi kernels by manually putting the device registration in the platform files. This change does things properly in a device tree. The boot messages look proper, but my rasp-pi hangs somewhere in USB enabling when running a stock 3.13-rc6 kernel so I have been unable to fully test this change. I also understand that the rasp-pi 1176 pmu support is missing the overflow interrupt. I'm not sure if that's true of all 2835 implementations. If not, then this patch will need to be changed a bit. Signed-off-by: Vince Weaver <vincent.weaver@maine.edu> [swarren, fixed DT node sort order] Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
-rw-r--r--arch/arm/boot/dts/bcm2835.dtsi4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi
index b021c96d3ba1..beb8659813b2 100644
--- a/arch/arm/boot/dts/bcm2835.dtsi
+++ b/arch/arm/boot/dts/bcm2835.dtsi
@@ -113,6 +113,10 @@
113 reg = <0x7e980000 0x10000>; 113 reg = <0x7e980000 0x10000>;
114 interrupts = <1 9>; 114 interrupts = <1 9>;
115 }; 115 };
116
117 arm-pmu {
118 compatible = "arm,arm1176-pmu";
119 };
116 }; 120 };
117 121
118 clocks { 122 clocks {