diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/Kconfig | 18 | ||||
-rw-r--r-- | arch/mips/Makefile | 6 | ||||
-rw-r--r-- | arch/mips/loongson/Kconfig | 2 |
3 files changed, 17 insertions, 9 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 482dcc3b91e1..466920aa067f 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -1030,12 +1030,10 @@ choice | |||
1030 | prompt "CPU type" | 1030 | prompt "CPU type" |
1031 | default CPU_R4X00 | 1031 | default CPU_R4X00 |
1032 | 1032 | ||
1033 | config CPU_LOONGSON2 | 1033 | config CPU_LOONGSON2E |
1034 | bool "Loongson 2" | 1034 | bool "Loongson 2E" |
1035 | depends on SYS_HAS_CPU_LOONGSON2 | 1035 | depends on SYS_HAS_CPU_LOONGSON2E |
1036 | select CPU_SUPPORTS_32BIT_KERNEL | 1036 | select CPU_LOONGSON2 |
1037 | select CPU_SUPPORTS_64BIT_KERNEL | ||
1038 | select CPU_SUPPORTS_HIGHMEM | ||
1039 | help | 1037 | help |
1040 | The Loongson 2E processor implements the MIPS III instruction set | 1038 | The Loongson 2E processor implements the MIPS III instruction set |
1041 | with many extensions. | 1039 | with many extensions. |
@@ -1282,7 +1280,13 @@ config CPU_CAVIUM_OCTEON | |||
1282 | 1280 | ||
1283 | endchoice | 1281 | endchoice |
1284 | 1282 | ||
1285 | config SYS_HAS_CPU_LOONGSON2 | 1283 | config CPU_LOONGSON2 |
1284 | bool | ||
1285 | select CPU_SUPPORTS_32BIT_KERNEL | ||
1286 | select CPU_SUPPORTS_64BIT_KERNEL | ||
1287 | select CPU_SUPPORTS_HIGHMEM | ||
1288 | |||
1289 | config SYS_HAS_CPU_LOONGSON2E | ||
1286 | bool | 1290 | bool |
1287 | 1291 | ||
1288 | config SYS_HAS_CPU_MIPS32_R1 | 1292 | config SYS_HAS_CPU_MIPS32_R1 |
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 94d6f5813860..1efa9aa64880 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -120,7 +120,11 @@ cflags-$(CONFIG_CPU_R4300) += -march=r4300 -Wa,--trap | |||
120 | cflags-$(CONFIG_CPU_VR41XX) += -march=r4100 -Wa,--trap | 120 | cflags-$(CONFIG_CPU_VR41XX) += -march=r4100 -Wa,--trap |
121 | cflags-$(CONFIG_CPU_R4X00) += -march=r4600 -Wa,--trap | 121 | cflags-$(CONFIG_CPU_R4X00) += -march=r4600 -Wa,--trap |
122 | cflags-$(CONFIG_CPU_TX49XX) += -march=r4600 -Wa,--trap | 122 | cflags-$(CONFIG_CPU_TX49XX) += -march=r4600 -Wa,--trap |
123 | cflags-$(CONFIG_CPU_LOONGSON2) += -march=r4600 -Wa,--trap | 123 | # only gcc >= 4.4 have the loongson-specific support |
124 | cflags-$(CONFIG_CPU_LOONGSON2) += -Wa,--trap | ||
125 | cflags-$(CONFIG_CPU_LOONGSON2E) += \ | ||
126 | $(call cc-option,-march=loongson2e,-march=r4600) | ||
127 | |||
124 | cflags-$(CONFIG_CPU_MIPS32_R1) += $(call cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ | 128 | cflags-$(CONFIG_CPU_MIPS32_R1) += $(call cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ |
125 | -Wa,-mips32 -Wa,--trap | 129 | -Wa,-mips32 -Wa,--trap |
126 | cflags-$(CONFIG_CPU_MIPS32_R2) += $(call cc-option,-march=mips32r2,-mips32r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ | 130 | cflags-$(CONFIG_CPU_MIPS32_R2) += $(call cc-option,-march=mips32r2,-mips32r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ |
diff --git a/arch/mips/loongson/Kconfig b/arch/mips/loongson/Kconfig index 376712a0e2f1..d45092505fa1 100644 --- a/arch/mips/loongson/Kconfig +++ b/arch/mips/loongson/Kconfig | |||
@@ -7,7 +7,7 @@ config LEMOTE_FULOONG2E | |||
7 | select ARCH_SPARSEMEM_ENABLE | 7 | select ARCH_SPARSEMEM_ENABLE |
8 | select CEVT_R4K | 8 | select CEVT_R4K |
9 | select CSRC_R4K | 9 | select CSRC_R4K |
10 | select SYS_HAS_CPU_LOONGSON2 | 10 | select SYS_HAS_CPU_LOONGSON2E |
11 | select DMA_NONCOHERENT | 11 | select DMA_NONCOHERENT |
12 | select BOOT_ELF32 | 12 | select BOOT_ELF32 |
13 | select BOARD_SCACHE | 13 | select BOARD_SCACHE |