aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/Kconfig
diff options
context:
space:
mode:
authorHuacai Chen <chenhc@lemote.com>2014-03-21 06:44:07 -0400
committerRalf Baechle <ralf@linux-mips.org>2014-03-31 12:17:12 -0400
commit0e476d91244ec6a9f6be3eb1963627340d031f99 (patch)
tree0d90f0b1d4d3a5190100a06ffefa7f547ac63bf8 /arch/mips/Kconfig
parent1299b0e05e106f621fff1504df5251f2a678097e (diff)
MIPS: Loongson: Add Loongson-3 Kconfig options
Added Kconfig options include: Loongson-3 CPU and machine definition, CPU cache features, UEFI-like firmware interface (LEFI), HT-linked PCI, and swiotlb support. Signed-off-by: Huacai Chen <chenhc@lemote.com> Signed-off-by: Hongliang Tao <taohl@lemote.com> Signed-off-by: Hua Yan <yanh@lemote.com> Tested-by: Alex Smith <alex.smith@imgtec.com> Reviewed-by: Alex Smith <alex.smith@imgtec.com> Cc: John Crispin <john@phrozen.org> Cc: Steven J. Hill <Steven.Hill@imgtec.com> Cc: Aurelien Jarno <aurelien@aurel32.net> Cc: linux-mips@linux-mips.org Cc: Fuxin Zhang <zhangfx@lemote.com> Cc: Zhangjin Wu <wuzhangjin@gmail.com> Patchwork: https://patchwork.linux-mips.org/patch/6637 Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r--arch/mips/Kconfig29
1 files changed, 28 insertions, 1 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 5a95acafcd05..a5ea11d8ec4e 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -1153,6 +1153,18 @@ choice
1153 prompt "CPU type" 1153 prompt "CPU type"
1154 default CPU_R4X00 1154 default CPU_R4X00
1155 1155
1156config CPU_LOONGSON3
1157 bool "Loongson 3 CPU"
1158 depends on SYS_HAS_CPU_LOONGSON3
1159 select CPU_SUPPORTS_64BIT_KERNEL
1160 select CPU_SUPPORTS_HIGHMEM
1161 select CPU_SUPPORTS_HUGEPAGES
1162 select WEAK_ORDERING
1163 select WEAK_REORDERING_BEYOND_LLSC
1164 help
1165 The Loongson 3 processor implements the MIPS64R2 instruction
1166 set with many extensions.
1167
1156config CPU_LOONGSON2E 1168config CPU_LOONGSON2E
1157 bool "Loongson 2E" 1169 bool "Loongson 2E"
1158 depends on SYS_HAS_CPU_LOONGSON2E 1170 depends on SYS_HAS_CPU_LOONGSON2E
@@ -1549,6 +1561,10 @@ config CPU_BMIPS5000
1549 select SYS_SUPPORTS_SMP 1561 select SYS_SUPPORTS_SMP
1550 select SYS_SUPPORTS_HOTPLUG_CPU 1562 select SYS_SUPPORTS_HOTPLUG_CPU
1551 1563
1564config SYS_HAS_CPU_LOONGSON3
1565 bool
1566 select CPU_SUPPORTS_CPUFREQ
1567
1552config SYS_HAS_CPU_LOONGSON2E 1568config SYS_HAS_CPU_LOONGSON2E
1553 bool 1569 bool
1554 1570
@@ -1761,7 +1777,7 @@ choice
1761 1777
1762config PAGE_SIZE_4KB 1778config PAGE_SIZE_4KB
1763 bool "4kB" 1779 bool "4kB"
1764 depends on !CPU_LOONGSON2 1780 depends on !CPU_LOONGSON2 && !CPU_LOONGSON3
1765 help 1781 help
1766 This option select the standard 4kB Linux page size. On some 1782 This option select the standard 4kB Linux page size. On some
1767 R3000-family processors this is the only available page size. Using 1783 R3000-family processors this is the only available page size. Using
@@ -2493,6 +2509,17 @@ config PCI
2493 your box. Other bus systems are ISA, EISA, or VESA. If you have PCI, 2509 your box. Other bus systems are ISA, EISA, or VESA. If you have PCI,
2494 say Y, otherwise N. 2510 say Y, otherwise N.
2495 2511
2512config HT_PCI
2513 bool "Support for HT-linked PCI"
2514 default y
2515 depends on CPU_LOONGSON3
2516 select PCI
2517 select PCI_DOMAINS
2518 help
2519 Loongson family machines use Hyper-Transport bus for inter-core
2520 connection and device connection. The PCI bus is a subordinate
2521 linked at HT. Choose Y for Loongson-3 based machines.
2522
2496config PCI_DOMAINS 2523config PCI_DOMAINS
2497 bool 2524 bool
2498 2525