diff options
Diffstat (limited to 'include/asm-arm/arch-pxa/hardware.h')
-rw-r--r-- | include/asm-arm/arch-pxa/hardware.h | 40 |
1 files changed, 32 insertions, 8 deletions
diff --git a/include/asm-arm/arch-pxa/hardware.h b/include/asm-arm/arch-pxa/hardware.h index e25558faa5a4..979a45695d7d 100644 --- a/include/asm-arm/arch-pxa/hardware.h +++ b/include/asm-arm/arch-pxa/hardware.h | |||
@@ -69,6 +69,12 @@ | |||
69 | _id == 0x212; \ | 69 | _id == 0x212; \ |
70 | }) | 70 | }) |
71 | 71 | ||
72 | #define __cpu_is_pxa255(id) \ | ||
73 | ({ \ | ||
74 | unsigned int _id = (id) >> 4 & 0xfff; \ | ||
75 | _id == 0x2d0; \ | ||
76 | }) | ||
77 | |||
72 | #define __cpu_is_pxa25x(id) \ | 78 | #define __cpu_is_pxa25x(id) \ |
73 | ({ \ | 79 | ({ \ |
74 | unsigned int _id = (id) >> 4 & 0xfff; \ | 80 | unsigned int _id = (id) >> 4 & 0xfff; \ |
@@ -76,6 +82,7 @@ | |||
76 | }) | 82 | }) |
77 | #else | 83 | #else |
78 | #define __cpu_is_pxa21x(id) (0) | 84 | #define __cpu_is_pxa21x(id) (0) |
85 | #define __cpu_is_pxa255(id) (0) | ||
79 | #define __cpu_is_pxa25x(id) (0) | 86 | #define __cpu_is_pxa25x(id) (0) |
80 | #endif | 87 | #endif |
81 | 88 | ||
@@ -119,11 +126,26 @@ | |||
119 | #define __cpu_is_pxa320(id) (0) | 126 | #define __cpu_is_pxa320(id) (0) |
120 | #endif | 127 | #endif |
121 | 128 | ||
129 | #ifdef CONFIG_CPU_PXA930 | ||
130 | #define __cpu_is_pxa930(id) \ | ||
131 | ({ \ | ||
132 | unsigned int _id = (id) >> 4 & 0xfff; \ | ||
133 | _id == 0x683; \ | ||
134 | }) | ||
135 | #else | ||
136 | #define __cpu_is_pxa930(id) (0) | ||
137 | #endif | ||
138 | |||
122 | #define cpu_is_pxa21x() \ | 139 | #define cpu_is_pxa21x() \ |
123 | ({ \ | 140 | ({ \ |
124 | __cpu_is_pxa21x(read_cpuid_id()); \ | 141 | __cpu_is_pxa21x(read_cpuid_id()); \ |
125 | }) | 142 | }) |
126 | 143 | ||
144 | #define cpu_is_pxa255() \ | ||
145 | ({ \ | ||
146 | __cpu_is_pxa255(read_cpuid_id()); \ | ||
147 | }) | ||
148 | |||
127 | #define cpu_is_pxa25x() \ | 149 | #define cpu_is_pxa25x() \ |
128 | ({ \ | 150 | ({ \ |
129 | __cpu_is_pxa25x(read_cpuid_id()); \ | 151 | __cpu_is_pxa25x(read_cpuid_id()); \ |
@@ -149,6 +171,12 @@ | |||
149 | __cpu_is_pxa320(read_cpuid_id()); \ | 171 | __cpu_is_pxa320(read_cpuid_id()); \ |
150 | }) | 172 | }) |
151 | 173 | ||
174 | #define cpu_is_pxa930() \ | ||
175 | ({ \ | ||
176 | unsigned int id = read_cpuid(CPUID_ID); \ | ||
177 | __cpu_is_pxa930(id); \ | ||
178 | }) | ||
179 | |||
152 | /* | 180 | /* |
153 | * CPUID Core Generation Bit | 181 | * CPUID Core Generation Bit |
154 | * <= 0x2 for pxa21x/pxa25x/pxa26x/pxa27x | 182 | * <= 0x2 for pxa21x/pxa25x/pxa26x/pxa27x |
@@ -192,18 +220,14 @@ extern int pxa_gpio_get_value(unsigned gpio); | |||
192 | extern void pxa_gpio_set_value(unsigned gpio, int value); | 220 | extern void pxa_gpio_set_value(unsigned gpio, int value); |
193 | 221 | ||
194 | /* | 222 | /* |
195 | * Routine to enable or disable CKEN | 223 | * return current memory and LCD clock frequency in units of 10kHz |
196 | */ | 224 | */ |
197 | static inline void __deprecated pxa_set_cken(int clock, int enable) | 225 | extern unsigned int get_memclk_frequency_10khz(void); |
198 | { | ||
199 | extern void __pxa_set_cken(int clock, int enable); | ||
200 | __pxa_set_cken(clock, enable); | ||
201 | } | ||
202 | 226 | ||
203 | /* | 227 | /* |
204 | * return current memory and LCD clock frequency in units of 10kHz | 228 | * register GPIO as reset generator |
205 | */ | 229 | */ |
206 | extern unsigned int get_memclk_frequency_10khz(void); | 230 | extern int init_gpio_reset(int gpio); |
207 | 231 | ||
208 | #endif | 232 | #endif |
209 | 233 | ||