summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/common.h
diff options
context:
space:
mode:
authorShawn Guo2013-07-08 15:45:20 +0200
committerShawn Guo2013-08-16 07:11:22 +0200
commite6a07569611daf4190c0fd2c2bb1e2189c0cb479 (patch)
tree26f52525e498ae233ca0a55a781541ab7aa8d539 /arch/arm/mach-imx/common.h
parentARM: imx_v4_v5_defconfig: Select CONFIG_MACH_IMX25_DT (diff)
downloadkernel-qcow2-linux-e6a07569611daf4190c0fd2c2bb1e2189c0cb479.tar.gz
kernel-qcow2-linux-e6a07569611daf4190c0fd2c2bb1e2189c0cb479.tar.xz
kernel-qcow2-linux-e6a07569611daf4190c0fd2c2bb1e2189c0cb479.zip
ARM: imx: let L2 initialization be a common function
Move imx6q L2 initialization function imx6q_init_l2cache() into system.c, and rename it imx_init_l2cache(), so that other platforms other than imx6q can also use the function. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Acked-by: Dirk Behme <dirk.behme@de.bosch.com>
Diffstat (limited to 'arch/arm/mach-imx/common.h')
-rw-r--r--arch/arm/mach-imx/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h
index cb6c838b63ed..b96aff7476ea 100644
--- a/arch/arm/mach-imx/common.h
+++ b/arch/arm/mach-imx/common.h
@@ -161,6 +161,12 @@ extern int mx51_neon_fixup(void);
static inline int mx51_neon_fixup(void) { return 0; }
#endif
+#ifdef CONFIG_CACHE_L2X0
+extern void imx_init_l2cache(void);
+#else
+static inline void imx_init_l2cache(void) {}
+#endif
+
extern struct smp_operations imx_smp_ops;
#endif