1 # SPDX-License-Identifier: GPL-2.0
7 config LEMOTE_FULOONG2E
8 bool "Lemote Fuloong(2e) mini-PC"
9 select ARCH_SPARSEMEM_ENABLE
12 select SYS_HAS_CPU_LOONGSON2E
13 select DMA_NONCOHERENT
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
25 select GENERIC_ISA_DMA_SUPPORT_BROKEN
27 select LOONGSON_MC146818
29 Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and
32 Lemote Fuloong(2e) mini PC have a VIA686B south bridge.
35 bool "Lemote Loongson 2F family machines"
36 select ARCH_SPARSEMEM_ENABLE
39 select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
42 select CSRC_R4K if ! MIPS_EXTERNAL_TIMER
43 select DMA_NONCOHERENT
44 select GENERIC_ISA_DMA_SUPPORT_BROKEN
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
56 select LOONGSON_MC146818
58 Lemote Loongson 2F family machines utilize the 2F revision of
59 Loongson processor and the AMD CS5536 south bridge.
61 These family machines include fuloong2f mini PC, yeeloong2f notebook,
62 LingLoong allinone PC and so forth.
64 config LOONGSON_MACH3X
65 bool "Generic Loongson 3 family machines"
66 select ARCH_SPARSEMEM_ENABLE
67 select GENERIC_ISA_DMA_SUPPORT_BROKEN
78 select NR_CPUS_DEFAULT_4
79 select SYS_HAS_CPU_LOONGSON3
80 select SYS_HAS_EARLY_PRINTK
81 select SYS_SUPPORTS_SMP
82 select SYS_SUPPORTS_HOTPLUG_CPU
83 select SYS_SUPPORTS_NUMA
84 select SYS_SUPPORTS_64BIT_KERNEL
85 select SYS_SUPPORTS_HIGHMEM
86 select SYS_SUPPORTS_LITTLE_ENDIAN
87 select LOONGSON_MC146818
89 select LEFI_FIRMWARE_INTERFACE
92 Generic Loongson 3 family machines utilize the 3A/3B revision
93 of Loongson processor and RS780/SBX00 chipset.
100 bool "CS5536 MFGPT Timer"
101 depends on CS5536 && !HIGH_RES_TIMERS
102 select MIPS_EXTERNAL_TIMER
104 This option enables the mfgpt0 timer of AMD CS5536. With this timer
105 switched on you can not use high resolution timers.
107 If you want to enable the Loongson2 CPUFreq Driver, Please enable
108 this option at first, otherwise, You will get wrong system time.
113 bool "RS780/SBX00 HPET Timer"
114 depends on LOONGSON_MACH3X
115 select MIPS_EXTERNAL_TIMER
117 This option enables the hpet timer of AMD RS780/SBX00.
119 If you want to enable the Loongson3 CPUFreq Driver, Please enable
120 this option at first, otherwise, You will get wrong system time.
124 config LOONGSON_UART_BASE
127 depends on EARLY_PRINTK || SERIAL_8250
132 config NEED_SG_DMA_LENGTH
136 bool "Soft IOMMU Support for All-Memory DMA"
138 depends on CPU_LOONGSON3
140 select NEED_SG_DMA_LENGTH
141 select NEED_DMA_MAP_STATE
143 config PHYS48_TO_HT40
145 default y if CPU_LOONGSON3
147 config LOONGSON_MC146818
151 config LEFI_FIRMWARE_INTERFACE
154 endif # MACH_LOONGSON64