diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-14 15:02:21 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-14 15:02:21 -0400 |
| commit | 326d8519fc97be186c55ac605c3a7c957c758ae1 (patch) | |
| tree | c2a25f2ce5ea7095715a62bad984ecd95fb0b717 | |
| parent | 228b5b7e840f79c8751614ae2b83e97e361634ce (diff) | |
| parent | a83860c2da9303c864a53c299d17f608f9643541 (diff) | |
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
MIPS: Mark Eins: Fix configuration.
MIPS: Fix TIF_32BIT undefined problem when seccomp is disabled
| -rw-r--r-- | arch/mips/Kconfig | 26 | ||||
| -rw-r--r-- | arch/mips/Makefile | 2 | ||||
| -rw-r--r-- | arch/mips/configs/markeins_defconfig (renamed from arch/mips/configs/emma2rh_defconfig) | 10 | ||||
| -rw-r--r-- | arch/mips/emma/Kconfig | 29 | ||||
| -rw-r--r-- | arch/mips/emma/markeins/platform.c | 39 | ||||
| -rw-r--r-- | arch/mips/include/asm/seccomp.h | 4 | ||||
| -rw-r--r-- | arch/mips/include/asm/thread_info.h | 6 |
7 files changed, 60 insertions, 56 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index e61465a18c7..206cb7953b0 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
| @@ -238,8 +238,12 @@ config MIPS_SIM | |||
| 238 | This option enables support for MIPS Technologies MIPSsim software | 238 | This option enables support for MIPS Technologies MIPSsim software |
| 239 | emulator. | 239 | emulator. |
| 240 | 240 | ||
| 241 | config MACH_EMMA | 241 | config NEC_MARKEINS |
| 242 | bool "NEC EMMA series based machines" | 242 | bool "NEC EMMA2RH Mark-eins board" |
| 243 | select SOC_EMMA2RH | ||
| 244 | select HW_HAS_PCI | ||
| 245 | help | ||
| 246 | This enables support for the NEC Electronics Mark-eins boards. | ||
| 243 | 247 | ||
| 244 | config MACH_VR41XX | 248 | config MACH_VR41XX |
| 245 | bool "NEC VR4100 series based machines" | 249 | bool "NEC VR4100 series based machines" |
| @@ -637,7 +641,6 @@ endchoice | |||
| 637 | 641 | ||
| 638 | source "arch/mips/alchemy/Kconfig" | 642 | source "arch/mips/alchemy/Kconfig" |
| 639 | source "arch/mips/basler/excite/Kconfig" | 643 | source "arch/mips/basler/excite/Kconfig" |
| 640 | source "arch/mips/emma/Kconfig" | ||
| 641 | source "arch/mips/jazz/Kconfig" | 644 | source "arch/mips/jazz/Kconfig" |
| 642 | source "arch/mips/lasat/Kconfig" | 645 | source "arch/mips/lasat/Kconfig" |
| 643 | source "arch/mips/pmc-sierra/Kconfig" | 646 | source "arch/mips/pmc-sierra/Kconfig" |
| @@ -895,6 +898,18 @@ config MIPS_RM9122 | |||
| 895 | bool | 898 | bool |
| 896 | select SERIAL_RM9000 | 899 | select SERIAL_RM9000 |
| 897 | 900 | ||
| 901 | config SOC_EMMA2RH | ||
| 902 | bool | ||
| 903 | select CEVT_R4K | ||
| 904 | select CSRC_R4K | ||
| 905 | select DMA_NONCOHERENT | ||
| 906 | select IRQ_CPU | ||
| 907 | select SWAP_IO_SPACE | ||
| 908 | select SYS_HAS_CPU_R5500 | ||
| 909 | select SYS_SUPPORTS_32BIT_KERNEL | ||
| 910 | select SYS_SUPPORTS_64BIT_KERNEL | ||
| 911 | select SYS_SUPPORTS_BIG_ENDIAN | ||
| 912 | |||
| 898 | config SOC_PNX833X | 913 | config SOC_PNX833X |
| 899 | bool | 914 | bool |
| 900 | select CEVT_R4K | 915 | select CEVT_R4K |
| @@ -930,11 +945,6 @@ config SOC_PNX8550 | |||
| 930 | config SWAP_IO_SPACE | 945 | config SWAP_IO_SPACE |
| 931 | bool | 946 | bool |
| 932 | 947 | ||
| 933 | config EMMA2RH | ||
| 934 | bool | ||
| 935 | depends on MARKEINS | ||
| 936 | default y | ||
| 937 | |||
| 938 | config SERIAL_RM9000 | 948 | config SERIAL_RM9000 |
| 939 | bool | 949 | bool |
| 940 | 950 | ||
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 21b00e95dae..22dab2e1434 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
| @@ -416,7 +416,7 @@ load-$(CONFIG_PNX8550_STB810) += 0xffffffff80060000 | |||
| 416 | # | 416 | # |
| 417 | # Common NEC EMMAXXX | 417 | # Common NEC EMMAXXX |
| 418 | # | 418 | # |
| 419 | core-$(CONFIG_SOC_EMMA) += arch/mips/emma/common/ | 419 | core-$(CONFIG_SOC_EMMA2RH) += arch/mips/emma/common/ |
| 420 | cflags-$(CONFIG_SOC_EMMA2RH) += -I$(srctree)/arch/mips/include/asm/mach-emma2rh | 420 | cflags-$(CONFIG_SOC_EMMA2RH) += -I$(srctree)/arch/mips/include/asm/mach-emma2rh |
| 421 | 421 | ||
| 422 | # | 422 | # |
diff --git a/arch/mips/configs/emma2rh_defconfig b/arch/mips/configs/markeins_defconfig index fea9bc9865a..bad8901f8f3 100644 --- a/arch/mips/configs/emma2rh_defconfig +++ b/arch/mips/configs/markeins_defconfig | |||
| @@ -35,7 +35,7 @@ CONFIG_ZONE_DMA=y | |||
| 35 | # CONFIG_PNX8550_STB810 is not set | 35 | # CONFIG_PNX8550_STB810 is not set |
| 36 | # CONFIG_MACH_VR41XX is not set | 36 | # CONFIG_MACH_VR41XX is not set |
| 37 | # CONFIG_PMC_YOSEMITE is not set | 37 | # CONFIG_PMC_YOSEMITE is not set |
| 38 | CONFIG_MARKEINS=y | 38 | CONFIG_NEC_MARKEINS=y |
| 39 | # CONFIG_SGI_IP22 is not set | 39 | # CONFIG_SGI_IP22 is not set |
| 40 | # CONFIG_SGI_IP27 is not set | 40 | # CONFIG_SGI_IP27 is not set |
| 41 | # CONFIG_SGI_IP32 is not set | 41 | # CONFIG_SGI_IP32 is not set |
| @@ -68,7 +68,7 @@ CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y | |||
| 68 | CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y | 68 | CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN=y |
| 69 | CONFIG_IRQ_CPU=y | 69 | CONFIG_IRQ_CPU=y |
| 70 | CONFIG_SWAP_IO_SPACE=y | 70 | CONFIG_SWAP_IO_SPACE=y |
| 71 | CONFIG_EMMA2RH=y | 71 | CONFIG_SOC_EMMA2RH=y |
| 72 | CONFIG_MIPS_L1_CACHE_SHIFT=5 | 72 | CONFIG_MIPS_L1_CACHE_SHIFT=5 |
| 73 | 73 | ||
| 74 | # | 74 | # |
| @@ -574,9 +574,9 @@ CONFIG_MTD_CFI_UTIL=y | |||
| 574 | # | 574 | # |
| 575 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | 575 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set |
| 576 | CONFIG_MTD_PHYSMAP=y | 576 | CONFIG_MTD_PHYSMAP=y |
| 577 | CONFIG_MTD_PHYSMAP_START=0x1e000000 | 577 | CONFIG_MTD_PHYSMAP_START=0x0 |
| 578 | CONFIG_MTD_PHYSMAP_LEN=0x02000000 | 578 | CONFIG_MTD_PHYSMAP_LEN=0x0 |
| 579 | CONFIG_MTD_PHYSMAP_BANKWIDTH=2 | 579 | CONFIG_MTD_PHYSMAP_BANKWIDTH=0 |
| 580 | # CONFIG_MTD_PLATRAM is not set | 580 | # CONFIG_MTD_PLATRAM is not set |
| 581 | 581 | ||
| 582 | # | 582 | # |
diff --git a/arch/mips/emma/Kconfig b/arch/mips/emma/Kconfig deleted file mode 100644 index 9669c72123c..00000000000 --- a/arch/mips/emma/Kconfig +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | choice | ||
| 2 | prompt "Machine type" | ||
| 3 | depends on MACH_EMMA | ||
| 4 | default NEC_MARKEINS | ||
| 5 | |||
| 6 | config NEC_MARKEINS | ||
| 7 | bool "NEC EMMA2RH Mark-eins board" | ||
| 8 | select SOC_EMMA2RH | ||
| 9 | select HW_HAS_PCI | ||
| 10 | help | ||
| 11 | This enables support for the NEC Electronics Mark-eins boards. | ||
| 12 | |||
| 13 | endchoice | ||
| 14 | |||
| 15 | config SOC_EMMA2RH | ||
| 16 | bool | ||
| 17 | select SOC_EMMA | ||
| 18 | select SYS_HAS_CPU_R5500 | ||
| 19 | select SYS_SUPPORTS_32BIT_KERNEL | ||
| 20 | select SYS_SUPPORTS_64BIT_KERNEL | ||
| 21 | |||
| 22 | config SOC_EMMA | ||
| 23 | bool | ||
| 24 | select CEVT_R4K | ||
| 25 | select CSRC_R4K | ||
| 26 | select DMA_NONCOHERENT | ||
| 27 | select IRQ_CPU | ||
| 28 | select SWAP_IO_SPACE | ||
| 29 | select SYS_SUPPORTS_BIG_ENDIAN | ||
diff --git a/arch/mips/emma/markeins/platform.c b/arch/mips/emma/markeins/platform.c index 88e87f6b344..d5f47e4f0d1 100644 --- a/arch/mips/emma/markeins/platform.c +++ b/arch/mips/emma/markeins/platform.c | |||
| @@ -141,13 +141,6 @@ static struct platform_device serial_emma = { | |||
| 141 | }, | 141 | }, |
| 142 | }; | 142 | }; |
| 143 | 143 | ||
| 144 | static struct platform_device *devices[] = { | ||
| 145 | &i2c_emma_devices[0], | ||
| 146 | &i2c_emma_devices[1], | ||
| 147 | &i2c_emma_devices[2], | ||
| 148 | &serial_emma, | ||
| 149 | }; | ||
| 150 | |||
| 151 | static struct mtd_partition markeins_parts[] = { | 144 | static struct mtd_partition markeins_parts[] = { |
| 152 | [0] = { | 145 | [0] = { |
| 153 | .name = "RootFS", | 146 | .name = "RootFS", |
| @@ -181,11 +174,39 @@ static struct mtd_partition markeins_parts[] = { | |||
| 181 | }, | 174 | }, |
| 182 | }; | 175 | }; |
| 183 | 176 | ||
| 177 | static struct physmap_flash_data markeins_flash_data = { | ||
| 178 | .width = 2, | ||
| 179 | .nr_parts = ARRAY_SIZE(markeins_parts), | ||
| 180 | .parts = markeins_parts | ||
| 181 | }; | ||
| 182 | |||
| 183 | static struct resource markeins_flash_resource = { | ||
| 184 | .start = 0x1e000000, | ||
| 185 | .end = 0x02000000, | ||
| 186 | .flags = IORESOURCE_MEM | ||
| 187 | }; | ||
| 188 | |||
| 189 | static struct platform_device markeins_flash_device = { | ||
| 190 | .name = "physmap-flash", | ||
| 191 | .id = 0, | ||
| 192 | .dev = { | ||
| 193 | .platform_data = &markeins_flash_data, | ||
| 194 | }, | ||
| 195 | .num_resources = 1, | ||
| 196 | .resource = &markeins_flash_resource, | ||
| 197 | }; | ||
| 198 | |||
| 199 | static struct platform_device *devices[] = { | ||
| 200 | i2c_emma_devices, | ||
| 201 | i2c_emma_devices + 1, | ||
| 202 | i2c_emma_devices + 2, | ||
| 203 | &serial_emma, | ||
| 204 | &markeins_flash_device, | ||
| 205 | }; | ||
| 206 | |||
| 184 | static int __init platform_devices_setup(void) | 207 | static int __init platform_devices_setup(void) |
| 185 | { | 208 | { |
| 186 | physmap_set_partitions(markeins_parts, ARRAY_SIZE(markeins_parts)); | ||
| 187 | return platform_add_devices(devices, ARRAY_SIZE(devices)); | 209 | return platform_add_devices(devices, ARRAY_SIZE(devices)); |
| 188 | } | 210 | } |
| 189 | 211 | ||
| 190 | arch_initcall(platform_devices_setup); | 212 | arch_initcall(platform_devices_setup); |
| 191 | |||
diff --git a/arch/mips/include/asm/seccomp.h b/arch/mips/include/asm/seccomp.h index a6772e9507f..ae6306ebdca 100644 --- a/arch/mips/include/asm/seccomp.h +++ b/arch/mips/include/asm/seccomp.h | |||
| @@ -15,8 +15,6 @@ | |||
| 15 | */ | 15 | */ |
| 16 | #ifdef CONFIG_MIPS32_O32 | 16 | #ifdef CONFIG_MIPS32_O32 |
| 17 | 17 | ||
| 18 | #define TIF_32BIT TIF_32BIT_REGS | ||
| 19 | |||
| 20 | #define __NR_seccomp_read_32 4003 | 18 | #define __NR_seccomp_read_32 4003 |
| 21 | #define __NR_seccomp_write_32 4004 | 19 | #define __NR_seccomp_write_32 4004 |
| 22 | #define __NR_seccomp_exit_32 4001 | 20 | #define __NR_seccomp_exit_32 4001 |
| @@ -24,8 +22,6 @@ | |||
| 24 | 22 | ||
| 25 | #elif defined(CONFIG_MIPS32_N32) | 23 | #elif defined(CONFIG_MIPS32_N32) |
| 26 | 24 | ||
| 27 | #define TIF_32BIT _TIF_32BIT_ADDR | ||
| 28 | |||
| 29 | #define __NR_seccomp_read_32 6000 | 25 | #define __NR_seccomp_read_32 6000 |
| 30 | #define __NR_seccomp_write_32 6001 | 26 | #define __NR_seccomp_write_32 6001 |
| 31 | #define __NR_seccomp_exit_32 6058 | 27 | #define __NR_seccomp_exit_32 6058 |
diff --git a/arch/mips/include/asm/thread_info.h b/arch/mips/include/asm/thread_info.h index 3f76de73c94..676aa2ae191 100644 --- a/arch/mips/include/asm/thread_info.h +++ b/arch/mips/include/asm/thread_info.h | |||
| @@ -127,6 +127,12 @@ register struct thread_info *__current_thread_info __asm__("$28"); | |||
| 127 | #define TIF_LOAD_WATCH 25 /* If set, load watch registers */ | 127 | #define TIF_LOAD_WATCH 25 /* If set, load watch registers */ |
| 128 | #define TIF_SYSCALL_TRACE 31 /* syscall trace active */ | 128 | #define TIF_SYSCALL_TRACE 31 /* syscall trace active */ |
| 129 | 129 | ||
| 130 | #ifdef CONFIG_MIPS32_O32 | ||
| 131 | #define TIF_32BIT TIF_32BIT_REGS | ||
| 132 | #elif defined(CONFIG_MIPS32_N32) | ||
| 133 | #define TIF_32BIT _TIF_32BIT_ADDR | ||
| 134 | #endif /* CONFIG_MIPS32_O32 */ | ||
| 135 | |||
| 130 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | 136 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) |
| 131 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 137 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
| 132 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 138 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
