summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/mach-imx51.c
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2016-06-25 08:26:15 +0300
committerShawn Guo <shawnguo@kernel.org>2016-06-28 05:32:53 +0300
commit463f90fa8a12bcca4a4a4c686a1d140da816b1bc (patch)
tree60f0e52de9156c3c456e513117e2168d3c78080d /arch/arm/mach-imx/mach-imx51.c
parent47096103ef03b273db250f7ba0fad001767f0c9d (diff)
downloadlinux-463f90fa8a12bcca4a4a4c686a1d140da816b1bc.tar.xz
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). Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx/mach-imx51.c')
-rw-r--r--arch/arm/mach-imx/mach-imx51.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/mach-imx51.c b/arch/arm/mach-imx/mach-imx51.c
index 10a82a4f1e58..1e91740ac7ae 100644
--- a/arch/arm/mach-imx/mach-imx51.c
+++ b/arch/arm/mach-imx/mach-imx51.c
@@ -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)