diff mbox

[1/3] ARM: dts: imx53-ppd: Enable secure-reg-access

Message ID 1531400558-20700-1-git-send-email-fabio.estevam@nxp.com (mailing list archive)
State New, archived
Headers show

Commit Message

Fabio Estevam July 12, 2018, 1:02 p.m. UTC
From: Sebastian Reichel <sebastian.reichel@collabora.co.uk>

Add 'secure-reg-access' property to enable PMU and hardware counters
so that they can be properly used with the 'perf' tool.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
[fabio: kept the change only in imx53-ppd context]
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 arch/arm/boot/dts/imx53-ppd.dts | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Shawn Guo July 17, 2018, 5:51 a.m. UTC | #1
On Thu, Jul 12, 2018 at 10:02:36AM -0300, Fabio Estevam wrote:
> From: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
> 
> Add 'secure-reg-access' property to enable PMU and hardware counters
> so that they can be properly used with the 'perf' tool.
> 
> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
> [fabio: kept the change only in imx53-ppd context]
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>

Applied all, thanks.
Sebastian Reichel July 17, 2018, 2:53 p.m. UTC | #2
Hi,

On Tue, Jul 17, 2018 at 01:51:50PM +0800, Shawn Guo wrote:
> On Thu, Jul 12, 2018 at 10:02:36AM -0300, Fabio Estevam wrote:
> > From: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
> > 
> > Add 'secure-reg-access' property to enable PMU and hardware counters
> > so that they can be properly used with the 'perf' tool.
> > 
> > Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
> > [fabio: kept the change only in imx53-ppd context]
> > Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> 
> Applied all, thanks.

Thanks,

-- Sebastian
diff mbox

Patch

diff --git a/arch/arm/boot/dts/imx53-ppd.dts b/arch/arm/boot/dts/imx53-ppd.dts
index 444ec84..cdb90be 100644
--- a/arch/arm/boot/dts/imx53-ppd.dts
+++ b/arch/arm/boot/dts/imx53-ppd.dts
@@ -594,6 +594,10 @@ 
 	};
 };
 
+&pmu {
+	secure-reg-access;
+};
+
 &pwm1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_pwm1>;