Go to the documentation of this file.
20 #ifndef __ASM_ARCH_MXC_H__
21 #define __ASM_ARCH_MXC_H__
23 #include <linux/types.h>
25 #ifndef __ASM_ARCH_MXC_HARDWARE_H__
26 #error "Do not include directly."
30 #define MXC_CPU_MX21 21
31 #define MXC_CPU_MX25 25
32 #define MXC_CPU_MX27 27
33 #define MXC_CPU_MX31 31
34 #define MXC_CPU_MX35 35
35 #define MXC_CPU_MX50 50
36 #define MXC_CPU_MX51 51
37 #define MXC_CPU_MX53 53
39 #define IMX_CHIP_REVISION_1_0 0x10
40 #define IMX_CHIP_REVISION_1_1 0x11
41 #define IMX_CHIP_REVISION_1_2 0x12
42 #define IMX_CHIP_REVISION_1_3 0x13
43 #define IMX_CHIP_REVISION_2_0 0x20
44 #define IMX_CHIP_REVISION_2_1 0x21
45 #define IMX_CHIP_REVISION_2_2 0x22
46 #define IMX_CHIP_REVISION_2_3 0x23
47 #define IMX_CHIP_REVISION_3_0 0x30
48 #define IMX_CHIP_REVISION_3_1 0x31
49 #define IMX_CHIP_REVISION_3_2 0x32
50 #define IMX_CHIP_REVISION_3_3 0x33
51 #define IMX_CHIP_REVISION_UNKNOWN 0xff
57 #ifdef CONFIG_SOC_IMX1
60 # define mxc_cpu_type __mxc_cpu_type
62 # define mxc_cpu_type MXC_CPU_MX1
64 # define cpu_is_mx1() (mxc_cpu_type == MXC_CPU_MX1)
66 # define cpu_is_mx1() (0)
69 #ifdef CONFIG_SOC_IMX21
72 # define mxc_cpu_type __mxc_cpu_type
74 # define mxc_cpu_type MXC_CPU_MX21
76 # define cpu_is_mx21() (mxc_cpu_type == MXC_CPU_MX21)
78 # define cpu_is_mx21() (0)
81 #ifdef CONFIG_SOC_IMX25
84 # define mxc_cpu_type __mxc_cpu_type
86 # define mxc_cpu_type MXC_CPU_MX25
88 # define cpu_is_mx25() (mxc_cpu_type == MXC_CPU_MX25)
90 # define cpu_is_mx25() (0)
93 #ifdef CONFIG_SOC_IMX27
96 # define mxc_cpu_type __mxc_cpu_type
98 # define mxc_cpu_type MXC_CPU_MX27
100 # define cpu_is_mx27() (mxc_cpu_type == MXC_CPU_MX27)
102 # define cpu_is_mx27() (0)
105 #ifdef CONFIG_SOC_IMX31
108 # define mxc_cpu_type __mxc_cpu_type
110 # define mxc_cpu_type MXC_CPU_MX31
112 # define cpu_is_mx31() (mxc_cpu_type == MXC_CPU_MX31)
114 # define cpu_is_mx31() (0)
117 #ifdef CONFIG_SOC_IMX35
120 # define mxc_cpu_type __mxc_cpu_type
122 # define mxc_cpu_type MXC_CPU_MX35
124 # define cpu_is_mx35() (mxc_cpu_type == MXC_CPU_MX35)
126 # define cpu_is_mx35() (0)
129 #ifdef CONFIG_SOC_IMX50
132 # define mxc_cpu_type __mxc_cpu_type
134 # define mxc_cpu_type MXC_CPU_MX50
136 # define cpu_is_mx50() (mxc_cpu_type == MXC_CPU_MX50)
138 # define cpu_is_mx50() (0)
141 #ifdef CONFIG_SOC_IMX51
144 # define mxc_cpu_type __mxc_cpu_type
146 # define mxc_cpu_type MXC_CPU_MX51
148 # define cpu_is_mx51() (mxc_cpu_type == MXC_CPU_MX51)
150 # define cpu_is_mx51() (0)
153 #ifdef CONFIG_SOC_IMX53
156 # define mxc_cpu_type __mxc_cpu_type
158 # define mxc_cpu_type MXC_CPU_MX53
160 # define cpu_is_mx53() (mxc_cpu_type == MXC_CPU_MX53)
162 # define cpu_is_mx53() (0)
173 extern struct cpu_op *(*get_cpu_op)(
int *
op);
176 #define cpu_is_mx3() (cpu_is_mx31() || cpu_is_mx35())
177 #define cpu_is_mx2() (cpu_is_mx21() || cpu_is_mx27())