diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-08-07 04:55:16 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-08-07 04:55:16 -0400 |
commit | a1b81a84fff05dbfef45b7012c26e1fee9973e5d (patch) | |
tree | 3d053e76542ad4d20bd83ad35c13eabff97003ab | |
parent | 4fb8af10d0fd09372d52966b76922b9e82bbc950 (diff) | |
parent | 3663b736a5083b3bce74520b637f630f01f66a7f (diff) |
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 17a3529341dd..5b46433d53a5 100644 --- a/arch/avr32/Makefile +++ b/arch/avr32/Makefile | |||
@@ -23,9 +23,14 @@ KBUILD_AFLAGS += $(cpuflags-y) | |||
23 | 23 | ||
24 | CHECKFLAGS += -D__avr32__ -D__BIG_ENDIAN | 24 | CHECKFLAGS += -D__avr32__ -D__BIG_ENDIAN |
25 | 25 | ||
26 | machine-$(CONFIG_PLATFORM_AT32AP) := at32ap | ||
27 | machdirs := $(patsubst %,arch/avr32/mach-%/, $(machine-y)) | ||
28 | |||
29 | KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs)) | ||
30 | |||
26 | head-$(CONFIG_LOADER_U_BOOT) += arch/avr32/boot/u-boot/head.o | 31 | head-$(CONFIG_LOADER_U_BOOT) += arch/avr32/boot/u-boot/head.o |
27 | head-y += arch/avr32/kernel/head.o | 32 | head-y += arch/avr32/kernel/head.o |
28 | core-$(CONFIG_PLATFORM_AT32AP) += arch/avr32/mach-at32ap/ | 33 | core-y += $(machdirs) |
29 | core-$(CONFIG_BOARD_ATSTK1000) += arch/avr32/boards/atstk1000/ | 34 | core-$(CONFIG_BOARD_ATSTK1000) += arch/avr32/boards/atstk1000/ |
30 | core-$(CONFIG_BOARD_ATNGW100) += arch/avr32/boards/atngw100/ | 35 | core-$(CONFIG_BOARD_ATNGW100) += arch/avr32/boards/atngw100/ |
31 | core-$(CONFIG_LOADER_U_BOOT) += arch/avr32/boot/u-boot/ | 36 | 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 b07ae63aa548..55ccc9ce4892 100644 --- a/arch/avr32/boards/atngw100/flash.c +++ b/arch/avr32/boards/atngw100/flash.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/mtd/partitions.h> | 13 | #include <linux/mtd/partitions.h> |
14 | #include <linux/mtd/physmap.h> | 14 | #include <linux/mtd/physmap.h> |
15 | 15 | ||
16 | #include <asm/arch/smc.h> | 16 | #include <mach/smc.h> |
17 | 17 | ||
18 | static struct smc_timing flash_timing __initdata = { | 18 | static struct smc_timing flash_timing __initdata = { |
19 | .ncs_read_setup = 0, | 19 | .ncs_read_setup = 0, |
diff --git a/arch/avr32/boards/atngw100/setup.c b/arch/avr32/boards/atngw100/setup.c index c7fe94d03a1e..670c87b2db12 100644 --- a/arch/avr32/boards/atngw100/setup.c +++ b/arch/avr32/boards/atngw100/setup.c | |||
@@ -23,10 +23,10 @@ | |||
23 | #include <asm/io.h> | 23 | #include <asm/io.h> |
24 | #include <asm/setup.h> | 24 | #include <asm/setup.h> |
25 | 25 | ||
26 | #include <asm/arch/at32ap700x.h> | 26 | #include <mach/at32ap700x.h> |
27 | #include <asm/arch/board.h> | 27 | #include <mach/board.h> |
28 | #include <asm/arch/init.h> | 28 | #include <mach/init.h> |
29 | #include <asm/arch/portmux.h> | 29 | #include <mach/portmux.h> |
30 | 30 | ||
31 | /* Oscillator frequencies. These are board-specific */ | 31 | /* Oscillator frequencies. These are board-specific */ |
32 | unsigned long at32_board_osc_rates[3] = { | 32 | unsigned long at32_board_osc_rates[3] = { |
diff --git a/arch/avr32/boards/atstk1000/atstk1002.c b/arch/avr32/boards/atstk1000/atstk1002.c index 8538ba75ef92..b33542b97563 100644 --- a/arch/avr32/boards/atstk1000/atstk1002.c +++ b/arch/avr32/boards/atstk1000/atstk1002.c | |||
@@ -23,10 +23,10 @@ | |||
23 | #include <asm/setup.h> | 23 | #include <asm/setup.h> |
24 | #include <asm/atmel-mci.h> | 24 | #include <asm/atmel-mci.h> |
25 | 25 | ||
26 | #include <asm/arch/at32ap700x.h> | 26 | #include <mach/at32ap700x.h> |
27 | #include <asm/arch/board.h> | 27 | #include <mach/board.h> |
28 | #include <asm/arch/init.h> | 28 | #include <mach/init.h> |
29 | #include <asm/arch/portmux.h> | 29 | #include <mach/portmux.h> |
30 | 30 | ||
31 | #include "atstk1000.h" | 31 | #include "atstk1000.h" |
32 | 32 | ||
@@ -49,7 +49,7 @@ unsigned long at32_board_osc_rates[3] = { | |||
49 | */ | 49 | */ |
50 | #ifdef CONFIG_BOARD_ATSTK1006 | 50 | #ifdef CONFIG_BOARD_ATSTK1006 |
51 | #include <linux/mtd/partitions.h> | 51 | #include <linux/mtd/partitions.h> |
52 | #include <asm/arch/smc.h> | 52 | #include <mach/smc.h> |
53 | 53 | ||
54 | static struct smc_timing nand_timing __initdata = { | 54 | static struct smc_timing nand_timing __initdata = { |
55 | .ncs_read_setup = 0, | 55 | .ncs_read_setup = 0, |
diff --git a/arch/avr32/boards/atstk1000/atstk1003.c b/arch/avr32/boards/atstk1000/atstk1003.c index 591fc73b554a..0cf664174c17 100644 --- a/arch/avr32/boards/atstk1000/atstk1003.c +++ b/arch/avr32/boards/atstk1000/atstk1003.c | |||
@@ -20,10 +20,10 @@ | |||
20 | 20 | ||
21 | #include <asm/setup.h> | 21 | #include <asm/setup.h> |
22 | 22 | ||
23 | #include <asm/arch/at32ap700x.h> | 23 | #include <mach/at32ap700x.h> |
24 | #include <asm/arch/board.h> | 24 | #include <mach/board.h> |
25 | #include <asm/arch/init.h> | 25 | #include <mach/init.h> |
26 | #include <asm/arch/portmux.h> | 26 | #include <mach/portmux.h> |
27 | 27 | ||
28 | #include "atstk1000.h" | 28 | #include "atstk1000.h" |
29 | 29 | ||
diff --git a/arch/avr32/boards/atstk1000/atstk1004.c b/arch/avr32/boards/atstk1000/atstk1004.c index d9c5e0a21256..50a5273e5916 100644 --- a/arch/avr32/boards/atstk1000/atstk1004.c +++ b/arch/avr32/boards/atstk1000/atstk1004.c | |||
@@ -22,10 +22,10 @@ | |||
22 | 22 | ||
23 | #include <asm/setup.h> | 23 | #include <asm/setup.h> |
24 | 24 | ||
25 | #include <asm/arch/at32ap700x.h> | 25 | #include <mach/at32ap700x.h> |
26 | #include <asm/arch/board.h> | 26 | #include <mach/board.h> |
27 | #include <asm/arch/init.h> | 27 | #include <mach/init.h> |
28 | #include <asm/arch/portmux.h> | 28 | #include <mach/portmux.h> |
29 | 29 | ||
30 | #include "atstk1000.h" | 30 | #include "atstk1000.h" |
31 | 31 | ||
diff --git a/arch/avr32/boards/atstk1000/flash.c b/arch/avr32/boards/atstk1000/flash.c index 3d0a102ad45e..6e4d561977ff 100644 --- a/arch/avr32/boards/atstk1000/flash.c +++ b/arch/avr32/boards/atstk1000/flash.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/mtd/partitions.h> | 13 | #include <linux/mtd/partitions.h> |
14 | #include <linux/mtd/physmap.h> | 14 | #include <linux/mtd/physmap.h> |
15 | 15 | ||
16 | #include <asm/arch/smc.h> | 16 | #include <mach/smc.h> |
17 | 17 | ||
18 | static struct smc_timing flash_timing __initdata = { | 18 | static struct smc_timing flash_timing __initdata = { |
19 | .ncs_read_setup = 0, | 19 | .ncs_read_setup = 0, |
diff --git a/arch/avr32/boards/atstk1000/setup.c b/arch/avr32/boards/atstk1000/setup.c index 8bedf93876a3..2d6b560115d9 100644 --- a/arch/avr32/boards/atstk1000/setup.c +++ b/arch/avr32/boards/atstk1000/setup.c | |||
@@ -18,9 +18,9 @@ | |||
18 | 18 | ||
19 | #include <asm/setup.h> | 19 | #include <asm/setup.h> |
20 | 20 | ||
21 | #include <asm/arch/at32ap700x.h> | 21 | #include <mach/at32ap700x.h> |
22 | #include <asm/arch/board.h> | 22 | #include <mach/board.h> |
23 | #include <asm/arch/portmux.h> | 23 | #include <mach/portmux.h> |
24 | 24 | ||
25 | #include "atstk1000.h" | 25 | #include "atstk1000.h" |
26 | 26 | ||
diff --git a/include/asm-avr32/Kbuild b/arch/avr32/include/asm/Kbuild index 3136628ba8d2..3136628ba8d2 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 e46375a34a72..e46375a34a72 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 366794858ec7..366794858ec7 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 a2c64f404b98..a2c64f404b98 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 c2ea6e1c9aa1..c2ea6e1c9aa1 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 7ef3862a73d0..7ef3862a73d0 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 d5dd435bf8f4..d5dd435bf8f4 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 1a50b69b1a19..1a50b69b1a19 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 331d45bab18f..331d45bab18f 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 7635e770622e..7635e770622e 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 d77b48ba7338..d77b48ba7338 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 d3cf35ab11ab..d3cf35ab11ab 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 4faf1ce60061..4faf1ce60061 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 670674749b20..670674749b20 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 4ddbfd2486af..4ddbfd2486af 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 e87e0f81cbeb..e87e0f81cbeb 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 c7b0549eab8a..c7b0549eab8a 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 a0ed9a9839a5..a0ed9a9839a5 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 d8f9872b0e2d..d8f9872b0e2d 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 d7ddd4fdeca6..d7ddd4fdeca6 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 0399359ab5d8..0399359ab5d8 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 9e91205590ac..9e91205590ac 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 64ce40ee1d58..64ce40ee1d58 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 3e7e014776ba..3e7e014776ba 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 558a7249f06d..558a7249f06d 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 41baf84ad402..41baf84ad402 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 14c0c4402b11..14c0c4402b11 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 10419f14a68a..10419f14a68a 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 19e8ccc77db3..b771f7105964 100644 --- a/include/asm-avr32/gpio.h +++ b/arch/avr32/include/asm/gpio.h | |||
@@ -1,6 +1,6 @@ | |||
1 | #ifndef __ASM_AVR32_GPIO_H | 1 | #ifndef __ASM_AVR32_GPIO_H |
2 | #define __ASM_AVR32_GPIO_H | 2 | #define __ASM_AVR32_GPIO_H |
3 | 3 | ||
4 | #include <asm/arch/gpio.h> | 4 | #include <mach/gpio.h> |
5 | 5 | ||
6 | #endif /* __ASM_AVR32_GPIO_H */ | 6 | #endif /* __ASM_AVR32_GPIO_H */ |
diff --git a/include/asm-avr32/hardirq.h b/arch/avr32/include/asm/hardirq.h index 267354356f60..267354356f60 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 218b0a6bfd1b..218b0a6bfd1b 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 8be7ea9c9047..a520f77ead96 100644 --- a/include/asm-avr32/io.h +++ b/arch/avr32/include/asm/io.h | |||
@@ -8,7 +8,7 @@ | |||
8 | #include <asm/addrspace.h> | 8 | #include <asm/addrspace.h> |
9 | #include <asm/byteorder.h> | 9 | #include <asm/byteorder.h> |
10 | 10 | ||
11 | #include <asm/arch/io.h> | 11 | #include <mach/io.h> |
12 | 12 | ||
13 | /* virt_to_phys will only work when address is in P1 or P2 */ | 13 | /* virt_to_phys will only work when address is in P1 or P2 */ |
14 | static __inline__ unsigned long virt_to_phys(volatile void *address) | 14 | 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 c8472c1398ef..c8472c1398ef 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 0cf2c0a4502b..0cf2c0a4502b 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 1552c9698f5e..1552c9698f5e 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 c563b7720c1a..6fa8913f8548 100644 --- a/include/asm-avr32/irq.h +++ b/arch/avr32/include/asm/irq.h | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | #define NR_INTERNAL_IRQS 64 | 4 | #define NR_INTERNAL_IRQS 64 |
5 | 5 | ||
6 | #include <asm/arch/irq.h> | 6 | #include <mach/irq.h> |
7 | 7 | ||
8 | #ifndef NR_IRQS | 8 | #ifndef NR_IRQS |
9 | #define NR_IRQS (NR_INTERNAL_IRQS) | 9 | #define NR_IRQS (NR_INTERNAL_IRQS) |
diff --git a/include/asm-avr32/irq_regs.h b/arch/avr32/include/asm/irq_regs.h index 3dd9c0b70270..3dd9c0b70270 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 93570daac38a..93570daac38a 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 ca4f9542365a..ca4f9542365a 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 b7f5c6870107..b7f5c6870107 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 996cb656474e..996cb656474e 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 f7b285e910d4..f7b285e910d4 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 1c1619694da3..1c1619694da3 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 55b317a89061..55b317a89061 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 648f91e7187a..648f91e7187a 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 60c2d2650d32..60c2d2650d32 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 27ff23407100..27ff23407100 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 451444538a1b..451444538a1b 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 ac18bc4da7f7..ac18bc4da7f7 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 458c1f7fbc18..458c1f7fbc18 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 0b864d7ce330..0b864d7ce330 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 6bef09490235..6bef09490235 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 f805d1cb11bc..f805d1cb11bc 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 34bc8d4c3b29..34bc8d4c3b29 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 a32a02372017..a32a02372017 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 69227b4cd0d4..69227b4cd0d4 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 640821323943..640821323943 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 425dd567b5b9..425dd567b5b9 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 fecdda16f444..fecdda16f444 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 c98509d3149e..c98509d3149e 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 fe0c0c014389..fe0c0c014389 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 49a88f5a9d2f..49a88f5a9d2f 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 9e2d44f4e0fe..9e2d44f4e0fe 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 c6dd101472b1..c6dd101472b1 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 377320e3bd17..377320e3bd17 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 aa14252e4181..aa14252e4181 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 e472216e0c97..e472216e0c97 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 5ecaebc22b02..5ecaebc22b02 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 ff5b7cf6be4d..ff5b7cf6be4d 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 c62fba41739a..c62fba41739a 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 3681266c77f7..3681266c77f7 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 e04062b5f39f..e04062b5f39f 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 5ee93f40a8a8..5ee93f40a8a8 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 caffefeeba1f..caffefeeba1f 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 35863f260929..35863f260929 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 0802d742f97d..0802d742f97d 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 e72881e10230..e72881e10230 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 2961bd18c50e..2961bd18c50e 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 c91a623cd585..c91a623cd585 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 d4e0950170ca..d4e0950170ca 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 9702c2213e1e..9702c2213e1e 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 db2daab31fdb..db2daab31fdb 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 0152aba35154..0152aba35154 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 294b25f9323d..294b25f9323d 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 187dcf38b210..187dcf38b210 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 5c55f9ce7c7d..5c55f9ce7c7d 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 bf90a786f6be..bf90a786f6be 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 5b766cbb4806..5b766cbb4806 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 6a8fb944f414..6a8fb944f414 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 9cefda6f534a..9cefda6f534a 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 ed092395215e..ed092395215e 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 ac7259c2a799..ac7259c2a799 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 041877290470..041877290470 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 89861a27543e..89861a27543e 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 7e9152f81f5e..7e9152f81f5e 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 99c87aa0af4f..99c87aa0af4f 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 ff820a9e743a..2c08ac992ac3 100644 --- a/arch/avr32/kernel/process.c +++ b/arch/avr32/kernel/process.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <asm/sysreg.h> | 18 | #include <asm/sysreg.h> |
19 | #include <asm/ocd.h> | 19 | #include <asm/ocd.h> |
20 | 20 | ||
21 | #include <asm/arch/pm.h> | 21 | #include <mach/pm.h> |
22 | 22 | ||
23 | void (*pm_power_off)(void) = NULL; | 23 | void (*pm_power_off)(void) = NULL; |
24 | EXPORT_SYMBOL(pm_power_off); | 24 | EXPORT_SYMBOL(pm_power_off); |
diff --git a/arch/avr32/kernel/setup.c b/arch/avr32/kernel/setup.c index ce48c14f4349..d8e623c426c1 100644 --- a/arch/avr32/kernel/setup.c +++ b/arch/avr32/kernel/setup.c | |||
@@ -26,8 +26,8 @@ | |||
26 | #include <asm/setup.h> | 26 | #include <asm/setup.h> |
27 | #include <asm/sysreg.h> | 27 | #include <asm/sysreg.h> |
28 | 28 | ||
29 | #include <asm/arch/board.h> | 29 | #include <mach/board.h> |
30 | #include <asm/arch/init.h> | 30 | #include <mach/init.h> |
31 | 31 | ||
32 | extern int root_mountflags; | 32 | extern int root_mountflags; |
33 | 33 | ||
diff --git a/arch/avr32/kernel/time.c b/arch/avr32/kernel/time.c index 7e7f32771ae1..283481d74a5b 100644 --- a/arch/avr32/kernel/time.c +++ b/arch/avr32/kernel/time.c | |||
@@ -15,7 +15,7 @@ | |||
15 | 15 | ||
16 | #include <asm/sysreg.h> | 16 | #include <asm/sysreg.h> |
17 | 17 | ||
18 | #include <asm/arch/pm.h> | 18 | #include <mach/pm.h> |
19 | 19 | ||
20 | 20 | ||
21 | static cycle_t read_cycle_count(void) | 21 | static cycle_t read_cycle_count(void) |
diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c index 1617048c86c5..92bfb4d8ae45 100644 --- a/arch/avr32/mach-at32ap/at32ap700x.c +++ b/arch/avr32/mach-at32ap/at32ap700x.c | |||
@@ -20,10 +20,10 @@ | |||
20 | #include <asm/io.h> | 20 | #include <asm/io.h> |
21 | #include <asm/irq.h> | 21 | #include <asm/irq.h> |
22 | 22 | ||
23 | #include <asm/arch/at32ap700x.h> | 23 | #include <mach/at32ap700x.h> |
24 | #include <asm/arch/board.h> | 24 | #include <mach/board.h> |
25 | #include <asm/arch/portmux.h> | 25 | #include <mach/portmux.h> |
26 | #include <asm/arch/sram.h> | 26 | #include <mach/sram.h> |
27 | 27 | ||
28 | #include <video/atmel_lcdc.h> | 28 | #include <video/atmel_lcdc.h> |
29 | 29 | ||
diff --git a/arch/avr32/mach-at32ap/hsmc.c b/arch/avr32/mach-at32ap/hsmc.c index b2d9bc61a35c..2875c11be95d 100644 --- a/arch/avr32/mach-at32ap/hsmc.c +++ b/arch/avr32/mach-at32ap/hsmc.c | |||
@@ -14,7 +14,7 @@ | |||
14 | #include <linux/platform_device.h> | 14 | #include <linux/platform_device.h> |
15 | 15 | ||
16 | #include <asm/io.h> | 16 | #include <asm/io.h> |
17 | #include <asm/arch/smc.h> | 17 | #include <mach/smc.h> |
18 | 18 | ||
19 | #include "hsmc.h" | 19 | #include "hsmc.h" |
20 | 20 | ||
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 000000000000..d18a3053be0d --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/at32ap700x.h | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | * Pin definitions for AT32AP7000. | ||
3 | * | ||
4 | * Copyright (C) 2006 Atmel Corporation | ||
5 | * | ||
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_AT32AP700X_H__ | ||
11 | #define __ASM_ARCH_AT32AP700X_H__ | ||
12 | |||
13 | #define GPIO_PERIPH_A 0 | ||
14 | #define GPIO_PERIPH_B 1 | ||
15 | |||
16 | /* | ||
17 | * Pin numbers identifying specific GPIO pins on the chip. They can | ||
18 | * also be converted to IRQ numbers by passing them through | ||
19 | * gpio_to_irq(). | ||
20 | */ | ||
21 | #define GPIO_PIOA_BASE (0) | ||
22 | #define GPIO_PIOB_BASE (GPIO_PIOA_BASE + 32) | ||
23 | #define GPIO_PIOC_BASE (GPIO_PIOB_BASE + 32) | ||
24 | #define GPIO_PIOD_BASE (GPIO_PIOC_BASE + 32) | ||
25 | #define GPIO_PIOE_BASE (GPIO_PIOD_BASE + 32) | ||
26 | |||
27 | #define GPIO_PIN_PA(N) (GPIO_PIOA_BASE + (N)) | ||
28 | #define GPIO_PIN_PB(N) (GPIO_PIOB_BASE + (N)) | ||
29 | #define GPIO_PIN_PC(N) (GPIO_PIOC_BASE + (N)) | ||
30 | #define GPIO_PIN_PD(N) (GPIO_PIOD_BASE + (N)) | ||
31 | #define GPIO_PIN_PE(N) (GPIO_PIOE_BASE + (N)) | ||
32 | |||
33 | |||
34 | /* | ||
35 | * DMAC peripheral hardware handshaking interfaces, used with dw_dmac | ||
36 | */ | ||
37 | #define DMAC_MCI_RX 0 | ||
38 | #define DMAC_MCI_TX 1 | ||
39 | #define DMAC_DAC_TX 2 | ||
40 | #define DMAC_AC97_A_RX 3 | ||
41 | #define DMAC_AC97_A_TX 4 | ||
42 | #define DMAC_AC97_B_RX 5 | ||
43 | #define DMAC_AC97_B_TX 6 | ||
44 | #define DMAC_DMAREQ_0 7 | ||
45 | #define DMAC_DMAREQ_1 8 | ||
46 | #define DMAC_DMAREQ_2 9 | ||
47 | #define DMAC_DMAREQ_3 10 | ||
48 | |||
49 | #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 000000000000..e60e9076544d --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/board.h | |||
@@ -0,0 +1,121 @@ | |||
1 | /* | ||
2 | * Platform data definitions. | ||
3 | */ | ||
4 | #ifndef __ASM_ARCH_BOARD_H | ||
5 | #define __ASM_ARCH_BOARD_H | ||
6 | |||
7 | #include <linux/types.h> | ||
8 | |||
9 | #define GPIO_PIN_NONE (-1) | ||
10 | |||
11 | /* | ||
12 | * Clock rates for various on-board oscillators. The number of entries | ||
13 | * in this array is chip-dependent. | ||
14 | */ | ||
15 | extern unsigned long at32_board_osc_rates[]; | ||
16 | |||
17 | /* Add basic devices: system manager, interrupt controller, portmuxes, etc. */ | ||
18 | void at32_add_system_devices(void); | ||
19 | |||
20 | #define ATMEL_MAX_UART 4 | ||
21 | extern struct platform_device *atmel_default_console_device; | ||
22 | |||
23 | struct atmel_uart_data { | ||
24 | short use_dma_tx; /* use transmit DMA? */ | ||
25 | short use_dma_rx; /* use receive DMA? */ | ||
26 | void __iomem *regs; /* virtual base address, if any */ | ||
27 | }; | ||
28 | void at32_map_usart(unsigned int hw_id, unsigned int line); | ||
29 | struct platform_device *at32_add_device_usart(unsigned int id); | ||
30 | |||
31 | struct eth_platform_data { | ||
32 | u32 phy_mask; | ||
33 | u8 is_rmii; | ||
34 | }; | ||
35 | struct platform_device * | ||
36 | at32_add_device_eth(unsigned int id, struct eth_platform_data *data); | ||
37 | |||
38 | struct spi_board_info; | ||
39 | struct platform_device * | ||
40 | at32_add_device_spi(unsigned int id, struct spi_board_info *b, unsigned int n); | ||
41 | |||
42 | struct atmel_lcdfb_info; | ||
43 | struct platform_device * | ||
44 | at32_add_device_lcdc(unsigned int id, struct atmel_lcdfb_info *data, | ||
45 | unsigned long fbmem_start, unsigned long fbmem_len, | ||
46 | unsigned int pin_config); | ||
47 | |||
48 | struct usba_platform_data; | ||
49 | struct platform_device * | ||
50 | at32_add_device_usba(unsigned int id, struct usba_platform_data *data); | ||
51 | |||
52 | struct ide_platform_data { | ||
53 | u8 cs; | ||
54 | }; | ||
55 | struct platform_device * | ||
56 | at32_add_device_ide(unsigned int id, unsigned int extint, | ||
57 | struct ide_platform_data *data); | ||
58 | |||
59 | /* mask says which PWM channels to mux */ | ||
60 | struct platform_device *at32_add_device_pwm(u32 mask); | ||
61 | |||
62 | /* depending on what's hooked up, not all SSC pins will be used */ | ||
63 | #define ATMEL_SSC_TK 0x01 | ||
64 | #define ATMEL_SSC_TF 0x02 | ||
65 | #define ATMEL_SSC_TD 0x04 | ||
66 | #define ATMEL_SSC_TX (ATMEL_SSC_TK | ATMEL_SSC_TF | ATMEL_SSC_TD) | ||
67 | |||
68 | #define ATMEL_SSC_RK 0x10 | ||
69 | #define ATMEL_SSC_RF 0x20 | ||
70 | #define ATMEL_SSC_RD 0x40 | ||
71 | #define ATMEL_SSC_RX (ATMEL_SSC_RK | ATMEL_SSC_RF | ATMEL_SSC_RD) | ||
72 | |||
73 | struct platform_device * | ||
74 | at32_add_device_ssc(unsigned int id, unsigned int flags); | ||
75 | |||
76 | struct i2c_board_info; | ||
77 | struct platform_device *at32_add_device_twi(unsigned int id, | ||
78 | struct i2c_board_info *b, | ||
79 | unsigned int n); | ||
80 | |||
81 | struct mci_platform_data; | ||
82 | struct platform_device * | ||
83 | at32_add_device_mci(unsigned int id, struct mci_platform_data *data); | ||
84 | |||
85 | struct ac97c_platform_data { | ||
86 | unsigned short dma_rx_periph_id; | ||
87 | unsigned short dma_tx_periph_id; | ||
88 | unsigned short dma_controller_id; | ||
89 | int reset_pin; | ||
90 | }; | ||
91 | struct platform_device * | ||
92 | at32_add_device_ac97c(unsigned int id, struct ac97c_platform_data *data); | ||
93 | |||
94 | struct platform_device *at32_add_device_abdac(unsigned int id); | ||
95 | struct platform_device *at32_add_device_psif(unsigned int id); | ||
96 | |||
97 | struct cf_platform_data { | ||
98 | int detect_pin; | ||
99 | int reset_pin; | ||
100 | int vcc_pin; | ||
101 | int ready_pin; | ||
102 | u8 cs; | ||
103 | }; | ||
104 | struct platform_device * | ||
105 | at32_add_device_cf(unsigned int id, unsigned int extint, | ||
106 | struct cf_platform_data *data); | ||
107 | |||
108 | /* NAND / SmartMedia */ | ||
109 | struct atmel_nand_data { | ||
110 | int enable_pin; /* chip enable */ | ||
111 | int det_pin; /* card detect */ | ||
112 | int rdy_pin; /* ready/busy */ | ||
113 | u8 ale; /* address line number connected to ALE */ | ||
114 | u8 cle; /* address line number connected to CLE */ | ||
115 | u8 bus_width_16; /* buswidth is 16 bit */ | ||
116 | struct mtd_partition *(*partition_info)(int size, int *num_partitions); | ||
117 | }; | ||
118 | struct platform_device * | ||
119 | at32_add_device_nand(unsigned int id, struct atmel_nand_data *data); | ||
120 | |||
121 | #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 000000000000..44d0bfa1f409 --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/cpu.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* | ||
2 | * AVR32 and (fake) AT91 CPU identification | ||
3 | * | ||
4 | * Copyright (C) 2007 Atmel Corporation | ||
5 | * | ||
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 | ||
12 | |||
13 | /* | ||
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. | ||
16 | */ | ||
17 | #ifdef CONFIG_CPU_AT32AP700X | ||
18 | # define cpu_is_at32ap7000() (1) | ||
19 | #else | ||
20 | # define cpu_is_at32ap7000() (0) | ||
21 | #endif | ||
22 | |||
23 | /* | ||
24 | * Since this is AVR32, we will never run on any AT91 CPU. But these | ||
25 | * definitions may reduce clutter in common drivers. | ||
26 | */ | ||
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) | ||
32 | #define cpu_is_at91sam9rl() (0) | ||
33 | #define cpu_is_at91cap9() (0) | ||
34 | |||
35 | #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 000000000000..0180f584ef03 --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/gpio.h | |||
@@ -0,0 +1,45 @@ | |||
1 | #ifndef __ASM_AVR32_ARCH_GPIO_H | ||
2 | #define __ASM_AVR32_ARCH_GPIO_H | ||
3 | |||
4 | #include <linux/compiler.h> | ||
5 | #include <asm/irq.h> | ||
6 | |||
7 | |||
8 | /* Some GPIO chips can manage IRQs; some can't. The exact numbers can | ||
9 | * be changed if needed, but for the moment they're not configurable. | ||
10 | */ | ||
11 | #define ARCH_NR_GPIOS (NR_GPIO_IRQS + 2 * 32) | ||
12 | |||
13 | |||
14 | /* Arch-neutral GPIO API, supporting both "native" and external GPIOs. */ | ||
15 | #include <asm-generic/gpio.h> | ||
16 | |||
17 | static inline int gpio_get_value(unsigned int gpio) | ||
18 | { | ||
19 | return __gpio_get_value(gpio); | ||
20 | } | ||
21 | |||
22 | static inline void gpio_set_value(unsigned int gpio, int value) | ||
23 | { | ||
24 | __gpio_set_value(gpio, value); | ||
25 | } | ||
26 | |||
27 | static inline int gpio_cansleep(unsigned int gpio) | ||
28 | { | ||
29 | return __gpio_cansleep(gpio); | ||
30 | } | ||
31 | |||
32 | |||
33 | static inline int gpio_to_irq(unsigned int gpio) | ||
34 | { | ||
35 | if (gpio < NR_GPIO_IRQS) | ||
36 | return gpio + GPIO_IRQ_BASE; | ||
37 | return -EINVAL; | ||
38 | } | ||
39 | |||
40 | static inline int irq_to_gpio(unsigned int irq) | ||
41 | { | ||
42 | return irq - GPIO_IRQ_BASE; | ||
43 | } | ||
44 | |||
45 | #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 000000000000..bc40e3d46150 --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/init.h | |||
@@ -0,0 +1,18 @@ | |||
1 | /* | ||
2 | * AT32AP platform initialization calls. | ||
3 | * | ||
4 | * Copyright (C) 2006 Atmel Corporation | ||
5 | * | ||
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_AVR32_AT32AP_INIT_H__ | ||
11 | #define __ASM_AVR32_AT32AP_INIT_H__ | ||
12 | |||
13 | void setup_platform(void); | ||
14 | void setup_board(void); | ||
15 | |||
16 | void at32_setup_serial_console(unsigned int usart_id); | ||
17 | |||
18 | #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 000000000000..4ec6abc68ea3 --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/io.h | |||
@@ -0,0 +1,39 @@ | |||
1 | #ifndef __ASM_AVR32_ARCH_AT32AP_IO_H | ||
2 | #define __ASM_AVR32_ARCH_AT32AP_IO_H | ||
3 | |||
4 | /* For "bizarre" halfword swapping */ | ||
5 | #include <linux/byteorder/swabb.h> | ||
6 | |||
7 | #if defined(CONFIG_AP700X_32_BIT_SMC) | ||
8 | # define __swizzle_addr_b(addr) (addr ^ 3UL) | ||
9 | # define __swizzle_addr_w(addr) (addr ^ 2UL) | ||
10 | # define __swizzle_addr_l(addr) (addr) | ||
11 | # define ioswabb(a, x) (x) | ||
12 | # define ioswabw(a, x) (x) | ||
13 | # define ioswabl(a, x) (x) | ||
14 | # define __mem_ioswabb(a, x) (x) | ||
15 | # define __mem_ioswabw(a, x) swab16(x) | ||
16 | # define __mem_ioswabl(a, x) swab32(x) | ||
17 | #elif defined(CONFIG_AP700X_16_BIT_SMC) | ||
18 | # define __swizzle_addr_b(addr) (addr ^ 1UL) | ||
19 | # define __swizzle_addr_w(addr) (addr) | ||
20 | # define __swizzle_addr_l(addr) (addr) | ||
21 | # define ioswabb(a, x) (x) | ||
22 | # define ioswabw(a, x) (x) | ||
23 | # define ioswabl(a, x) swahw32(x) | ||
24 | # define __mem_ioswabb(a, x) (x) | ||
25 | # define __mem_ioswabw(a, x) swab16(x) | ||
26 | # define __mem_ioswabl(a, x) swahb32(x) | ||
27 | #else | ||
28 | # define __swizzle_addr_b(addr) (addr) | ||
29 | # define __swizzle_addr_w(addr) (addr) | ||
30 | # define __swizzle_addr_l(addr) (addr) | ||
31 | # define ioswabb(a, x) (x) | ||
32 | # define ioswabw(a, x) swab16(x) | ||
33 | # define ioswabl(a, x) swab32(x) | ||
34 | # define __mem_ioswabb(a, x) (x) | ||
35 | # define __mem_ioswabw(a, x) (x) | ||
36 | # define __mem_ioswabl(a, x) (x) | ||
37 | #endif | ||
38 | |||
39 | #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 000000000000..608e350368c7 --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/irq.h | |||
@@ -0,0 +1,14 @@ | |||
1 | #ifndef __ASM_AVR32_ARCH_IRQ_H | ||
2 | #define __ASM_AVR32_ARCH_IRQ_H | ||
3 | |||
4 | #define EIM_IRQ_BASE NR_INTERNAL_IRQS | ||
5 | #define NR_EIM_IRQS 32 | ||
6 | #define AT32_EXTINT(n) (EIM_IRQ_BASE + (n)) | ||
7 | |||
8 | #define GPIO_IRQ_BASE (EIM_IRQ_BASE + NR_EIM_IRQS) | ||
9 | #define NR_GPIO_CTLR (5 /*internal*/ + 1 /*external*/) | ||
10 | #define NR_GPIO_IRQS (NR_GPIO_CTLR * 32) | ||
11 | |||
12 | #define NR_IRQS (GPIO_IRQ_BASE + NR_GPIO_IRQS) | ||
13 | |||
14 | #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 000000000000..979b355b77b6 --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/pm.h | |||
@@ -0,0 +1,51 @@ | |||
1 | /* | ||
2 | * AVR32 AP Power Management. | ||
3 | * | ||
4 | * Copyright (C) 2008 Atmel Corporation | ||
5 | * | ||
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_AVR32_ARCH_PM_H | ||
11 | #define __ASM_AVR32_ARCH_PM_H | ||
12 | |||
13 | /* Possible arguments to the "sleep" instruction */ | ||
14 | #define CPU_SLEEP_IDLE 0 | ||
15 | #define CPU_SLEEP_FROZEN 1 | ||
16 | #define CPU_SLEEP_STANDBY 2 | ||
17 | #define CPU_SLEEP_STOP 3 | ||
18 | #define CPU_SLEEP_STATIC 5 | ||
19 | |||
20 | #ifndef __ASSEMBLY__ | ||
21 | extern void cpu_enter_idle(void); | ||
22 | extern void cpu_enter_standby(unsigned long sdramc_base); | ||
23 | |||
24 | extern bool disable_idle_sleep; | ||
25 | |||
26 | static inline void cpu_disable_idle_sleep(void) | ||
27 | { | ||
28 | disable_idle_sleep = true; | ||
29 | } | ||
30 | |||
31 | static inline void cpu_enable_idle_sleep(void) | ||
32 | { | ||
33 | disable_idle_sleep = false; | ||
34 | } | ||
35 | |||
36 | static inline void cpu_idle_sleep(void) | ||
37 | { | ||
38 | /* | ||
39 | * If we're using the COUNT and COMPARE registers for | ||
40 | * timekeeping, we can't use the IDLE state. | ||
41 | */ | ||
42 | if (disable_idle_sleep) | ||
43 | cpu_relax(); | ||
44 | else | ||
45 | cpu_enter_idle(); | ||
46 | } | ||
47 | |||
48 | void intc_set_suspend_handler(unsigned long offset); | ||
49 | #endif | ||
50 | |||
51 | #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 000000000000..b1abe6b4e4ef --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/portmux.h | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | * AT32 portmux interface. | ||
3 | * | ||
4 | * Copyright (C) 2006 Atmel Corporation | ||
5 | * | ||
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_PORTMUX_H__ | ||
11 | #define __ASM_ARCH_PORTMUX_H__ | ||
12 | |||
13 | /* | ||
14 | * Set up pin multiplexing, called from board init only. | ||
15 | * | ||
16 | * The following flags determine the initial state of the pin. | ||
17 | */ | ||
18 | #define AT32_GPIOF_PULLUP 0x00000001 /* (not-OUT) Enable pull-up */ | ||
19 | #define AT32_GPIOF_OUTPUT 0x00000002 /* (OUT) Enable output driver */ | ||
20 | #define AT32_GPIOF_HIGH 0x00000004 /* (OUT) Set output high */ | ||
21 | #define AT32_GPIOF_DEGLITCH 0x00000008 /* (IN) Filter glitches */ | ||
22 | #define AT32_GPIOF_MULTIDRV 0x00000010 /* Enable multidriver option */ | ||
23 | |||
24 | void at32_select_periph(unsigned int pin, unsigned int periph, | ||
25 | unsigned long flags); | ||
26 | void at32_select_gpio(unsigned int pin, unsigned long flags); | ||
27 | void at32_reserve_pin(unsigned int pin); | ||
28 | |||
29 | #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 000000000000..c98eea44a70a --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/smc.h | |||
@@ -0,0 +1,113 @@ | |||
1 | /* | ||
2 | * Static Memory Controller for AT32 chips | ||
3 | * | ||
4 | * Copyright (C) 2006 Atmel Corporation | ||
5 | * | ||
6 | * Inspired by the OMAP2 General-Purpose Memory Controller interface | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | #ifndef __ARCH_AT32AP_SMC_H | ||
13 | #define __ARCH_AT32AP_SMC_H | ||
14 | |||
15 | /* | ||
16 | * All timing parameters are in nanoseconds. | ||
17 | */ | ||
18 | struct smc_timing { | ||
19 | /* Delay from address valid to assertion of given strobe */ | ||
20 | int ncs_read_setup; | ||
21 | int nrd_setup; | ||
22 | int ncs_write_setup; | ||
23 | int nwe_setup; | ||
24 | |||
25 | /* Pulse length of given strobe */ | ||
26 | int ncs_read_pulse; | ||
27 | int nrd_pulse; | ||
28 | int ncs_write_pulse; | ||
29 | int nwe_pulse; | ||
30 | |||
31 | /* Total cycle length of given operation */ | ||
32 | int read_cycle; | ||
33 | int write_cycle; | ||
34 | |||
35 | /* Minimal recovery times, will extend cycle if needed */ | ||
36 | int ncs_read_recover; | ||
37 | int nrd_recover; | ||
38 | int ncs_write_recover; | ||
39 | int nwe_recover; | ||
40 | }; | ||
41 | |||
42 | /* | ||
43 | * All timing parameters are in clock cycles. | ||
44 | */ | ||
45 | struct smc_config { | ||
46 | |||
47 | /* Delay from address valid to assertion of given strobe */ | ||
48 | u8 ncs_read_setup; | ||
49 | u8 nrd_setup; | ||
50 | u8 ncs_write_setup; | ||
51 | u8 nwe_setup; | ||
52 | |||
53 | /* Pulse length of given strobe */ | ||
54 | u8 ncs_read_pulse; | ||
55 | u8 nrd_pulse; | ||
56 | u8 ncs_write_pulse; | ||
57 | u8 nwe_pulse; | ||
58 | |||
59 | /* Total cycle length of given operation */ | ||
60 | u8 read_cycle; | ||
61 | u8 write_cycle; | ||
62 | |||
63 | /* Bus width in bytes */ | ||
64 | u8 bus_width; | ||
65 | |||
66 | /* | ||
67 | * 0: Data is sampled on rising edge of NCS | ||
68 | * 1: Data is sampled on rising edge of NRD | ||
69 | */ | ||
70 | unsigned int nrd_controlled:1; | ||
71 | |||
72 | /* | ||
73 | * 0: Data is driven on falling edge of NCS | ||
74 | * 1: Data is driven on falling edge of NWR | ||
75 | */ | ||
76 | unsigned int nwe_controlled:1; | ||
77 | |||
78 | /* | ||
79 | * 0: NWAIT is disabled | ||
80 | * 1: Reserved | ||
81 | * 2: NWAIT is frozen mode | ||
82 | * 3: NWAIT in ready mode | ||
83 | */ | ||
84 | unsigned int nwait_mode:2; | ||
85 | |||
86 | /* | ||
87 | * 0: Byte select access type | ||
88 | * 1: Byte write access type | ||
89 | */ | ||
90 | unsigned int byte_write:1; | ||
91 | |||
92 | /* | ||
93 | * Number of clock cycles before data is released after | ||
94 | * the rising edge of the read controlling signal | ||
95 | * | ||
96 | * Total cycles from SMC is tdf_cycles + 1 | ||
97 | */ | ||
98 | unsigned int tdf_cycles:4; | ||
99 | |||
100 | /* | ||
101 | * 0: TDF optimization disabled | ||
102 | * 1: TDF optimization enabled | ||
103 | */ | ||
104 | unsigned int tdf_mode:1; | ||
105 | }; | ||
106 | |||
107 | extern void smc_set_timing(struct smc_config *config, | ||
108 | const struct smc_timing *timing); | ||
109 | |||
110 | extern int smc_set_configuration(int cs, const struct smc_config *config); | ||
111 | extern struct smc_config *smc_get_configuration(int cs); | ||
112 | |||
113 | #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 000000000000..4838dae7601a --- /dev/null +++ b/arch/avr32/mach-at32ap/include/mach/sram.h | |||
@@ -0,0 +1,30 @@ | |||
1 | /* | ||
2 | * Simple SRAM allocator | ||
3 | * | ||
4 | * Copyright (C) 2008 Atmel Corporation | ||
5 | * | ||
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_AVR32_ARCH_SRAM_H | ||
11 | #define __ASM_AVR32_ARCH_SRAM_H | ||
12 | |||
13 | #include <linux/genalloc.h> | ||
14 | |||
15 | extern struct gen_pool *sram_pool; | ||
16 | |||
17 | static inline unsigned long sram_alloc(size_t len) | ||
18 | { | ||
19 | if (!sram_pool) | ||
20 | return 0UL; | ||
21 | |||
22 | return gen_pool_alloc(sram_pool, len); | ||
23 | } | ||
24 | |||
25 | static inline void sram_free(unsigned long addr, size_t len) | ||
26 | { | ||
27 | return gen_pool_free(sram_pool, addr, len); | ||
28 | } | ||
29 | |||
30 | #endif /* __ASM_AVR32_ARCH_SRAM_H */ | ||
diff --git a/arch/avr32/mach-at32ap/pio.c b/arch/avr32/mach-at32ap/pio.c index 296294f8ed81..405ee6bad4ce 100644 --- a/arch/avr32/mach-at32ap/pio.c +++ b/arch/avr32/mach-at32ap/pio.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <asm/gpio.h> | 17 | #include <asm/gpio.h> |
18 | #include <asm/io.h> | 18 | #include <asm/io.h> |
19 | 19 | ||
20 | #include <asm/arch/portmux.h> | 20 | #include <mach/portmux.h> |
21 | 21 | ||
22 | #include "pio.h" | 22 | #include "pio.h" |
23 | 23 | ||
diff --git a/arch/avr32/mach-at32ap/pm-at32ap700x.S b/arch/avr32/mach-at32ap/pm-at32ap700x.S index 0a53ad314ff4..5be4de65b209 100644 --- a/arch/avr32/mach-at32ap/pm-at32ap700x.S +++ b/arch/avr32/mach-at32ap/pm-at32ap700x.S | |||
@@ -10,7 +10,7 @@ | |||
10 | #include <asm/asm.h> | 10 | #include <asm/asm.h> |
11 | #include <asm/asm-offsets.h> | 11 | #include <asm/asm-offsets.h> |
12 | #include <asm/thread_info.h> | 12 | #include <asm/thread_info.h> |
13 | #include <asm/arch/pm.h> | 13 | #include <mach/pm.h> |
14 | 14 | ||
15 | #include "pm.h" | 15 | #include "pm.h" |
16 | #include "sdramc.h" | 16 | #include "sdramc.h" |
diff --git a/arch/avr32/mach-at32ap/pm.c b/arch/avr32/mach-at32ap/pm.c index 0b764320135d..a0cbef54fc2a 100644 --- a/arch/avr32/mach-at32ap/pm.c +++ b/arch/avr32/mach-at32ap/pm.c | |||
@@ -14,8 +14,8 @@ | |||
14 | #include <asm/cacheflush.h> | 14 | #include <asm/cacheflush.h> |
15 | #include <asm/sysreg.h> | 15 | #include <asm/sysreg.h> |
16 | 16 | ||
17 | #include <asm/arch/pm.h> | 17 | #include <mach/pm.h> |
18 | #include <asm/arch/sram.h> | 18 | #include <mach/sram.h> |
19 | 19 | ||
20 | /* FIXME: This is only valid for AP7000 */ | 20 | /* FIXME: This is only valid for AP7000 */ |
21 | #define SDRAMC_BASE 0xfff03800 | 21 | #define SDRAMC_BASE 0xfff03800 |
diff --git a/drivers/ata/pata_at32.c b/drivers/ata/pata_at32.c index 82fb6e273169..ab61095093b9 100644 --- a/drivers/ata/pata_at32.c +++ b/drivers/ata/pata_at32.c | |||
@@ -24,8 +24,8 @@ | |||
24 | #include <linux/err.h> | 24 | #include <linux/err.h> |
25 | #include <linux/io.h> | 25 | #include <linux/io.h> |
26 | 26 | ||
27 | #include <asm/arch/board.h> | 27 | #include <mach/board.h> |
28 | #include <asm/arch/smc.h> | 28 | #include <mach/smc.h> |
29 | 29 | ||
30 | #define DRV_NAME "pata_at32" | 30 | #define DRV_NAME "pata_at32" |
31 | #define DRV_VERSION "0.0.3" | 31 | #define DRV_VERSION "0.0.3" |
diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index 992b4beb757c..0bd06f5bd62f 100644 --- a/drivers/mmc/host/atmel-mci.c +++ b/drivers/mmc/host/atmel-mci.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <asm/io.h> | 28 | #include <asm/io.h> |
29 | #include <asm/unaligned.h> | 29 | #include <asm/unaligned.h> |
30 | 30 | ||
31 | #include <asm/arch/board.h> | 31 | #include <mach/board.h> |
32 | 32 | ||
33 | #include "atmel-mci-regs.h" | 33 | #include "atmel-mci-regs.h" |
34 | 34 | ||