]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: socfpga: Add support for PMU
authorFlorian Vaussard <florian.vaussard@gmail.com>
Mon, 6 Mar 2017 22:02:58 +0000 (16:02 -0600)
committerDinh Nguyen <dinguyen@kernel.org>
Mon, 6 Mar 2017 22:02:58 +0000 (16:02 -0600)
The dual Cortex-A9 MPCore inside socfpga has a standard PMU unit for
each core mapped in the DAP memory space. Add support for it!

Tested with perf on a Cyclone 5 SoC DK.

Reported-by: Alberto Dassatti <alberto.dassatti@heig-vd.ch>
Signed-off-by: Florian Vaussard <florian.vaussard@heig-vd.ch>
Tested-by: Alberto Dassatti <alberto.dassatti@heig-vd.ch>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
arch/arm/boot/dts/socfpga.dtsi

index 0a7990b209142dc12f72b33e7b0c8ebdb78f6077..b2674bdb8e6a9bb477a0c93341cdb58f399131eb 100644 (file)
                };
        };
 
+       pmu: pmu@ff111000 {
+               compatible = "arm,cortex-a9-pmu";
+               interrupt-parent = <&intc>;
+               interrupts = <0 176 4>, <0 177 4>;
+               interrupt-affinity = <&cpu0>, <&cpu1>;
+               reg = <0xff111000 0x1000>,
+                     <0xff113000 0x1000>;
+       };
+
        intc: intc@fffed000 {
                compatible = "arm,cortex-a9-gic";
                #interrupt-cells = <3>;