Эх сурвалжийг харах

ARM: dt: Add ARM PMU to tegra*.dtsi

This enables HW performance measurements, and usage of the "perf" tool.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
Stephen Warren 13 жил өмнө
parent
commit
583553b28c

+ 6 - 0
arch/arm/boot/dts/tegra20.dtsi

@@ -17,6 +17,12 @@
 		      < 0x50040100 0x0100 >;
 		      < 0x50040100 0x0100 >;
 	};
 	};
 
 
+	pmu {
+		compatible = "arm,cortex-a9-pmu";
+		interrupts = <0 56 0x04
+			      0 57 0x04>;
+	};
+
 	apbdma: dma@6000a000 {
 	apbdma: dma@6000a000 {
 		compatible = "nvidia,tegra20-apbdma";
 		compatible = "nvidia,tegra20-apbdma";
 		reg = <0x6000a000 0x1200>;
 		reg = <0x6000a000 0x1200>;

+ 8 - 0
arch/arm/boot/dts/tegra30.dtsi

@@ -17,6 +17,14 @@
 		      < 0x50040100 0x0100 >;
 		      < 0x50040100 0x0100 >;
 	};
 	};
 
 
+	pmu {
+		compatible = "arm,cortex-a9-pmu";
+		interrupts = <0 144 0x04
+			      0 145 0x04
+			      0 146 0x04
+			      0 147 0x04>;
+	};
+
 	apbdma: dma@6000a000 {
 	apbdma: dma@6000a000 {
 		compatible = "nvidia,tegra30-apbdma", "nvidia,tegra20-apbdma";
 		compatible = "nvidia,tegra30-apbdma", "nvidia,tegra20-apbdma";
 		reg = <0x6000a000 0x1400>;
 		reg = <0x6000a000 0x1400>;