Skip to content

Commit

Permalink
ARM: i.MX53: globally disable supervisor protect
Browse files Browse the repository at this point in the history
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 <s.trumtrar@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
  • Loading branch information
Steffen Trumtrar authored and Shawn Guo committed Jul 18, 2014
1 parent e57e4ab commit 6befda9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-imx/mach-imx53.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ static void __init imx53_dt_init(void)
imx_src_init();

of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);

imx_aips_allow_unprivileged_access("fsl,imx53-aipstz");
}

static void __init imx53_init_late(void)
Expand Down

0 comments on commit 6befda9

Please sign in to comment.