Use common cpu_is_xxx() macros on AT91 and AVR32
[linux-2.6/pdupreez.git] / include / asm-avr32 / arch-at32ap / cpu.h
blob2bdc5bd6f793227308b4c40ac3127e2cc8e2d45d
1 /*
2 * AVR32 and (fake) AT91 CPU identification
4 * Copyright (C) 2007 Atmel Corporation
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10 #ifndef __ASM_ARCH_CPU_H
11 #define __ASM_ARCH_CPU_H
14 * Only AT32AP7000 is defined for now. We can identify the specific
15 * chip at runtime, but I'm not sure if it's really worth it.
17 #ifdef CONFIG_CPU_AT32AP7000
18 # define cpu_is_at32ap7000() (1)
19 #else
20 # define cpu_is_at32ap7000() (0)
21 #endif
24 * Since this is AVR32, we will never run on any AT91 CPU. But these
25 * definitions may reduce clutter in common drivers.
27 #define cpu_is_at91rm9200() (0)
28 #define cpu_is_at91sam9xe() (0)
29 #define cpu_is_at91sam9260() (0)
30 #define cpu_is_at91sam9261() (0)
31 #define cpu_is_at91sam9263() (0)
33 #endif /* __ASM_ARCH_CPU_H */