1 #ifndef __ASM_MACH_CPUTYPE_H
2 #define __ASM_MACH_CPUTYPE_H
4 #include <asm/cputype.h>
7 * CPU Stepping OLD_ID CPU_ID CHIP_ID
9 * PXA168 A0 0x41159263 0x56158400 0x00A0A333
10 * PXA910 Y0 0x41159262 0x56158000 0x00F0C910
13 #ifdef CONFIG_CPU_PXA168
14 # define __cpu_is_pxa168(id) \
15 ({ unsigned int _id = ((id) >> 8) & 0xff; _id == 0x84; })
17 # define __cpu_is_pxa168(id) (0)
20 #ifdef CONFIG_CPU_PXA910
21 # define __cpu_is_pxa910(id) \
22 ({ unsigned int _id = ((id) >> 8) & 0xff; _id == 0x80; })
24 # define __cpu_is_pxa910(id) (0)
27 #define cpu_is_pxa168() ({ __cpu_is_pxa168(read_cpuid_id()); })
28 #define cpu_is_pxa910() ({ __cpu_is_pxa910(read_cpuid_id()); })
30 #endif /* __ASM_MACH_CPUTYPE_H */