dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/include/asm-avr32/arch-at32ap
Haavard Skinnemoen e7498281d3 Use common cpu_is_xxx() macros on AT91 and AVR32
Several drivers shared between AT91 and AVR32 chips use cpu_is_xxx()
to handle CPU-specific differences. Currently, such code needs to be
inside #ifdef CONFIG_ARCH_AT91 because the macros don't exist on AVR32.

By defining the same macros on both AT91 and AVR32, these #ifdefs can
be eliminated. Since the macros will evaluate to a constant value for
CPUs that aren't supported by the current architecture, any code that
is only needed on AT91 will be optimized away on AVR32 and vice versa.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: David Brownell <david-b@pacbell.net>
Acked-by: Andrew Victor <andrew@sanpeople.com>
Cc: Nicolas Ferre <nicolas.ferre@rfo.atmel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-09 12:30:50 -07:00
..
at32ap7000.h [AVR32] Add PIOE device and reserve SDRAM pins 2007-02-09 15:01:58 +01:00
board.h [AVR32] Use per-controller spi_board_info structures 2007-02-16 14:01:40 +01:00
cpu.h Use common cpu_is_xxx() macros on AT91 and AVR32 2007-05-09 12:30:50 -07:00
gpio.h [PATCH] gpio_direction_output() needs an initial value 2007-03-16 19:25:04 -07:00
init.h [PATCH] AVR32: Allow renumbering of serial devices 2006-10-04 10:25:06 -07:00
io.h [AVR32] Make I/O access macros work with external devices 2007-04-27 13:44:14 +02:00
irq.h [AVR32] Add PIOE device and reserve SDRAM pins 2007-02-09 15:01:58 +01:00
portmux.h [AVR32] Introduce at32_reserve_pin() 2007-02-09 15:01:58 +01:00
sm.h [PATCH] avr32 architecture 2006-09-26 08:48:54 -07:00
smc.h [AVR32] Add nwait and tdf parameters to SMC configuration 2007-04-27 13:43:27 +02:00
time.h [AVR32] Change system timer from count-compare to Timer/Counter 0 2007-04-27 13:44:12 +02:00