aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/common.h
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2014-07-07 05:41:26 -0400
committerShawn Guo <shawn.guo@freescale.com>2014-07-18 04:11:39 -0400
commite57e4ab5fc2e4e58447d13493c3e567b61359523 (patch)
treef3da25ce0d4f4a59c4af48fcaa5949e317407691 /arch/arm/mach-imx/common.h
parentb4de531716eb42fd074b28118bc51cef28f06e9a (diff)
ARM: i.MX: allow disabling supervisor protect via DT
The i.MX SoCs allow to setup fine grained access rights to peripherals on the AIPS bus. This is done via the Peripheral Access Register (PAR) in e.g. the i.MX21 or in later SoC versions the Off-Platform Peripheral Access Control Register (OPACR), e.g. i.MX53. Under certain circumstances this leads to problems in which bus masters are not granted their access rights to peripherals. To be able to disable these restrictions on DT platforms, add a helper function that looks for AIPS nodes in the DT and disables them for every compatible node it finds. The compatible has to be declared in the mach-specific entry file, where this helper function should then be called. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to 'arch/arm/mach-imx/common.h')
-rw-r--r--arch/arm/mach-imx/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h
index e0632d1890ac..f7189bc461ad 100644
--- a/arch/arm/mach-imx/common.h
+++ b/arch/arm/mach-imx/common.h
@@ -19,6 +19,7 @@ struct pt_regs;
19struct clk; 19struct clk;
20struct device_node; 20struct device_node;
21enum mxc_cpu_pwr_mode; 21enum mxc_cpu_pwr_mode;
22struct of_device_id;
22 23
23void mx1_map_io(void); 24void mx1_map_io(void);
24void mx21_map_io(void); 25void mx21_map_io(void);
@@ -65,6 +66,7 @@ void mxc_arch_reset_init_dt(void);
65int mx51_revision(void); 66int mx51_revision(void);
66int mx53_revision(void); 67int mx53_revision(void);
67void imx_set_aips(void __iomem *); 68void imx_set_aips(void __iomem *);
69void imx_aips_allow_unprivileged_access(const char *compat);
68int mxc_device_init(void); 70int mxc_device_init(void);
69void imx_set_soc_revision(unsigned int rev); 71void imx_set_soc_revision(unsigned int rev);
70unsigned int imx_get_soc_revision(void); 72unsigned int imx_get_soc_revision(void);