diff options
43 files changed, 326 insertions, 184 deletions
diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h index 010618487cf1..94cc58ef61ae 100644 --- a/arch/arm/include/asm/unistd.h +++ b/arch/arm/include/asm/unistd.h | |||
| @@ -387,6 +387,8 @@ | |||
| 387 | #define __NR_dup3 (__NR_SYSCALL_BASE+358) | 387 | #define __NR_dup3 (__NR_SYSCALL_BASE+358) |
| 388 | #define __NR_pipe2 (__NR_SYSCALL_BASE+359) | 388 | #define __NR_pipe2 (__NR_SYSCALL_BASE+359) |
| 389 | #define __NR_inotify_init1 (__NR_SYSCALL_BASE+360) | 389 | #define __NR_inotify_init1 (__NR_SYSCALL_BASE+360) |
| 390 | #define __NR_preadv (__NR_SYSCALL_BASE+361) | ||
| 391 | #define __NR_pwritev (__NR_SYSCALL_BASE+362) | ||
| 390 | 392 | ||
| 391 | /* | 393 | /* |
| 392 | * The following SWIs are ARM private. | 394 | * The following SWIs are ARM private. |
diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S index 9ca8d13f05f7..1680e9e9c831 100644 --- a/arch/arm/kernel/calls.S +++ b/arch/arm/kernel/calls.S | |||
| @@ -370,6 +370,8 @@ | |||
| 370 | CALL(sys_dup3) | 370 | CALL(sys_dup3) |
| 371 | CALL(sys_pipe2) | 371 | CALL(sys_pipe2) |
| 372 | /* 360 */ CALL(sys_inotify_init1) | 372 | /* 360 */ CALL(sys_inotify_init1) |
| 373 | CALL(sys_preadv) | ||
| 374 | CALL(sys_pwritev) | ||
| 373 | #ifndef syscalls_counted | 375 | #ifndef syscalls_counted |
| 374 | .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls | 376 | .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls |
| 375 | #define syscalls_counted | 377 | #define syscalls_counted |
diff --git a/arch/arm/mach-imx/include/mach/gpio.h b/arch/arm/mach-imx/include/mach/gpio.h index 502d5aa2c093..6c2942f82922 100644 --- a/arch/arm/mach-imx/include/mach/gpio.h +++ b/arch/arm/mach-imx/include/mach/gpio.h | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | #ifndef _IMX_GPIO_H | 1 | #ifndef _IMX_GPIO_H |
| 2 | 2 | ||
| 3 | #include <linux/kernel.h> | 3 | #include <linux/kernel.h> |
| 4 | #include <mach/hardware.h> | ||
| 4 | #include <mach/imx-regs.h> | 5 | #include <mach/imx-regs.h> |
| 5 | 6 | ||
| 6 | #define IMX_GPIO_ALLOC_MODE_NORMAL 0 | 7 | #define IMX_GPIO_ALLOC_MODE_NORMAL 0 |
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c index 16dc9ea08393..eeb00240d784 100644 --- a/arch/arm/mach-kirkwood/common.c +++ b/arch/arm/mach-kirkwood/common.c | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #include <asm/mach/map.h> | 23 | #include <asm/mach/map.h> |
| 24 | #include <asm/mach/time.h> | 24 | #include <asm/mach/time.h> |
| 25 | #include <mach/kirkwood.h> | 25 | #include <mach/kirkwood.h> |
| 26 | #include <mach/bridge-regs.h> | ||
| 26 | #include <plat/cache-feroceon-l2.h> | 27 | #include <plat/cache-feroceon-l2.h> |
| 27 | #include <plat/ehci-orion.h> | 28 | #include <plat/ehci-orion.h> |
| 28 | #include <plat/mvsdio.h> | 29 | #include <plat/mvsdio.h> |
diff --git a/arch/arm/mach-kirkwood/include/mach/bridge-regs.h b/arch/arm/mach-kirkwood/include/mach/bridge-regs.h new file mode 100644 index 000000000000..4f7029f521cc --- /dev/null +++ b/arch/arm/mach-kirkwood/include/mach/bridge-regs.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | /* | ||
| 2 | * arch/arm/mach-kirkwood/include/mach/bridge-regs.h | ||
| 3 | * | ||
| 4 | * Mbus-L to Mbus Bridge Registers | ||
| 5 | * | ||
| 6 | * This file is licensed under the terms of the GNU General Public | ||
| 7 | * License version 2. This program is licensed "as is" without any | ||
| 8 | * warranty of any kind, whether express or implied. | ||
| 9 | */ | ||
| 10 | |||
| 11 | #ifndef __ASM_ARCH_BRIDGE_REGS_H | ||
| 12 | #define __ASM_ARCH_BRIDGE_REGS_H | ||
| 13 | |||
| 14 | #include <mach/kirkwood.h> | ||
| 15 | |||
| 16 | #define CPU_CONTROL (BRIDGE_VIRT_BASE | 0x0104) | ||
| 17 | #define CPU_RESET 0x00000002 | ||
| 18 | |||
| 19 | #define RSTOUTn_MASK (BRIDGE_VIRT_BASE | 0x0108) | ||
| 20 | #define SOFT_RESET_OUT_EN 0x00000004 | ||
| 21 | |||
| 22 | #define SYSTEM_SOFT_RESET (BRIDGE_VIRT_BASE | 0x010c) | ||
| 23 | #define SOFT_RESET 0x00000001 | ||
| 24 | |||
| 25 | #define BRIDGE_CAUSE (BRIDGE_VIRT_BASE | 0x0110) | ||
| 26 | #define BRIDGE_MASK (BRIDGE_VIRT_BASE | 0x0114) | ||
| 27 | #define BRIDGE_INT_TIMER0 0x0002 | ||
| 28 | #define BRIDGE_INT_TIMER1 0x0004 | ||
| 29 | #define BRIDGE_INT_TIMER1_CLR (~0x0004) | ||
| 30 | |||
| 31 | #define IRQ_VIRT_BASE (BRIDGE_VIRT_BASE | 0x0200) | ||
| 32 | #define IRQ_CAUSE_LOW_OFF 0x0000 | ||
| 33 | #define IRQ_MASK_LOW_OFF 0x0004 | ||
| 34 | #define IRQ_CAUSE_HIGH_OFF 0x0010 | ||
| 35 | #define IRQ_MASK_HIGH_OFF 0x0014 | ||
| 36 | |||
| 37 | #define TIMER_VIRT_BASE (BRIDGE_VIRT_BASE | 0x0300) | ||
| 38 | |||
| 39 | #define L2_CONFIG_REG (BRIDGE_VIRT_BASE | 0x0128) | ||
| 40 | #define L2_WRITETHROUGH 0x00000010 | ||
| 41 | |||
| 42 | #endif | ||
diff --git a/arch/arm/mach-kirkwood/include/mach/debug-macro.S b/arch/arm/mach-kirkwood/include/mach/debug-macro.S index c0cc5b5c82ac..a4a55c199d77 100644 --- a/arch/arm/mach-kirkwood/include/mach/debug-macro.S +++ b/arch/arm/mach-kirkwood/include/mach/debug-macro.S | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | * published by the Free Software Foundation. | 6 | * published by the Free Software Foundation. |
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | #include <mach/kirkwood.h> | 9 | #include <mach/bridge-regs.h> |
| 10 | 10 | ||
| 11 | .macro addruart,rx | 11 | .macro addruart,rx |
| 12 | mrc p15, 0, \rx, c1, c0 | 12 | mrc p15, 0, \rx, c1, c0 |
diff --git a/arch/arm/mach-kirkwood/include/mach/entry-macro.S b/arch/arm/mach-kirkwood/include/mach/entry-macro.S index 83e0cba77b36..8939d36f893c 100644 --- a/arch/arm/mach-kirkwood/include/mach/entry-macro.S +++ b/arch/arm/mach-kirkwood/include/mach/entry-macro.S | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | * warranty of any kind, whether express or implied. | 8 | * warranty of any kind, whether express or implied. |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | #include <mach/kirkwood.h> | 11 | #include <mach/bridge-regs.h> |
| 12 | 12 | ||
| 13 | .macro disable_fiq | 13 | .macro disable_fiq |
| 14 | .endm | 14 | .endm |
diff --git a/arch/arm/mach-kirkwood/include/mach/kirkwood.h b/arch/arm/mach-kirkwood/include/mach/kirkwood.h index 38c986853590..b3e13958821d 100644 --- a/arch/arm/mach-kirkwood/include/mach/kirkwood.h +++ b/arch/arm/mach-kirkwood/include/mach/kirkwo | |||
