Skip to content

Commit 6befda9

Browse files
strumtrarShawn Guo
authored andcommitted
ARM: i.MX53: globally disable supervisor protect
Most peripherals on the i.MX53 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. It does work for SSI2, the QSB for example uses SSI2 for its audio. But SSI2 only works because it does NOT have an OPACR. The right solution would be to fix the access rights for the SDMA, but the unit responsible for this is the Central Security Unit (CSU), which of course is NOT documented. So, until documentation for this is openly available, turn off the supervisor protection because it cripples the hardware. Signed-off-by: Steffen Trumtrar <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent e57e4ab commit 6befda9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm/mach-imx/mach-imx53.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ static void __init imx53_dt_init(void)
3434
imx_src_init();
3535

3636
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
37+
38+
imx_aips_allow_unprivileged_access("fsl,imx53-aipstz");
3739
}
3840

3941
static void __init imx53_init_late(void)

0 commit comments

Comments
 (0)