Add secure-reg-access on PPD device tree to enable PMU and
hardware counters for perf.

Reviewed-by: Fabio Estevam <fabio.este...@nxp.com>
Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk>
---
 arch/arm/boot/dts/imx53-ppd.dts | 4 ++++
 arch/arm/boot/dts/imx53.dtsi    | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx53-ppd.dts b/arch/arm/boot/dts/imx53-ppd.dts
index dd1b524e5074..3c87e0d73f63 100644
--- a/arch/arm/boot/dts/imx53-ppd.dts
+++ b/arch/arm/boot/dts/imx53-ppd.dts
@@ -562,6 +562,10 @@
        };
 };
 
+&pmu {
+       secure-reg-access;
+};
+
 &pwm1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pwm1>;
diff --git a/arch/arm/boot/dts/imx53.dtsi b/arch/arm/boot/dts/imx53.dtsi
index 1040251f2951..7df4853dc771 100644
--- a/arch/arm/boot/dts/imx53.dtsi
+++ b/arch/arm/boot/dts/imx53.dtsi
@@ -116,7 +116,7 @@
                };
        };
 
-       pmu {
+       pmu: pmu {
                compatible = "arm,cortex-a8-pmu";
                interrupt-parent = <&tzic>;
                interrupts = <77>;
-- 
2.15.1

Reply via email to