diff options
Diffstat (limited to 'arch/arm/mach-pxa/include/mach/hardware.h')
-rw-r--r-- | arch/arm/mach-pxa/include/mach/hardware.h | 79 |
1 files changed, 66 insertions, 13 deletions
diff --git a/arch/arm/mach-pxa/include/mach/hardware.h b/arch/arm/mach-pxa/include/mach/hardware.h index a1a0a2ffd642..a582a6d9b92b 100644 --- a/arch/arm/mach-pxa/include/mach/hardware.h +++ b/arch/arm/mach-pxa/include/mach/hardware.h | |||
@@ -64,26 +64,72 @@ | |||
64 | 64 | ||
65 | #include <asm/cputype.h> | 65 | #include <asm/cputype.h> |
66 | 66 | ||
67 | /* | ||
68 | * CPU Stepping CPU_ID JTAG_ID | ||
69 | * | ||
70 | * PXA210 B0 0x69052922 0x2926C013 | ||
71 | * PXA210 B1 0x69052923 0x3926C013 | ||
72 | * PXA210 B2 0x69052924 0x4926C013 | ||
73 | * PXA210 C0 0x69052D25 0x5926C013 | ||
74 | * | ||
75 | * PXA250 A0 0x69052100 0x09264013 | ||
76 | * PXA250 A1 0x69052101 0x19264013 | ||
77 | * PXA250 B0 0x69052902 0x29264013 | ||
78 | * PXA250 B1 0x69052903 0x39264013 | ||
79 | * PXA250 B2 0x69052904 0x49264013 | ||
80 | * PXA250 C0 0x69052D05 0x59264013 | ||
81 | * | ||
82 | * PXA255 A0 0x69052D06 0x69264013 | ||
83 | * | ||
84 | * PXA26x A0 0x69052903 0x39264013 | ||
85 | * PXA26x B0 0x69052D05 0x59264013 | ||
86 | * | ||
87 | * PXA27x A0 0x69054110 0x09265013 | ||
88 | * PXA27x A1 0x69054111 0x19265013 | ||
89 | * PXA27x B0 0x69054112 0x29265013 | ||
90 | * PXA27x B1 0x69054113 0x39265013 | ||
91 | * PXA27x C0 0x69054114 0x49265013 | ||
92 | * PXA27x C5 0x69054117 0x79265013 | ||
93 | * | ||
94 | * PXA30x A0 0x69056880 0x0E648013 | ||
95 | * PXA30x A1 0x69056881 0x1E648013 | ||
96 | * PXA31x A0 0x69056890 0x0E649013 | ||
97 | * PXA31x A1 0x69056891 0x1E649013 | ||
98 | * PXA31x A2 0x69056892 0x2E649013 | ||
99 | * PXA32x B1 0x69056825 0x5E642013 | ||
100 | * PXA32x B2 0x69056826 0x6E642013 | ||
101 | * | ||
102 | * PXA930 B0 0x69056835 0x5E643013 | ||
103 | * PXA930 B1 0x69056837 0x7E643013 | ||
104 | * PXA930 B2 0x69056838 0x8E643013 | ||
105 | */ | ||
67 | #ifdef CONFIG_PXA25x | 106 | #ifdef CONFIG_PXA25x |
68 | #define __cpu_is_pxa21x(id) \ | 107 | #define __cpu_is_pxa210(id) \ |
69 | ({ \ | 108 | ({ \ |
70 | unsigned int _id = (id) >> 4 & 0xf3f; \ | 109 | unsigned int _id = (id) & 0xf3f0; \ |
71 | _id == 0x212; \ | 110 | _id == 0x2120; \ |
72 | }) | 111 | }) |
73 | 112 | ||
74 | #define __cpu_is_pxa255(id) \ | 113 | #define __cpu_is_pxa250(id) \ |
75 | ({ \ | 114 | ({ \ |
76 | unsigned int _id = (id) >> 4 & 0xfff; \ | 115 | unsigned int _id = (id) & 0xf3ff; \ |
77 | _id == 0x2d0; \ | 116 | _id <= 0x2105; \ |
78 | }) | 117 | }) |
118 | |||
119 | #define __cpu_is_pxa255(id) \ | ||
120 | ({ \ | ||
121 | unsigned int _id = (id) & 0xffff; \ | ||
122 | _id == 0x2d06; \ | ||
123 | }) | ||
79 | 124 | ||
80 | #define __cpu_is_pxa25x(id) \ | 125 | #define __cpu_is_pxa25x(id) \ |
81 | ({ \ | 126 | ({ \ |
82 | unsigned int _id = (id) >> 4 & 0xfff; \ | 127 | unsigned int _id = (id) & 0xf300; \ |
83 | _id == 0x2d0 || _id == 0x290; \ | 128 | _id == 0x2100; \ |
84 | }) | 129 | }) |
85 | #else | 130 | #else |
86 | #define __cpu_is_pxa21x(id) (0) | 131 | #define __cpu_is_pxa210(id) (0) |
132 | #define __cpu_is_pxa250(id) (0) | ||
87 | #define __cpu_is_pxa255(id) (0) | 133 | #define __cpu_is_pxa255(id) (0) |
88 | #define __cpu_is_pxa25x(id) (0) | 134 | #define __cpu_is_pxa25x(id) (0) |
89 | #endif | 135 | #endif |
@@ -138,9 +184,14 @@ | |||
138 | #define __cpu_is_pxa930(id) (0) | 184 | #define __cpu_is_pxa930(id) (0) |
139 | #endif | 185 | #endif |
140 | 186 | ||
141 | #define cpu_is_pxa21x() \ | 187 | #define cpu_is_pxa210() \ |
142 | ({ \ | 188 | ({ \ |
143 | __cpu_is_pxa21x(read_cpuid_id()); \ | 189 | __cpu_is_pxa210(read_cpuid_id()); \ |
190 | }) | ||
191 | |||
192 | #define cpu_is_pxa250() \ | ||
193 | ({ \ | ||
194 | __cpu_is_pxa250(read_cpuid_id()); \ | ||
144 | }) | 195 | }) |
145 | 196 | ||
146 | #define cpu_is_pxa255() \ | 197 | #define cpu_is_pxa255() \ |
@@ -153,6 +204,8 @@ | |||
153 | __cpu_is_pxa25x(read_cpuid_id()); \ | 204 | __cpu_is_pxa25x(read_cpuid_id()); \ |
154 | }) | 205 | }) |
155 | 206 | ||
207 | extern int cpu_is_pxa26x(void); | ||
208 | |||
156 | #define cpu_is_pxa27x() \ | 209 | #define cpu_is_pxa27x() \ |
157 | ({ \ | 210 | ({ \ |
158 | __cpu_is_pxa27x(read_cpuid_id()); \ | 211 | __cpu_is_pxa27x(read_cpuid_id()); \ |