]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | # SPDX-License-Identifier: GPL-2.0 |
30ad29bb | 2 | if MACH_LOONGSON64 |
efe8dc55 | 3 | |
85749d24 | 4 | choice |
f6d4ff02 | 5 | prompt "Machine Type" |
85749d24 WZ |
6 | |
7 | config LEMOTE_FULOONG2E | |
f6d4ff02 WZ |
8 | bool "Lemote Fuloong(2e) mini-PC" |
9 | select ARCH_SPARSEMEM_ENABLE | |
10 | select CEVT_R4K | |
11 | select CSRC_R4K | |
12 | select SYS_HAS_CPU_LOONGSON2E | |
13 | select DMA_NONCOHERENT | |
14 | select BOOT_ELF32 | |
15 | select BOARD_SCACHE | |
16 | select HW_HAS_PCI | |
17 | select I8259 | |
18 | select ISA | |
67e38cf2 | 19 | select IRQ_MIPS_CPU |
f6d4ff02 WZ |
20 | select SYS_SUPPORTS_32BIT_KERNEL |
21 | select SYS_SUPPORTS_64BIT_KERNEL | |
22 | select SYS_SUPPORTS_LITTLE_ENDIAN | |
23 | select SYS_SUPPORTS_HIGHMEM | |
24 | select SYS_HAS_EARLY_PRINTK | |
f6d4ff02 WZ |
25 | select GENERIC_ISA_DMA_SUPPORT_BROKEN |
26 | select CPU_HAS_WB | |
5df74352 | 27 | select LOONGSON_MC146818 |
f6d4ff02 WZ |
28 | help |
29 | Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and | |
30 | an FPGA northbridge | |
85749d24 | 31 | |
f6d4ff02 | 32 | Lemote Fuloong(2e) mini PC have a VIA686B south bridge. |
7d32c6dd WZ |
33 | |
34 | config LEMOTE_MACH2F | |
35 | bool "Lemote Loongson 2F family machines" | |
36 | select ARCH_SPARSEMEM_ENABLE | |
37 | select BOARD_SCACHE | |
38 | select BOOT_ELF32 | |
f8ede0f7 | 39 | select CEVT_R4K if ! MIPS_EXTERNAL_TIMER |
7d32c6dd WZ |
40 | select CPU_HAS_WB |
41 | select CS5536 | |
f8ede0f7 | 42 | select CSRC_R4K if ! MIPS_EXTERNAL_TIMER |
7d32c6dd | 43 | select DMA_NONCOHERENT |
7d32c6dd | 44 | select GENERIC_ISA_DMA_SUPPORT_BROKEN |
95cf1468 | 45 | select HAVE_CLK |
7d32c6dd WZ |
46 | select HW_HAS_PCI |
47 | select I8259 | |
67e38cf2 | 48 | select IRQ_MIPS_CPU |
7d32c6dd WZ |
49 | select ISA |
50 | select SYS_HAS_CPU_LOONGSON2F | |
51 | select SYS_HAS_EARLY_PRINTK | |
52 | select SYS_SUPPORTS_32BIT_KERNEL | |
53 | select SYS_SUPPORTS_64BIT_KERNEL | |
54 | select SYS_SUPPORTS_HIGHMEM | |
55 | select SYS_SUPPORTS_LITTLE_ENDIAN | |
5df74352 | 56 | select LOONGSON_MC146818 |
7d32c6dd WZ |
57 | help |
58 | Lemote Loongson 2F family machines utilize the 2F revision of | |
59 | Loongson processor and the AMD CS5536 south bridge. | |
60 | ||
61 | These family machines include fuloong2f mini PC, yeeloong2f notebook, | |
62 | LingLoong allinone PC and so forth. | |
0e476d91 | 63 | |
5a21e0ba HC |
64 | config LOONGSON_MACH3X |
65 | bool "Generic Loongson 3 family machines" | |
0e476d91 HC |
66 | select ARCH_SPARSEMEM_ENABLE |
67 | select GENERIC_ISA_DMA_SUPPORT_BROKEN | |
0e476d91 HC |
68 | select BOOT_ELF32 |
69 | select BOARD_SCACHE | |
70 | select CSRC_R4K | |
71 | select CEVT_R4K | |
72 | select CPU_HAS_WB | |
73 | select HW_HAS_PCI | |
74 | select ISA | |
75 | select HT_PCI | |
76 | select I8259 | |
67e38cf2 | 77 | select IRQ_MIPS_CPU |
0e476d91 HC |
78 | select NR_CPUS_DEFAULT_4 |
79 | select SYS_HAS_CPU_LOONGSON3 | |
80 | select SYS_HAS_EARLY_PRINTK | |
81 | select SYS_SUPPORTS_SMP | |
c4a987db | 82 | select SYS_SUPPORTS_HOTPLUG_CPU |
c4617318 | 83 | select SYS_SUPPORTS_NUMA |
0e476d91 HC |
84 | select SYS_SUPPORTS_64BIT_KERNEL |
85 | select SYS_SUPPORTS_HIGHMEM | |
86 | select SYS_SUPPORTS_LITTLE_ENDIAN | |
87 | select LOONGSON_MC146818 | |
88 | select ZONE_DMA32 | |
89 | select LEFI_FIRMWARE_INTERFACE | |
f490682a | 90 | select PHYS48_TO_HT40 |
0e476d91 | 91 | help |
5a21e0ba HC |
92 | Generic Loongson 3 family machines utilize the 3A/3B revision |
93 | of Loongson processor and RS780/SBX00 chipset. | |
85749d24 | 94 | endchoice |
22c21003 WZ |
95 | |
96 | config CS5536 | |
97 | bool | |
f181bf60 | 98 | |
916daba8 WZ |
99 | config CS5536_MFGPT |
100 | bool "CS5536 MFGPT Timer" | |
4fd4db4f | 101 | depends on CS5536 && !HIGH_RES_TIMERS |
f8ede0f7 | 102 | select MIPS_EXTERNAL_TIMER |
916daba8 | 103 | help |
4fd4db4f SAS |
104 | This option enables the mfgpt0 timer of AMD CS5536. With this timer |
105 | switched on you can not use high resolution timers. | |
916daba8 WZ |
106 | |
107 | If you want to enable the Loongson2 CPUFreq Driver, Please enable | |
108 | this option at first, otherwise, You will get wrong system time. | |
109 | ||
110 | If unsure, say Yes. | |
111 | ||
e292ccde HC |
112 | config RS780_HPET |
113 | bool "RS780/SBX00 HPET Timer" | |
114 | depends on LOONGSON_MACH3X | |
115 | select MIPS_EXTERNAL_TIMER | |
116 | help | |
117 | This option enables the hpet timer of AMD RS780/SBX00. | |
118 | ||
119 | If you want to enable the Loongson3 CPUFreq Driver, Please enable | |
120 | this option at first, otherwise, You will get wrong system time. | |
121 | ||
122 | If unsure, say Yes. | |
123 | ||
c3d8d850 WZ |
124 | config LOONGSON_UART_BASE |
125 | bool | |
126 | default y | |
127 | depends on EARLY_PRINTK || SERIAL_8250 | |
5df74352 | 128 | |
0e476d91 HC |
129 | config IOMMU_HELPER |
130 | bool | |
131 | ||
132 | config NEED_SG_DMA_LENGTH | |
133 | bool | |
134 | ||
135 | config SWIOTLB | |
136 | bool "Soft IOMMU Support for All-Memory DMA" | |
137 | default y | |
138 | depends on CPU_LOONGSON3 | |
139 | select IOMMU_HELPER | |
140 | select NEED_SG_DMA_LENGTH | |
141 | select NEED_DMA_MAP_STATE | |
142 | ||
f490682a HC |
143 | config PHYS48_TO_HT40 |
144 | bool | |
145 | default y if CPU_LOONGSON3 | |
146 | ||
5df74352 AP |
147 | config LOONGSON_MC146818 |
148 | bool | |
149 | default n | |
efe8dc55 | 150 | |
0e476d91 HC |
151 | config LEFI_FIRMWARE_INTERFACE |
152 | bool | |
153 | ||
30ad29bb | 154 | endif # MACH_LOONGSON64 |