diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-08-07 09:55:16 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-08-07 09:55:16 +0100 |
commit | a1b81a84fff05dbfef45b7012c26e1fee9973e5d (patch) | |
tree | 3d053e76542ad4d20bd83ad35c13eabff97003ab | |
parent | 4fb8af10d0fd09372d52966b76922b9e82bbc950 (diff) | |
parent | 3663b736a5083b3bce74520b637f630f01f66a7f (diff) | |
download | kernel_samsung_smdk4412-a1b81a84fff05dbfef45b7012c26e1fee9973e5d.zip kernel_samsung_smdk4412-a1b81a84fff05dbfef45b7012c26e1fee9973e5d.tar.gz kernel_samsung_smdk4412-a1b81a84fff05dbfef45b7012c26e1fee9973e5d.tar.bz2 |
Merge branch 'header-move' of git://git.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/avr32-2.6
-rw-r--r-- | arch/avr32/Makefile | 7 | ||||
-rw-r--r-- | arch/avr32/boards/atngw100/flash.c | 2 | ||||
-rw-r--r-- | arch/avr32/boards/atngw100/setup.c | 8 | ||||
-rw-r--r-- | arch/avr32/boards/atstk1000/atstk1002.c | 10 | ||||
-rw-r--r-- | arch/avr32/boards/atstk1000/atstk1003.c | 8 | ||||
-rw-r--r-- | arch/avr32/boards/atstk1000/atstk1004.c | 8 | ||||
-rw-r--r-- | arch/avr32/boards/atstk1000/flash.c | 2 | ||||
-rw-r--r-- | arch/avr32/boards/atstk1000/setup.c | 6 | ||||
-rw-r--r-- | arch/avr32/include/asm/Kbuild (renamed from include/asm-avr32/Kbuild) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/a.out.h (renamed from include/asm-avr32/a.out.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/addrspace.h (renamed from include/asm-avr32/addrspace.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/asm.h (renamed from include/asm-avr32/asm.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/atmel-mci.h (renamed from include/asm-avr32/atmel-mci.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/atomic.h (renamed from include/asm-avr32/atomic.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/auxvec.h (renamed from include/asm-avr32/auxvec.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/bitops.h (renamed from include/asm-avr32/bitops.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/bug.h (renamed from include/asm-avr32/bug.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/bugs.h (renamed from include/asm-avr32/bugs.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/byteorder.h (renamed from include/asm-avr32/byteorder.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/cache.h (renamed from include/asm-avr32/cache.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/cachectl.h (renamed from include/asm-avr32/cachectl.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/cacheflush.h (renamed from include/asm-avr32/cacheflush.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/checksum.h (renamed from include/asm-avr32/checksum.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/cputime.h (renamed from include/asm-avr32/cputime.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/current.h (renamed from include/asm-avr32/current.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/delay.h (renamed from include/asm-avr32/delay.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/device.h (renamed from include/asm-avr32/device.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/div64.h (renamed from include/asm-avr32/div64.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/dma-mapping.h (renamed from include/asm-avr32/dma-mapping.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/dma.h (renamed from include/asm-avr32/dma.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/elf.h (renamed from include/asm-avr32/elf.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/emergency-restart.h (renamed from include/asm-avr32/emergency-restart.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/errno.h (renamed from include/asm-avr32/errno.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/fb.h (renamed from include/asm-avr32/fb.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/fcntl.h (renamed from include/asm-avr32/fcntl.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/futex.h (renamed from include/asm-avr32/futex.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/gpio.h (renamed from include/asm-avr32/gpio.h) | 2 | ||||
-rw-r--r-- | arch/avr32/include/asm/hardirq.h (renamed from include/asm-avr32/hardirq.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/hw_irq.h (renamed from include/asm-avr32/hw_irq.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/io.h (renamed from include/asm-avr32/io.h) | 2 | ||||
-rw-r--r-- | arch/avr32/include/asm/ioctl.h (renamed from include/asm-avr32/ioctl.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/ioctls.h (renamed from include/asm-avr32/ioctls.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/ipcbuf.h (renamed from include/asm-avr32/ipcbuf.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/irq.h (renamed from include/asm-avr32/irq.h) | 2 | ||||
-rw-r--r-- | arch/avr32/include/asm/irq_regs.h (renamed from include/asm-avr32/irq_regs.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/irqflags.h (renamed from include/asm-avr32/irqflags.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/kdebug.h (renamed from include/asm-avr32/kdebug.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/kmap_types.h (renamed from include/asm-avr32/kmap_types.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/kprobes.h (renamed from include/asm-avr32/kprobes.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/linkage.h (renamed from include/asm-avr32/linkage.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/local.h (renamed from include/asm-avr32/local.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/mach/serial_at91.h (renamed from include/asm-avr32/mach/serial_at91.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/mman.h (renamed from include/asm-avr32/mman.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/mmu.h (renamed from include/asm-avr32/mmu.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/mmu_context.h (renamed from include/asm-avr32/mmu_context.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/module.h (renamed from include/asm-avr32/module.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/msgbuf.h (renamed from include/asm-avr32/msgbuf.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/mutex.h (renamed from include/asm-avr32/mutex.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/numnodes.h (renamed from include/asm-avr32/numnodes.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/ocd.h (renamed from include/asm-avr32/ocd.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/page.h (renamed from include/asm-avr32/page.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/param.h (renamed from include/asm-avr32/param.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/pci.h (renamed from include/asm-avr32/pci.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/percpu.h (renamed from include/asm-avr32/percpu.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/pgalloc.h (renamed from include/asm-avr32/pgalloc.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/pgtable-2level.h (renamed from include/asm-avr32/pgtable-2level.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/pgtable.h (renamed from include/asm-avr32/pgtable.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/poll.h (renamed from include/asm-avr32/poll.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/posix_types.h (renamed from include/asm-avr32/posix_types.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/processor.h (renamed from include/asm-avr32/processor.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/ptrace.h (renamed from include/asm-avr32/ptrace.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/resource.h (renamed from include/asm-avr32/resource.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/scatterlist.h (renamed from include/asm-avr32/scatterlist.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/sections.h (renamed from include/asm-avr32/sections.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/sembuf.h (renamed from include/asm-avr32/sembuf.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/serial.h (renamed from include/asm-avr32/serial.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/setup.h (renamed from include/asm-avr32/setup.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/shmbuf.h (renamed from include/asm-avr32/shmbuf.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/shmparam.h (renamed from include/asm-avr32/shmparam.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/sigcontext.h (renamed from include/asm-avr32/sigcontext.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/siginfo.h (renamed from include/asm-avr32/siginfo.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/signal.h (renamed from include/asm-avr32/signal.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/socket.h (renamed from include/asm-avr32/socket.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/sockios.h (renamed from include/asm-avr32/sockios.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/stat.h (renamed from include/asm-avr32/stat.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/statfs.h (renamed from include/asm-avr32/statfs.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/string.h (renamed from include/asm-avr32/string.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/sysreg.h (renamed from include/asm-avr32/sysreg.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/system.h (renamed from include/asm-avr32/system.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/termbits.h (renamed from include/asm-avr32/termbits.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/termios.h (renamed from include/asm-avr32/termios.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/thread_info.h (renamed from include/asm-avr32/thread_info.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/timex.h (renamed from include/asm-avr32/timex.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/tlb.h (renamed from include/asm-avr32/tlb.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/tlbflush.h (renamed from include/asm-avr32/tlbflush.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/topology.h (renamed from include/asm-avr32/topology.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/traps.h (renamed from include/asm-avr32/traps.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/types.h (renamed from include/asm-avr32/types.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/uaccess.h (renamed from include/asm-avr32/uaccess.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/ucontext.h (renamed from include/asm-avr32/ucontext.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/unaligned.h (renamed from include/asm-avr32/unaligned.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/unistd.h (renamed from include/asm-avr32/unistd.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/user.h (renamed from include/asm-avr32/user.h) | 0 | ||||
-rw-r--r-- | arch/avr32/include/asm/xor.h (renamed from include/asm-avr32/xor.h) | 0 | ||||
-rw-r--r-- | arch/avr32/kernel/process.c | 2 | ||||
-rw-r--r-- | arch/avr32/kernel/setup.c | 4 | ||||
-rw-r--r-- | arch/avr32/kernel/time.c | 2 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/at32ap700x.c | 8 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/hsmc.c | 2 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/include/mach/at32ap700x.h | 49 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/include/mach/board.h | 121 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/include/mach/cpu.h | 35 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/include/mach/gpio.h | 45 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/include/mach/init.h | 18 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/include/mach/io.h | 39 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/include/mach/irq.h | 14 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/include/mach/pm.h | 51 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/include/mach/portmux.h | 29 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/include/mach/smc.h | 113 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/include/mach/sram.h | 30 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/pio.c | 2 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/pm-at32ap700x.S | 2 | ||||
-rw-r--r-- | arch/avr32/mach-at32ap/pm.c | 4 | ||||
-rw-r--r-- | drivers/ata/pata_at32.c | 4 | ||||
-rw-r--r-- | drivers/mmc/host/atmel-mci.c | 2 |
125 files changed, 591 insertions, 42 deletions
diff --git a/arch/avr32/Makefile b/arch/avr32/Makefile index 17a3529..5b46433 100644 --- a/arch/avr32/Makefile +++ b/arch/avr32/Makefile @@ -23,9 +23,14 @@ KBUILD_AFLAGS += $(cpuflags-y) CHECKFLAGS += -D__avr32__ -D__BIG_ENDIAN +machine-$(CONFIG_PLATFORM_AT32AP) := at32ap +machdirs := $(patsubst %,arch/avr32/mach-%/, $(machine-y)) + +KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs)) + head-$(CONFIG_LOADER_U_BOOT) += arch/avr32/boot/u-boot/head.o head-y += arch/avr32/kernel/head.o -core-$(CONFIG_PLATFORM_AT32AP) += arch/avr32/mach-at32ap/ +core-y += $(machdirs) core-$(CONFIG_BOARD_ATSTK1000) += arch/avr32/boards/atstk1000/ core-$(CONFIG_BOARD_ATNGW100) += arch/avr32/boards/atngw100/ core-$(CONFIG_LOADER_U_BOOT) += arch/avr32/boot/u-boot/ diff --git a/arch/avr32/boards/atngw100/flash.c b/arch/avr32/boards/atngw100/flash.c index b07ae63..55ccc9c 100644 --- a/arch/avr32/boards/atngw100/flash.c +++ b/arch/avr32/boards/atngw100/flash.c @@ -13,7 +13,7 @@ #include <linux/mtd/partitions.h> #include <linux/mtd/physmap.h> -#include <asm/arch/smc.h> +#include <mach/smc.h> static struct smc_timing flash_timing __initdata = { .ncs_read_setup = 0, diff --git a/arch/avr32/boards/atngw100/setup.c b/arch/avr32/boards/atngw100/setup.c index c7fe94d..670c87b 100644 --- a/arch/avr32/boards/atngw100/setup.c +++ b/arch/avr32/boards/atngw100/setup.c @@ -23,10 +23,10 @@ #include <asm/io.h> #include <asm/setup.h> -#include <asm/arch/at32ap700x.h> -#include <asm/arch/board.h> -#include <asm/arch/init.h> -#include <asm/arch/portmux.h> +#include <mach/at32ap700x.h> +#include <mach/board.h> +#include <mach/init.h> +#include <mach/portmux.h> /* Oscillator frequencies. These are board-specific */ unsigned long at32_board_osc_rates[3] = { diff --git a/arch/avr32/boards/atstk1000/atstk1002.c b/arch/avr32/boards/atstk1000/atstk1002.c index 8538ba7..b33542b 100644 --- a/arch/avr32/boards/atstk1000/atstk1002.c +++ b/arch/avr32/boards/atstk1000/atstk1002.c @@ -23,10 +23,10 @@ #include <asm/setup.h> #include <asm/atmel-mci.h> -#include <asm/arch/at32ap700x.h> -#include <asm/arch/board.h> -#include <asm/arch/init.h> -#include <asm/arch/portmux.h> +#include <mach/at32ap700x.h> +#include <mach/board.h> +#include <mach/init.h> +#include <mach/portmux.h> #include "atstk1000.h" @@ -49,7 +49,7 @@ unsigned long at32_board_osc_rates[3] = { */ #ifdef CONFIG_BOARD_ATSTK1006 #include <linux/mtd/partitions.h> -#include <asm/arch/smc.h> +#include <mach/smc.h> static struct smc_timing nand_timing __initdata = { .ncs_read_setup = 0, diff --git a/arch/avr32/boards/atstk1000/atstk1003.c b/arch/avr32/boards/atstk1000/atstk1003.c index 591fc73..0cf6641 100644 --- a/arch/avr32/boards/atstk1000/atstk1003.c +++ b/arch/avr32/boards/atstk1000/atstk1003.c @@ -20,10 +20,10 @@ #include <asm/setup.h> -#include <asm/arch/at32ap700x.h> -#include <asm/arch/board.h> -#include <asm/arch/init.h> -#include <asm/arch/portmux.h> +#include <mach/at32ap700x.h> +#include <mach/board.h> +#include <mach/init.h> +#include <mach/portmux.h> #include "atstk1000.h" diff --git a/arch/avr32/boards/atstk1000/atstk1004.c b/arch/avr32/boards/atstk1000/atstk1004.c index d9c5e0a..50a5273 100644 --- a/arch/avr32/boards/atstk1000/atstk1004.c +++ b/arch/avr32/boards/atstk1000/atstk1004.c @@ -22,10 +22,10 @@ #include <asm/setup.h> -#include <asm/arch/at32ap700x.h> -#include <asm/arch/board.h> -#include <asm/arch/init.h> -#include <asm/arch/portmux.h> +#include <mach/at32ap700x.h> +#include <mach/board.h> +#include <mach/init.h> +#include <mach/portmux.h> #include "atstk1000.h" diff --git a/arch/avr32/boards/atstk1000/flash.c b/arch/avr32/boards/atstk1000/flash.c index 3d0a102..6e4d561 100644 --- a/arch/avr32/boards/atstk1000/flash.c +++ b/arch/avr32/boards/atstk1000/flash.c @@ -13,7 +13,7 @@ #include <linux/mtd/partitions.h> #include <linux/mtd/physmap.h> -#include <asm/arch/smc.h> +#include <mach/smc.h> static struct smc_timing flash_timing __initdata = { .ncs_read_setup = 0, diff --git a/arch/avr32/boards/atstk1000/setup.c b/arch/avr32/boards/atstk1000/setup.c index 8bedf93..2d6b560 100644 --- a/arch/avr32/boards/atstk1000/setup.c +++ b/arch/avr32/boards/atstk1000/setup.c @@ -18,9 +18,9 @@ #include <asm/setup.h> -#include <asm/arch/at32ap700x.h> -#include <asm/arch/board.h> -#include <asm/arch/portmux.h> +#include <mach/at32ap700x.h> +#include <mach/board.h> +#include <mach/portmux.h> #include "atstk1000.h" diff --git a/include/asm-avr32/Kbuild b/arch/avr32/include/asm/Kbuild index 3136628..3136628 100644 --- a/include/asm-avr32/Kbuild +++ b/arch/avr32/include/asm/Kbuild diff --git a/include/asm-avr32/a.out.h b/arch/avr32/include/asm/a.out.h index e46375a..e46375a 100644 --- a/include/asm-avr32/a.out.h +++ b/arch/avr32/include/asm/a.out.h diff --git a/include/asm-avr32/addrspace.h b/arch/avr32/include/asm/addrspace.h index 3667948..3667948 100644 --- a/include/asm-avr32/addrspace.h +++ b/arch/avr32/include/asm/addrspace.h diff --git a/include/asm-avr32/asm.h b/arch/avr32/include/asm/asm.h index a2c64f4..a2c64f4 100644 --- a/include/asm-avr32/asm.h +++ b/arch/avr32/include/asm/asm.h diff --git a/include/asm-avr32/atmel-mci.h b/arch/avr32/include/asm/atmel-mci.h index c2ea6e1..c2ea6e1 100644 --- a/include/asm-avr32/atmel-mci.h +++ b/arch/avr32/include/asm/atmel-mci.h diff --git a/include/asm-avr32/atomic.h b/arch/avr32/include/asm/atomic.h index 7ef3862..7ef3862 100644 --- a/include/asm-avr32/atomic.h +++ b/arch/avr32/include/asm/atomic.h diff --git a/include/asm-avr32/auxvec.h b/arch/avr32/include/asm/auxvec.h index d5dd435..d5dd435 100644 --- a/include/asm-avr32/auxvec.h +++ b/arch/avr32/include/asm/auxvec.h diff --git a/include/asm-avr32/bitops.h b/arch/avr32/include/asm/bitops.h index 1a50b69..1a50b69 100644 --- a/include/asm-avr32/bitops.h +++ b/arch/avr32/include/asm/bitops.h diff --git a/include/asm-avr32/bug.h b/arch/avr32/include/asm/bug.h index 331d45b..331d45b 100644 --- a/include/asm-avr32/bug.h +++ b/arch/avr32/include/asm/bug.h diff --git a/include/asm-avr32/bugs.h b/arch/avr32/include/asm/bugs.h index 7635e77..7635e77 100644 --- a/include/asm-avr32/bugs.h +++ b/arch/avr32/include/asm/bugs.h diff --git a/include/asm-avr32/byteorder.h b/arch/avr32/include/asm/byteorder.h index d77b48b..d77b48b 100644 --- a/include/asm-avr32/byteorder.h +++ b/arch/avr32/include/asm/byteorder.h diff --git a/include/asm-avr32/cache.h b/arch/avr32/include/asm/cache.h index d3cf35a..d3cf35a 100644 --- a/include/asm-avr32/cache.h +++ b/arch/avr32/include/asm/cache.h diff --git a/include/asm-avr32/cachectl.h b/arch/avr32/include/asm/cachectl.h index 4faf1ce..4faf1ce 100644 --- a/include/asm-avr32/cachectl.h +++ b/arch/avr32/include/asm/cachectl.h diff --git a/include/asm-avr32/cacheflush.h b/arch/avr32/include/asm/cacheflush.h index 6706747..6706747 100644 --- a/include/asm-avr32/cacheflush.h +++ b/arch/avr32/include/asm/cacheflush.h diff --git a/include/asm-avr32/checksum.h b/arch/avr32/include/asm/checksum.h index 4ddbfd2..4ddbfd2 100644 --- a/include/asm-avr32/checksum.h +++ b/arch/avr32/include/asm/checksum.h diff --git a/include/asm-avr32/cputime.h b/arch/avr32/include/asm/cputime.h index e87e0f8..e87e0f8 100644 --- a/include/asm-avr32/cputime.h +++ b/arch/avr32/include/asm/cputime.h diff --git a/include/asm-avr32/current.h b/arch/avr32/include/asm/current.h index c7b0549..c7b0549 100644 --- a/include/asm-avr32/current.h +++ b/arch/avr32/include/asm/current.h diff --git a/include/asm-avr32/delay.h b/arch/avr32/include/asm/delay.h index a0ed9a9..a0ed9a9 100644 --- a/include/asm-avr32/delay.h +++ b/arch/avr32/include/asm/delay.h diff --git a/include/asm-avr32/device.h b/arch/avr32/include/asm/device.h index d8f9872..d8f9872 100644 --- a/include/asm-avr32/device.h +++ b/arch/avr32/include/asm/device.h diff --git a/include/asm-avr32/div64.h b/arch/avr32/include/asm/div64.h index d7ddd4f..d7ddd4f 100644 --- a/include/asm-avr32/div64.h +++ b/arch/avr32/include/asm/div64.h diff --git a/include/asm-avr32/dma-mapping.h b/arch/avr32/include/asm/dma-mapping.h index 0399359..0399359 100644 --- a/include/asm-avr32/dma-mapping.h +++ b/arch/avr32/include/asm/dma-mapping.h diff --git a/include/asm-avr32/dma.h b/arch/avr32/include/asm/dma.h index 9e91205..9e91205 100644 --- a/include/asm-avr32/dma.h +++ b/arch/avr32/include/asm/dma.h diff --git a/include/asm-avr32/elf.h b/arch/avr32/include/asm/elf.h index 64ce40e..64ce40e 100644 --- a/include/asm-avr32/elf.h +++ b/arch/avr32/include/asm/elf.h diff --git a/include/asm-avr32/emergency-restart.h b/arch/avr32/include/asm/emergency-restart.h index 3e7e014..3e7e014 100644 --- a/include/asm-avr32/emergency-restart.h +++ b/arch/avr32/include/asm/emergency-restart.h diff --git a/include/asm-avr32/errno.h b/arch/avr32/include/asm/errno.h index 558a724..558a724 100644 --- a/include/asm-avr32/errno.h +++ b/arch/avr32/include/asm/errno.h diff --git a/include/asm-avr32/fb.h b/arch/avr32/include/asm/fb.h index 41baf84..41baf84 100644 --- a/include/asm-avr32/fb.h +++ b/arch/avr32/include/asm/fb.h diff --git a/include/asm-avr32/fcntl.h b/arch/avr32/include/asm/fcntl.h index 14c0c44..14c0c44 100644 --- a/include/asm-avr32/fcntl.h +++ b/arch/avr32/include/asm/fcntl.h diff --git a/include/asm-avr32/futex.h b/arch/avr32/include/asm/futex.h index 10419f1..10419f1 100644 --- a/include/asm-avr32/futex.h +++ b/arch/avr32/include/asm/futex.h diff --git a/include/asm-avr32/gpio.h b/arch/avr32/include/asm/gpio.h index 19e8ccc..b771f71 100644 --- a/include/asm-avr32/gpio.h +++ b/arch/avr32/include/asm/gpio.h @@ -1,6 +1,6 @@ #ifndef __ASM_AVR32_GPIO_H #define __ASM_AVR32_GPIO_H -#include <asm/arch/gpio.h> +#include <mach/gpio.h> #endif /* __ASM_AVR32_GPIO_H */ diff --git a/include/asm-avr32/hardirq.h b/arch/avr32/include/asm/hardirq.h index 2673543..2673543 100644 --- a/include/asm-avr32/hardirq.h +++ b/arch/avr32/include/asm/hardirq.h diff --git a/include/asm-avr32/hw_irq.h b/arch/avr32/include/asm/hw_irq.h index 218b0a6..218b0a6 100644 --- a/include/asm-avr32/hw_irq.h +++ b/arch/avr32/include/asm/hw_irq.h diff --git a/include/asm-avr32/io.h b/arch/avr32/include/asm/io.h index 8be7ea9..a520f77 100644 --- a/include/asm-avr32/io.h +++ b/arch/avr32/include/asm/io.h @@ -8,7 +8,7 @@ #include <asm/addrspace.h> #include <asm/byteorder.h> -#include <asm/arch/io.h> +#include <mach/io.h> /* virt_to_phys will only work when address is in P1 or P2 */ static __inline__ unsigned long virt_to_phys(volatile void *address) diff --git a/include/asm-avr32/ioctl.h b/arch/avr32/include/asm/ioctl.h index c8472c1..c8472c1 100644 --- a/include/asm-avr32/ioctl.h +++ b/arch/avr32/include/asm/ioctl.h diff --git a/include/asm-avr32/ioctls.h b/arch/avr32/include/asm/ioctls.h index 0cf2c0a..0cf2c0a 100644 --- a/include/asm-avr32/ioctls.h +++ b/arch/avr32/include/asm/ioctls.h diff --git a/include/asm-avr32/ipcbuf.h b/arch/avr32/include/asm/ipcbuf.h index 1552c96..1552c96 100644 --- a/include/asm-avr32/ipcbuf.h +++ b/arch/avr32/include/asm/ipcbuf.h diff --git a/include/asm-avr32/irq.h b/arch/avr32/include/asm/irq.h index c563b77..6fa8913f 100644 --- a/include/asm-avr32/irq.h +++ b/arch/avr32/include/asm/irq.h @@ -3,7 +3,7 @@ #define NR_INTERNAL_IRQS 64 -#include <asm/arch/irq.h> +#include <mach/irq.h> #ifndef NR_IRQS #define NR_IRQS (NR_INTERNAL_IRQS) diff --git a/include/asm-avr32/irq_regs.h b/arch/avr32/include/asm/irq_regs.h index 3dd9c0b..3dd9c0b 100644 --- a/include/asm-avr32/irq_regs.h +++ b/arch/avr32/include/asm/irq_regs.h diff --git a/include/asm-avr32/irqflags.h b/arch/avr32/include/asm/irqflags.h index 93570da..93570da 100644 --- a/include/asm-avr32/irqflags.h +++ b/arch/avr32/include/asm/irqflags.h diff --git a/include/asm-avr32/kdebug.h b/arch/avr32/include/asm/kdebug.h index ca4f954..ca4f954 100644 --- a/include/asm-avr32/kdebug.h +++ b/arch/avr32/include/asm/kdebug.h diff --git a/include/asm-avr32/kmap_types.h b/arch/avr32/include/asm/kmap_types.h index b7f5c68..b7f5c68 100644 --- a/include/asm-avr32/kmap_types.h +++ b/arch/avr32/include/asm/kmap_types.h diff --git a/include/asm-avr32/kprobes.h b/arch/avr32/include/asm/kprobes.h index 996cb65..996cb65 100644 --- a/include/asm-avr32/kprobes.h +++ b/arch/avr32/include/asm/kprobes.h diff --git a/include/asm-avr32/linkage.h b/arch/avr32/include/asm/linkage.h index f7b285e..f7b285e 100644 --- a/include/asm-avr32/linkage.h +++ b/arch/avr32/include/asm/linkage.h diff --git a/include/asm-avr32/local.h b/arch/avr32/include/asm/local.h index 1c16196..1c16196 100644 --- a/include/asm-avr32/local.h +++ b/arch/avr32/include/asm/local.h diff --git a/include/asm-avr32/mach/serial_at91.h b/arch/avr32/include/asm/mach/serial_at91.h index 55b317a..55b317a 100644 --- a/include/asm-avr32/mach/serial_at91.h +++ b/arch/avr32/include/asm/mach/serial_at91.h diff --git a/include/asm-avr32/mman.h b/arch/avr32/include/asm/mman.h index 648f91e..648f91e 100644 --- a/include/asm-avr32/mman.h +++ b/arch/avr32/include/asm/mman.h diff --git a/include/asm-avr32/mmu.h b/arch/avr32/include/asm/mmu.h index 60c2d26..60c2d26 100644 --- a/include/asm-avr32/mmu.h +++ b/arch/avr32/include/asm/mmu.h diff --git a/include/asm-avr32/mmu_context.h b/arch/avr32/include/asm/mmu_context.h index 27ff234..27ff234 100644 --- a/include/asm-avr32/mmu_context.h +++ b/arch/avr32/include/asm/mmu_context.h diff --git a/include/asm-avr32/module.h b/arch/avr32/include/asm/module.h index 4514445..4514445 100644 --- a/include/asm-avr32/module.h +++ b/arch/avr32/include/asm/module.h diff --git a/include/asm-avr32/msgbuf.h b/arch/avr32/include/asm/msgbuf.h index ac18bc4..ac18bc4 100644 --- a/include/asm-avr32/msgbuf.h +++ b/arch/avr32/include/asm/msgbuf.h diff --git a/include/asm-avr32/mutex.h b/arch/avr32/include/asm/mutex.h index 458c1f7..458c1f7 100644 --- a/include/asm-avr32/mutex.h +++ b/arch/avr32/include/asm/mutex.h diff --git a/include/asm-avr32/numnodes.h b/arch/avr32/include/asm/numnodes.h index 0b864d7..0b864d7 100644 --- a/include/asm-avr32/numnodes.h +++ b/arch/avr32/include/asm/numnodes.h diff --git a/include/asm-avr32/ocd.h b/arch/avr32/include/asm/ocd.h index 6bef094..6bef094 100644 --- a/include/asm-avr32/ocd.h +++ b/arch/avr32/include/asm/ocd.h diff --git a/include/asm-avr32/page.h b/arch/avr32/include/asm/page.h index f805d1c..f805d1c 100644 --- a/include/asm-avr32/page.h +++ b/arch/avr32/include/asm/page.h diff --git a/include/asm-avr32/param.h b/arch/avr32/include/asm/param.h index 34bc8d4..34bc8d4 100644 --- a/include/asm-avr32/param.h +++ b/arch/avr32/include/asm/param.h diff --git a/include/asm-avr32/pci.h b/arch/avr32/include/asm/pci.h index a32a023..a32a023 100644 --- a/include/asm-avr32/pci.h +++ b/arch/avr32/include/asm/pci.h diff --git a/include/asm-avr32/percpu.h b/arch/avr32/include/asm/percpu.h index 69227b4..69227b4 100644 --- a/include/asm-avr32/percpu.h +++ b/arch/avr32/include/asm/percpu.h diff --git a/include/asm-avr32/pgalloc.h b/arch/avr32/include/asm/pgalloc.h index 6408213..6408213 100644 --- a/include/asm-avr32/pgalloc.h +++ b/arch/avr32/include/asm/pgalloc.h diff --git a/include/asm-avr32/pgtable-2level.h b/arch/avr32/include/asm/pgtable-2level.h index 425dd56..425dd56 100644 --- a/include/asm-avr32/pgtable-2level.h +++ b/arch/avr32/include/asm/pgtable-2level.h diff --git a/include/asm-avr32/pgtable.h b/arch/avr32/include/asm/pgtable.h index fecdda1..fecdda1 100644 --- a/include/asm-avr32/pgtable.h +++ b/arch/avr32/include/asm/pgtable.h diff --git a/include/asm-avr32/poll.h b/arch/avr32/include/asm/poll.h index c98509d..c98509d 100644 --- a/include/asm-avr32/poll.h +++ b/arch/avr32/include/asm/poll.h diff --git a/include/asm-avr32/posix_types.h b/arch/avr32/include/asm/posix_types.h index fe0c0c0..fe0c0c0 100644 --- a/include/asm-avr32/posix_types.h +++ b/arch/avr32/include/asm/posix_types.h diff --git a/include/asm-avr32/processor.h b/arch/avr32/include/asm/processor.h index 49a88f5..49a88f5 100644 --- a/include/asm-avr32/processor.h +++ b/arch/avr32/include/asm/processor.h diff --git a/include/asm-avr32/ptrace.h b/arch/avr32/include/asm/ptrace.h index 9e2d44f..9e2d44f 100644 --- a/include/asm-avr32/ptrace.h +++ b/arch/avr32/include/asm/ptrace.h diff --git a/include/asm-avr32/resource.h b/arch/avr32/include/asm/resource.h index c6dd101..c6dd101 100644 --- a/include/asm-avr32/resource.h +++ b/arch/avr32/include/asm/resource.h diff --git a/include/asm-avr32/scatterlist.h b/arch/avr32/include/asm/scatterlist.h index 377320e..377320e 100644 --- a/include/asm-avr32/scatterlist.h +++ b/arch/avr32/include/asm/scatterlist.h diff --git a/include/asm-avr32/sections.h b/arch/avr32/include/asm/sections.h index aa14252..aa14252 100644 --- a/include/asm-avr32/sections.h +++ b/arch/avr32/include/asm/sections.h diff --git a/include/asm-avr32/sembuf.h b/arch/avr32/include/asm/sembuf.h index e472216..e472216 100644 --- a/include/asm-avr32/sembuf.h +++ b/arch/avr32/include/asm/sembuf.h diff --git a/include/asm-avr32/serial.h b/arch/avr32/include/asm/serial.h index 5ecaebc..5ecaebc 100644 --- a/include/asm-avr32/serial.h +++ b/arch/avr32/include/asm/serial.h diff --git a/include/asm-avr32/setup.h b/arch/avr32/include/asm/setup.h index ff5b7cf..ff5b7cf 100644 --- a/include/asm-avr32/setup.h +++ b/arch/avr32/include/asm/setup.h diff --git a/include/asm-avr32/shmbuf.h b/arch/avr32/include/asm/shmbuf.h index c62fba4..c62fba4 100644 --- a/include/asm-avr32/shmbuf.h +++ b/arch/avr32/include/asm/shmbuf.h diff --git a/include/asm-avr32/shmparam.h b/arch/avr32/include/asm/shmparam.h index 3681266..3681266 100644 --- a/include/asm-avr32/shmparam.h +++ b/arch/avr32/include/asm/shmparam.h diff --git a/include/asm-avr32/sigcontext.h b/arch/avr32/include/asm/sigcontext.h index e04062b..e04062b 100644 --- a/include/asm-avr32/sigcontext.h +++ b/arch/avr32/include/asm/sigcontext.h diff --git a/include/asm-avr32/siginfo.h b/arch/avr32/include/asm/siginfo.h index 5ee93f4..5ee93f4 100644 --- a/include/asm-avr32/siginfo.h +++ b/arch/avr32/include/asm/siginfo.h diff --git a/include/asm-avr32/signal.h b/arch/avr32/include/asm/signal.h index caffefe..caffefe 100644 --- a/include/asm-avr32/signal.h +++ b/arch/avr32/include/asm/signal.h diff --git a/include/asm-avr32/socket.h b/arch/avr32/include/asm/socket.h index 35863f2..35863f2 100644 --- a/include/asm-avr32/socket.h +++ b/arch/avr32/include/asm/socket.h diff --git a/include/asm-avr32/sockios.h b/arch/avr32/include/asm/sockios.h index 0802d74..0802d74 100644 --- a/include/asm-avr32/sockios.h +++ b/arch/avr32/include/asm/sockios.h diff --git a/include/asm-avr32/stat.h b/arch/avr32/include/asm/stat.h index e72881e..e72881e 100644 --- a/include/asm-avr32/stat.h +++ b/arch/avr32/include/asm/stat.h diff --git a/include/asm-avr32/statfs.h b/arch/avr32/include/asm/statfs.h index 2961bd1..2961bd1 100644 --- a/include/asm-avr32/statfs.h +++ b/arch/avr32/include/asm/statfs.h diff --git a/include/asm-avr32/string.h b/arch/avr32/include/asm/string.h index c91a623..c91a623 100644 --- a/include/asm-avr32/string.h +++ b/arch/avr32/include/asm/string.h diff --git a/include/asm-avr32/sysreg.h b/arch/avr32/include/asm/sysreg.h index d4e0950..d4e0950 100644 --- a/include/asm-avr32/sysreg.h +++ b/arch/avr32/include/asm/sysreg.h diff --git a/include/asm-avr32/system.h b/arch/avr32/include/asm/system.h index 9702c221..9702c221 100644 --- a/include/asm-avr32/system.h +++ b/arch/avr32/include/asm/system.h diff --git a/include/asm-avr32/termbits.h b/arch/avr32/include/asm/termbits.h index db2daab..db2daab 100644 --- a/include/asm-avr32/termbits.h +++ b/arch/avr32/include/asm/termbits.h diff --git a/include/asm-avr32/termios.h b/arch/avr32/include/asm/termios.h index 0152aba..0152aba 100644 --- a/include/asm-avr32/termios.h +++ b/arch/avr32/include/asm/termios.h diff --git a/include/asm-avr32/thread_info.h b/arch/avr32/include/asm/thread_info.h index 294b25f..294b25f 100644 --- a/include/asm-avr32/thread_info.h +++ b/arch/avr32/include/asm/thread_info.h diff --git a/include/asm-avr32/timex.h b/arch/avr32/include/asm/timex.h index 187dcf3..187dcf3 100644 --- a/include/asm-avr32/timex.h +++ b/arch/avr32/include/asm/timex.h diff --git a/include/asm-avr32/tlb.h b/arch/avr32/include/asm/tlb.h index 5c55f9c..5c55f9c 100644 --- a/include/asm-avr32/tlb.h +++ b/arch/avr32/include/asm/tlb.h diff --git a/include/asm-avr32/tlbflush.h b/arch/avr32/include/asm/tlbflush.h index bf90a78..bf90a78 100644 --- a/include/asm-avr32/tlbflush.h +++ b/arch/avr32/include/asm/tlbflush.h diff --git a/include/asm-avr32/topology.h b/arch/avr32/include/asm/topology.h index 5b766cb..5b766cb 100644 --- a/include/asm-avr32/topology.h +++ b/arch/avr32/include/asm/topology.h diff --git a/include/asm-avr32/traps.h b/arch/avr32/include/asm/traps.h index 6a8fb94..6a8fb94 100644 --- a/include/asm-avr32/traps.h +++ b/arch/avr32/include/asm/traps.h diff --git a/include/asm-avr32/types.h b/arch/avr32/include/asm/types.h index 9cefda6..9cefda6 100644 --- a/include/asm-avr32/types.h +++ b/arch/avr32/include/asm/types.h diff --git a/include/asm-avr32/uaccess.h b/arch/avr32/include/asm/uaccess.h index ed09239..ed09239 100644 --- a/include/asm-avr32/uaccess.h +++ b/arch/avr32/include/asm/uaccess.h diff --git a/include/asm-avr32/ucontext.h b/arch/avr32/include/asm/ucontext.h index ac7259c..ac7259c 100644 --- a/include/asm-avr32/ucontext.h +++ b/arch/avr32/include/asm/ucontext.h diff --git a/include/asm-avr32/unaligned.h b/arch/avr32/include/asm/unaligned.h index 0418772..0418772 100644 --- a/include/asm-avr32/unaligned.h +++ b/arch/avr32/include/asm/unaligned.h diff --git a/include/asm-avr32/unistd.h b/arch/avr32/include/asm/unistd.h index 89861a2..89861a2 100644 --- a/include/asm-avr32/unistd.h +++ b/arch/avr32/include/asm/unistd.h diff --git a/include/asm-avr32/user.h b/arch/avr32/include/asm/user.h index 7e9152f..7e9152f 100644 --- a/include/asm-avr32/user.h +++ b/arch/avr32/include/asm/user.h diff --git a/include/asm-avr32/xor.h b/arch/avr32/include/asm/xor.h index 99c87aa..99c87aa 100644 --- a/include/asm-avr32/xor.h +++ b/arch/avr32/include/asm/xor.h diff --git a/arch/avr32/kernel/process.c b/arch/avr32/kernel/process.c index ff820a9..2c08ac9 100644 --- a/arch/avr32/kernel/process.c +++ b/arch/avr32/kernel/process.c @@ -18,7 +18,7 @@ #include <asm/sysreg.h> #include <asm/ocd.h> -#include <asm/arch/pm.h> +#include <mach/pm.h> void (*pm_power_off)(void) = NULL; EXPORT_SYMBOL(pm_power_off); diff --git a/arch/avr32/kernel/setup.c b/arch/avr32/kernel/setup.c index ce48c14..d8e623c 100644 --- a/arch/avr32/kernel/setup.c +++ b/arch/avr32/kernel/setup.c @@ -26,8 +26,8 @@ #include <asm/setup.h> #include <asm/sysreg.h> -#include <asm/arch/board.h> -#include <asm/arch/init.h> +#include <mach/board.h> +#include <mach/init.h> extern int root_mountflags; diff --git a/arch/avr32/kernel/time.c b/arch/avr32/kernel/time.c index 7e7f327..283481d 100644 --- a/arch/avr32/kernel/time.c +++ b/arch/avr32/kernel/time.c @@ -15,7 +15,7 @@ #include <asm/sysreg.h> -#include <asm/arch/pm.h> +#include <mach/pm.h> static cycle_t read_cycle_count(void) diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c index 1617048..92bfb4d 100644 --- a/arch/avr32/mach-at32ap/at32ap700x.c +++ b/arch/avr32/mach-at32ap/at32ap700x.c @@ -20,10 +20,10 @@ #include <asm/io.h> #include <asm/irq.h> -#include <asm/arch/at32ap700x.h> -#include <asm/arch/board.h> -#include <asm/arch/portmux.h> -#include <asm/arch/sram.h> +#include <mach/at32ap700x.h> +#include <mach/board.h> +#include <mach/portmux.h> +#include <mach/sram.h> #include <video/atmel_lcdc.h> diff --git a/arch/avr32/mach-at32ap/hsmc.c b/arch/avr32/mach-at32ap/hsmc.c index b2d9bc6..2875c11 100644 --- a/arch/avr32/mach-at32ap/hsmc.c +++ b/arch/avr32/mach-at32ap/hsmc.c @@ -14,7 +14,7 @@ #include <linux/platform_device.h> #include <asm/io.h> -#include <asm/arch/smc.h> +#include <mach/smc.h> #include "hsmc.h" diff --git a/arch/avr32/mach-at32ap/include/mach/at32ap700x.h b/arch/avr32/mach-at32ap/include/mach/at32ap700x.h new file mode 100644 index 0000000..d18a305 --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/at32ap700x.h @@ -0,0 +1,49 @@ +/* + * Pin definitions for AT32AP7000. + * + * Copyright (C) 2006 Atmel Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +#ifndef __ASM_ARCH_AT32AP700X_H__ +#define __ASM_ARCH_AT32AP700X_H__ + +#define GPIO_PERIPH_A 0 +#define GPIO_PERIPH_B 1 + +/* + * Pin numbers identifying specific GPIO pins on the chip. They can + * also be converted to IRQ numbers by passing them through + * gpio_to_irq(). + */ +#define GPIO_PIOA_BASE (0) +#define GPIO_PIOB_BASE (GPIO_PIOA_BASE + 32) +#define GPIO_PIOC_BASE (GPIO_PIOB_BASE + 32) +#define GPIO_PIOD_BASE (GPIO_PIOC_BASE + 32) +#define GPIO_PIOE_BASE (GPIO_PIOD_BASE + 32) + +#define GPIO_PIN_PA(N) (GPIO_PIOA_BASE + (N)) +#define GPIO_PIN_PB(N) (GPIO_PIOB_BASE + (N)) +#define GPIO_PIN_PC(N) (GPIO_PIOC_BASE + (N)) +#define GPIO_PIN_PD(N) (GPIO_PIOD_BASE + (N)) +#define GPIO_PIN_PE(N) (GPIO_PIOE_BASE + (N)) + + +/* + * DMAC peripheral hardware handshaking interfaces, used with dw_dmac + */ +#define DMAC_MCI_RX 0 +#define DMAC_MCI_TX 1 +#define DMAC_DAC_TX 2 +#define DMAC_AC97_A_RX 3 +#define DMAC_AC97_A_TX 4 +#define DMAC_AC97_B_RX 5 +#define DMAC_AC97_B_TX 6 +#define DMAC_DMAREQ_0 7 +#define DMAC_DMAREQ_1 8 +#define DMAC_DMAREQ_2 9 +#define DMAC_DMAREQ_3 10 + +#endif /* __ASM_ARCH_AT32AP700X_H__ */ diff --git a/arch/avr32/mach-at32ap/include/mach/board.h b/arch/avr32/mach-at32ap/include/mach/board.h new file mode 100644 index 0000000..e60e907 --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/board.h @@ -0,0 +1,121 @@ +/* + * Platform data definitions. + */ +#ifndef __ASM_ARCH_BOARD_H +#define __ASM_ARCH_BOARD_H + +#include <linux/types.h> + +#define GPIO_PIN_NONE (-1) + +/* + * Clock rates for various on-board oscillators. The number of entries + * in this array is chip-dependent. + */ +extern unsigned long at32_board_osc_rates[]; + +/* Add basic devices: system manager, interrupt controller, portmuxes, etc. */ +void at32_add_system_devices(void); + +#define ATMEL_MAX_UART 4 +extern struct platform_device *atmel_default_console_device; + +struct atmel_uart_data { + short use_dma_tx; /* use transmit DMA? */ + short use_dma_rx; /* use receive DMA? */ + void __iomem *regs; /* virtual base address, if any */ +}; +void at32_map_usart(unsigned int hw_id, unsigned int line); +struct platform_device *at32_add_device_usart(unsigned int id); + +struct eth_platform_data { + u32 phy_mask; + u8 is_rmii; +}; +struct platform_device * +at32_add_device_eth(unsigned int id, struct eth_platform_data *data); + +struct spi_board_info; +struct platform_device * +at32_add_device_spi(unsigned int id, struct spi_board_info *b, unsigned int n); + +struct atmel_lcdfb_info; +struct platform_device * +at32_add_device_lcdc(unsigned int id, struct atmel_lcdfb_info *data, + unsigned long fbmem_start, unsigned long fbmem_len, + unsigned int pin_config); + +struct usba_platform_data; +struct platform_device * +at32_add_device_usba(unsigned int id, struct usba_platform_data *data); + +struct ide_platform_data { + u8 cs; +}; +struct platform_device * +at32_add_device_ide(unsigned int id, unsigned int extint, + struct ide_platform_data *data); + +/* mask says which PWM channels to mux */ +struct platform_device *at32_add_device_pwm(u32 mask); + +/* depending on what's hooked up, not all SSC pins will be used */ +#define ATMEL_SSC_TK 0x01 +#define ATMEL_SSC_TF 0x02 +#define ATMEL_SSC_TD 0x04 +#define ATMEL_SSC_TX (ATMEL_SSC_TK | ATMEL_SSC_TF | ATMEL_SSC_TD) + +#define ATMEL_SSC_RK 0x10 +#define ATMEL_SSC_RF 0x20 +#define ATMEL_SSC_RD 0x40 +#define ATMEL_SSC_RX (ATMEL_SSC_RK | ATMEL_SSC_RF | ATMEL_SSC_RD) + +struct platform_device * +at32_add_device_ssc(unsigned int id, unsigned int flags); + +struct i2c_board_info; +struct platform_device *at32_add_device_twi(unsigned int id, + struct i2c_board_info *b, + unsigned int n); + +struct mci_platform_data; +struct platform_device * +at32_add_device_mci(unsigned int id, struct mci_platform_data *data); + +struct ac97c_platform_data { + unsigned short dma_rx_periph_id; + unsigned short dma_tx_periph_id; + unsigned short dma_controller_id; + int reset_pin; +}; +struct platform_device * +at32_add_device_ac97c(unsigned int id, struct ac97c_platform_data *data); + +struct platform_device *at32_add_device_abdac(unsigned int id); +struct platform_device *at32_add_device_psif(unsigned int id); + +struct cf_platform_data { + int detect_pin; + int reset_pin; + int vcc_pin; + int ready_pin; + u8 cs; +}; +struct platform_device * +at32_add_device_cf(unsigned int id, unsigned int extint, + struct cf_platform_data *data); + +/* NAND / SmartMedia */ +struct atmel_nand_data { + int enable_pin; /* chip enable */ + int det_pin; /* card detect */ + int rdy_pin; /* ready/busy */ + u8 ale; /* address line number connected to ALE */ + u8 cle; /* address line number connected to CLE */ + u8 bus_width_16; /* buswidth is 16 bit */ + struct mtd_partition *(*partition_info)(int size, int *num_partitions); +}; +struct platform_device * +at32_add_device_nand(unsigned int id, struct atmel_nand_data *data); + +#endif /* __ASM_ARCH_BOARD_H */ diff --git a/arch/avr32/mach-at32ap/include/mach/cpu.h b/arch/avr32/mach-at32ap/include/mach/cpu.h new file mode 100644 index 0000000..44d0bfa --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/cpu.h @@ -0,0 +1,35 @@ +/* + * AVR32 and (fake) AT91 CPU identification + * + * Copyright (C) 2007 Atmel Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +#ifndef __ASM_ARCH_CPU_H +#define __ASM_ARCH_CPU_H + +/* + * Only AT32AP7000 is defined for now. We can identify the specific + * chip at runtime, but I'm not sure if it's really worth it. + */ +#ifdef CONFIG_CPU_AT32AP700X +# define cpu_is_at32ap7000() (1) +#else +# define cpu_is_at32ap7000() (0) +#endif + +/* + * Since this is AVR32, we will never run on any AT91 CPU. But these + * definitions may reduce clutter in common drivers. + */ +#define cpu_is_at91rm9200() (0) +#define cpu_is_at91sam9xe() (0) +#define cpu_is_at91sam9260() (0) +#define cpu_is_at91sam9261() (0) +#define cpu_is_at91sam9263() (0) +#define cpu_is_at91sam9rl() (0) +#define cpu_is_at91cap9() (0) + +#endif /* __ASM_ARCH_CPU_H */ diff --git a/arch/avr32/mach-at32ap/include/mach/gpio.h b/arch/avr32/mach-at32ap/include/mach/gpio.h new file mode 100644 index 0000000..0180f58 --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/gpio.h @@ -0,0 +1,45 @@ +#ifndef __ASM_AVR32_ARCH_GPIO_H +#define __ASM_AVR32_ARCH_GPIO_H + +#include <linux/compiler.h> +#include <asm/irq.h> + + +/* Some GPIO chips can manage IRQs; some can't. The exact numbers can + * be changed if needed, but for the moment they're not configurable. + */ +#define ARCH_NR_GPIOS (NR_GPIO_IRQS + 2 * 32) + + +/* Arch-neutral GPIO API, supporting both "native" and external GPIOs. */ +#include <asm-generic/gpio.h> + +static inline int gpio_get_value(unsigned int gpio) +{ + return __gpio_get_value(gpio); +} + +static inline void gpio_set_value(unsigned int gpio, int value) +{ + __gpio_set_value(gpio, value); +} + +static inline int gpio_cansleep(unsigned int gpio) +{ + return __gpio_cansleep(gpio); +} + + +static inline int gpio_to_irq(unsigned int gpio) +{ + if (gpio < NR_GPIO_IRQS) + return gpio + GPIO_IRQ_BASE; + return -EINVAL; +} + +static inline int irq_to_gpio(unsigned int irq) +{ + return irq - GPIO_IRQ_BASE; +} + +#endif /* __ASM_AVR32_ARCH_GPIO_H */ diff --git a/arch/avr32/mach-at32ap/include/mach/init.h b/arch/avr32/mach-at32ap/include/mach/init.h new file mode 100644 index 0000000..bc40e3d --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/init.h @@ -0,0 +1,18 @@ +/* + * AT32AP platform initialization calls. + * + * Copyright (C) 2006 Atmel Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +#ifndef __ASM_AVR32_AT32AP_INIT_H__ +#define __ASM_AVR32_AT32AP_INIT_H__ + +void setup_platform(void); +void setup_board(void); + +void at32_setup_serial_console(unsigned int usart_id); + +#endif /* __ASM_AVR32_AT32AP_INIT_H__ */ diff --git a/arch/avr32/mach-at32ap/include/mach/io.h b/arch/avr32/mach-at32ap/include/mach/io.h new file mode 100644 index 0000000..4ec6abc --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/io.h @@ -0,0 +1,39 @@ +#ifndef __ASM_AVR32_ARCH_AT32AP_IO_H +#define __ASM_AVR32_ARCH_AT32AP_IO_H + +/* For "bizarre" halfword swapping */ +#include <linux/byteorder/swabb.h> + +#if defined(CONFIG_AP700X_32_BIT_SMC) +# define __swizzle_addr_b(addr) (addr ^ 3UL) +# define __swizzle_addr_w(addr) (addr ^ 2UL) +# define __swizzle_addr_l(addr) (addr) +# define ioswabb(a, x) (x) +# define ioswabw(a, x) (x) +# define ioswabl(a, x) (x) +# define __mem_ioswabb(a, x) (x) +# define __mem_ioswabw(a, x) swab16(x) +# define __mem_ioswabl(a, x) swab32(x) +#elif defined(CONFIG_AP700X_16_BIT_SMC) +# define __swizzle_addr_b(addr) (addr ^ 1UL) +# define __swizzle_addr_w(addr) (addr) +# define __swizzle_addr_l(addr) (addr) +# define ioswabb(a, x) (x) +# define ioswabw(a, x) (x) +# define ioswabl(a, x) swahw32(x) +# define __mem_ioswabb(a, x) (x) +# define __mem_ioswabw(a, x) swab16(x) +# define __mem_ioswabl(a, x) swahb32(x) +#else +# define __swizzle_addr_b(addr) (addr) +# define __swizzle_addr_w(addr) (addr) +# define __swizzle_addr_l(addr) (addr) +# define ioswabb(a, x) (x) +# define ioswabw(a, x) swab16(x) +# define ioswabl(a, x) swab32(x) +# define __mem_ioswabb(a, x) (x) +# define __mem_ioswabw(a, x) (x) +# define __mem_ioswabl(a, x) (x) +#endif + +#endif /* __ASM_AVR32_ARCH_AT32AP_IO_H */ diff --git a/arch/avr32/mach-at32ap/include/mach/irq.h b/arch/avr32/mach-at32ap/include/mach/irq.h new file mode 100644 index 0000000..608e350 --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/irq.h @@ -0,0 +1,14 @@ +#ifndef __ASM_AVR32_ARCH_IRQ_H +#define __ASM_AVR32_ARCH_IRQ_H + +#define EIM_IRQ_BASE NR_INTERNAL_IRQS +#define NR_EIM_IRQS 32 +#define AT32_EXTINT(n) (EIM_IRQ_BASE + (n)) + +#define GPIO_IRQ_BASE (EIM_IRQ_BASE + NR_EIM_IRQS) +#define NR_GPIO_CTLR (5 /*internal*/ + 1 /*external*/) +#define NR_GPIO_IRQS (NR_GPIO_CTLR * 32) + +#define NR_IRQS (GPIO_IRQ_BASE + NR_GPIO_IRQS) + +#endif /* __ASM_AVR32_ARCH_IRQ_H */ diff --git a/arch/avr32/mach-at32ap/include/mach/pm.h b/arch/avr32/mach-at32ap/include/mach/pm.h new file mode 100644 index 0000000..979b355 --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/pm.h @@ -0,0 +1,51 @@ +/* + * AVR32 AP Power Management. + * + * Copyright (C) 2008 Atmel Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +#ifndef __ASM_AVR32_ARCH_PM_H +#define __ASM_AVR32_ARCH_PM_H + +/* Possible arguments to the "sleep" instruction */ +#define CPU_SLEEP_IDLE 0 +#define CPU_SLEEP_FROZEN 1 +#define CPU_SLEEP_STANDBY 2 +#define CPU_SLEEP_STOP 3 +#define CPU_SLEEP_STATIC 5 + +#ifndef __ASSEMBLY__ +extern void cpu_enter_idle(void); +extern void cpu_enter_standby(unsigned long sdramc_base); + +extern bool disable_idle_sleep; + +static inline void cpu_disable_idle_sleep(void) +{ + disable_idle_sleep = true; +} + +static inline void cpu_enable_idle_sleep(void) +{ + disable_idle_sleep = false; +} + +static inline void cpu_idle_sleep(void) +{ + /* + * If we're using the COUNT and COMPARE registers for + * timekeeping, we can't use the IDLE state. + */ + if (disable_idle_sleep) + cpu_relax(); + else + cpu_enter_idle(); +} + +void intc_set_suspend_handler(unsigned long offset); +#endif + +#endif /* __ASM_AVR32_ARCH_PM_H */ diff --git a/arch/avr32/mach-at32ap/include/mach/portmux.h b/arch/avr32/mach-at32ap/include/mach/portmux.h new file mode 100644 index 0000000..b1abe6b --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/portmux.h @@ -0,0 +1,29 @@ +/* + * AT32 portmux interface. + * + * Copyright (C) 2006 Atmel Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +#ifndef __ASM_ARCH_PORTMUX_H__ +#define __ASM_ARCH_PORTMUX_H__ + +/* + * Set up pin multiplexing, called from board init only. + * + * The following flags determine the initial state of the pin. + */ +#define AT32_GPIOF_PULLUP 0x00000001 /* (not-OUT) Enable pull-up */ +#define AT32_GPIOF_OUTPUT 0x00000002 /* (OUT) Enable output driver */ +#define AT32_GPIOF_HIGH 0x00000004 /* (OUT) Set output high */ +#define AT32_GPIOF_DEGLITCH 0x00000008 /* (IN) Filter glitches */ +#define AT32_GPIOF_MULTIDRV 0x00000010 /* Enable multidriver option */ + +void at32_select_periph(unsigned int pin, unsigned int periph, + unsigned long flags); +void at32_select_gpio(unsigned int pin, unsigned long flags); +void at32_reserve_pin(unsigned int pin); + +#endif /* __ASM_ARCH_PORTMUX_H__ */ diff --git a/arch/avr32/mach-at32ap/include/mach/smc.h b/arch/avr32/mach-at32ap/include/mach/smc.h new file mode 100644 index 0000000..c98eea4 --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/smc.h @@ -0,0 +1,113 @@ +/* + * Static Memory Controller for AT32 chips + * + * Copyright (C) 2006 Atmel Corporation + * + * Inspired by the OMAP2 General-Purpose Memory Controller interface + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +#ifndef __ARCH_AT32AP_SMC_H +#define __ARCH_AT32AP_SMC_H + +/* + * All timing parameters are in nanoseconds. + */ +struct smc_timing { + /* Delay from address valid to assertion of given strobe */ + int ncs_read_setup; + int nrd_setup; + int ncs_write_setup; + int nwe_setup; + + /* Pulse length of given strobe */ + int ncs_read_pulse; + int nrd_pulse; + int ncs_write_pulse; + int nwe_pulse; + + /* Total cycle length of given operation */ + int read_cycle; + int write_cycle; + + /* Minimal recovery times, will extend cycle if needed */ + int ncs_read_recover; + int nrd_recover; + int ncs_write_recover; + int nwe_recover; +}; + +/* + * All timing parameters are in clock cycles. + */ +struct smc_config { + + /* Delay from address valid to assertion of given strobe */ + u8 ncs_read_setup; + u8 nrd_setup; + u8 ncs_write_setup; + u8 nwe_setup; + + /* Pulse length of given strobe */ + u8 ncs_read_pulse; + u8 nrd_pulse; + u8 ncs_write_pulse; + u8 nwe_pulse; + + /* Total cycle length of given operation */ + u8 read_cycle; + u8 write_cycle; + + /* Bus width in bytes */ + u8 bus_width; + + /* + * 0: Data is sampled on rising edge of NCS + * 1: Data is sampled on rising edge of NRD + */ + unsigned int nrd_controlled:1; + + /* + * 0: Data is driven on falling edge of NCS + * 1: Data is driven on falling edge of NWR + */ + unsigned int nwe_controlled:1; + + /* + * 0: NWAIT is disabled + * 1: Reserved + * 2: NWAIT is frozen mode + * 3: NWAIT in ready mode + */ + unsigned int nwait_mode:2; + + /* + * 0: Byte select access type + * 1: Byte write access type + */ + unsigned int byte_write:1; + + /* + * Number of clock cycles before data is released after + * the rising edge of the read controlling signal + * + * Total cycles from SMC is tdf_cycles + 1 + */ + unsigned int tdf_cycles:4; + + /* + * 0: TDF optimization disabled + * 1: TDF optimization enabled + */ + unsigned int tdf_mode:1; +}; + +extern void smc_set_timing(struct smc_config *config, + const struct smc_timing *timing); + +extern int smc_set_configuration(int cs, const struct smc_config *config); +extern struct smc_config *smc_get_configuration(int cs); + +#endif /* __ARCH_AT32AP_SMC_H */ diff --git a/arch/avr32/mach-at32ap/include/mach/sram.h b/arch/avr32/mach-at32ap/include/mach/sram.h new file mode 100644 index 0000000..4838dae --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/sram.h @@ -0,0 +1,30 @@ +/* + * Simple SRAM allocator + * + * Copyright (C) 2008 Atmel Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +#ifndef __ASM_AVR32_ARCH_SRAM_H +#define __ASM_AVR32_ARCH_SRAM_H + +#include <linux/genalloc.h> + +extern struct gen_pool *sram_pool; + +static inline unsigned long sram_alloc(size_t len) +{ + if (!sram_pool) + return 0UL; + + return gen_pool_alloc(sram_pool, len); +} + +static inline void sram_free(unsigned long addr, size_t len) +{ + return gen_pool_free(sram_pool, addr, len); +} + +#endif /* __ASM_AVR32_ARCH_SRAM_H */ diff --git a/arch/avr32/mach-at32ap/pio.c b/arch/avr32/mach-at32ap/pio.c index 296294f..405ee6b 100644 --- a/arch/avr32/mach-at32ap/pio.c +++ b/arch/avr32/mach-at32ap/pio.c @@ -17,7 +17,7 @@ #include <asm/gpio.h> #include <asm/io.h> -#include <asm/arch/portmux.h> +#include <mach/portmux.h> #include "pio.h" diff --git a/arch/avr32/mach-at32ap/pm-at32ap700x.S b/arch/avr32/mach-at32ap/pm-at32ap700x.S index 0a53ad3..5be4de6 100644 --- a/arch/avr32/mach-at32ap/pm-at32ap700x.S +++ b/arch/avr32/mach-at32ap/pm-at32ap700x.S @@ -10,7 +10,7 @@ #include <asm/asm.h> #include <asm/asm-offsets.h> #include <asm/thread_info.h> -#include <asm/arch/pm.h> +#include <mach/pm.h> #include "pm.h" #include "sdramc.h" diff --git a/arch/avr32/mach-at32ap/pm.c b/arch/avr32/mach-at32ap/pm.c index 0b76432..a0cbef5 100644 --- a/arch/avr32/mach-at32ap/pm.c +++ b/arch/avr32/mach-at32ap/pm.c @@ -14,8 +14,8 @@ #include <asm/cacheflush.h> #include <asm/sysreg.h> -#include <asm/arch/pm.h> -#include <asm/arch/sram.h> +#include <mach/pm.h> +#include <mach/sram.h> /* FIXME: This is only valid for AP7000 */ #define SDRAMC_BASE 0xfff03800 diff --git a/drivers/ata/pata_at32.c b/drivers/ata/pata_at32.c index 82fb6e2..ab61095 100644 --- a/drivers/ata/pata_at32.c +++ b/drivers/ata/pata_at32.c @@ -24,8 +24,8 @@ #include <linux/err.h> #include <linux/io.h> -#include <asm/arch/board.h> -#include <asm/arch/smc.h> +#include <mach/board.h> +#include <mach/smc.h> #define DRV_NAME "pata_at32" #define DRV_VERSION "0.0.3" diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index 992b4be..0bd06f5 100644 --- a/drivers/mmc/host/atmel-mci.c +++ b/drivers/mmc/host/atmel-mci.c @@ -28,7 +28,7 @@ #include <asm/io.h> #include <asm/unaligned.h> -#include <asm/arch/board.h> +#include <mach/board.h> #include "atmel-mci-regs.h" |