summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxc/cpu.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-02-06 14:38:22 (GMT)
committerSascha Hauer <s.hauer@pengutronix.de>2009-03-13 09:34:26 (GMT)
commit198016e1b12d781ef00aaafbf571775a8e723f54 (patch)
treed2d45593f7c5e3ce9a703081e78fd5c6b5c29386 /arch/arm/plat-mxc/cpu.c
parentc0a5f85523132dc893916d6059370233fac1cb11 (diff)
downloadlinux-198016e1b12d781ef00aaafbf571775a8e723f54.tar.xz
[ARM] MXC: add cpu_is_ macros
We had hardcoded cpu_is_ macros for mxc architectures till now. As we want to run the same kernel on i.MX31 and i.MX35 this patch adds cpu_is_ macros which expand to 0 or 1 if only one architecture is compiled in and only check for the cpu type if more than one architecture is compiled in. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/cpu.c')
-rw-r--r--arch/arm/plat-mxc/cpu.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/cpu.c b/arch/arm/plat-mxc/cpu.c
new file mode 100644
index 0000000..386e0d5
--- /dev/null
+++ b/arch/arm/plat-mxc/cpu.c
@@ -0,0 +1,11 @@
+
+#include <linux/module.h>
+
+unsigned int __mxc_cpu_type;
+EXPORT_SYMBOL(__mxc_cpu_type);
+
+void mxc_set_cpu_type(unsigned int type)
+{
+ __mxc_cpu_type = type;
+}
+