Skip to contentSkip to conversation

ARM: i.MX: Disable supervisor protect for i.MX51

PATCH New Alexander Shiyan 2 participants 2 messages Jun 25, 2016 – Jun 28, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: i.MX: Disable supervisor protect for i.MX51

Most peripherals on the i.MX51 have an Off-Platform Peripheral Access Control Register (OPACR) in which the access rights (together with the MPROT registers) can be declared.
However, this does not seem to work for example for SSI1+SDMA, because the supervisor bit is not set for the SDMA unit.
A similar problem was described in the patch for i.MX53 CPU (ARM: i.MX53: globally disable supervisor protect), and the same solution is applicable for i.MX51 CPU.
Patch has tested on custom board based on Digi CCMX-51 module (i.MX51).

---
DTS-part of this patch, I'll send a bit later.
Another mention of this problem: https://community.nxp.com/thread/333710

---
 arch/arm/mach-imx/mach-imx51.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-imx/mach-imx51.c +2 -0
index 10a82a4..1e91740 100644
@@ -54,6 +54,8 @@ static void __init imx51_dt_init(void)
 	imx_src_init();
 
 	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
+
+	imx_aips_allow_unprivileged_access("fsl,imx51-aipstz");
 }
 
 static void __init imx51_init_late(void)
Signature · 1 line
2.4.9
Applied
#1 lore raw

PATCH 1/1 ARM: i.MX: Disable supervisor protect for i.MX51

Quoted 11 lines · Alexander Shiyan

Most peripherals on the i.MX51 have an Off-Platform Peripheral Access Control Register (OPACR) in which the access rights (together with the MPROT registers) can be declared.
However, this does not seem to work for example for SSI1+SDMA, because the supervisor bit is not set for the SDMA unit.
A similar problem was described in the patch for i.MX53 CPU (ARM: i.MX53: globally disable supervisor protect), and the same solution is applicable for i.MX51 CPU.
Patch has tested on custom board based on Digi CCMX-51 module (i.MX51).

Applied, thanks.