diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-06-04 05:32:12 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-08-14 06:40:42 -0400 |
commit | 8c25c36f33157a2e2a1fcd60b6dc00feace80631 (patch) | |
tree | 8647a0a59c6ed009a90618cd16ac524e2038fcaf /arch/arm/plat-mxc/include/mach/mxc.h | |
parent | a058cbc17901108de9179dccdb29dff0e00c79fe (diff) |
Add i.MX25 support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/include/mach/mxc.h')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/mxc.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/include/mach/mxc.h b/arch/arm/plat-mxc/include/mach/mxc.h index 5fa2a07f4eaf..882b816729bd 100644 --- a/arch/arm/plat-mxc/include/mach/mxc.h +++ b/arch/arm/plat-mxc/include/mach/mxc.h | |||
@@ -26,6 +26,7 @@ | |||
26 | 26 | ||
27 | #define MXC_CPU_MX1 1 | 27 | #define MXC_CPU_MX1 1 |
28 | #define MXC_CPU_MX21 21 | 28 | #define MXC_CPU_MX21 21 |
29 | #define MXC_CPU_MX25 25 | ||
29 | #define MXC_CPU_MX27 27 | 30 | #define MXC_CPU_MX27 27 |
30 | #define MXC_CPU_MX31 31 | 31 | #define MXC_CPU_MX31 31 |
31 | #define MXC_CPU_MX35 35 | 32 | #define MXC_CPU_MX35 35 |
@@ -58,6 +59,18 @@ extern unsigned int __mxc_cpu_type; | |||
58 | # define cpu_is_mx21() (0) | 59 | # define cpu_is_mx21() (0) |
59 | #endif | 60 | #endif |
60 | 61 | ||
62 | #ifdef CONFIG_ARCH_MX25 | ||
63 | # ifdef mxc_cpu_type | ||
64 | # undef mxc_cpu_type | ||
65 | # define mxc_cpu_type __mxc_cpu_type | ||
66 | # else | ||
67 | # define mxc_cpu_type MXC_CPU_MX25 | ||
68 | # endif | ||
69 | # define cpu_is_mx25() (mxc_cpu_type == MXC_CPU_MX25) | ||
70 | #else | ||
71 | # define cpu_is_mx25() (0) | ||
72 | #endif | ||
73 | |||
61 | #ifdef CONFIG_MACH_MX27 | 74 | #ifdef CONFIG_MACH_MX27 |
62 | # ifdef mxc_cpu_type | 75 | # ifdef mxc_cpu_type |
63 | # undef mxc_cpu_type | 76 | # undef mxc_cpu_type |