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_64BIT_KERNEL
21 select SYS_SUPPORTS_LITTLE_ENDIAN
22 select SYS_SUPPORTS_HIGHMEM
23 select SYS_HAS_EARLY_PRINTK
24 select GENERIC_ISA_DMA_SUPPORT_BROKEN
26 select LOONGSON_MC146818
28 Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and
31 Lemote Fuloong(2e) mini PC have a VIA686B south bridge.
34 bool "Lemote Loongson 2F family machines"
35 select ARCH_SPARSEMEM_ENABLE
38 select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
41 select CSRC_R4K if ! MIPS_EXTERNAL_TIMER
42 select DMA_NONCOHERENT
43 select GENERIC_ISA_DMA_SUPPORT_BROKEN
49 select SYS_HAS_CPU_LOONGSON2F
50 select SYS_HAS_EARLY_PRINTK
51 select SYS_SUPPORTS_64BIT_KERNEL
52 select SYS_SUPPORTS_HIGHMEM
53 select SYS_SUPPORTS_LITTLE_ENDIAN
54 select LOONGSON_MC146818
56 Lemote Loongson 2F family machines utilize the 2F revision of
57 Loongson processor and the AMD CS5536 south bridge.
59 These family machines include fuloong2f mini PC, yeeloong2f notebook,
60 LingLoong allinone PC and so forth.
62 config LOONGSON_MACH3X
63 bool "Generic Loongson 3 family machines"
64 select ARCH_SPARSEMEM_ENABLE
65 select GENERIC_ISA_DMA_SUPPORT_BROKEN
76 select NR_CPUS_DEFAULT_4
77 select SYS_HAS_CPU_LOONGSON3
78 select SYS_HAS_EARLY_PRINTK
79 select SYS_SUPPORTS_SMP
80 select SYS_SUPPORTS_HOTPLUG_CPU
81 select SYS_SUPPORTS_NUMA
82 select SYS_SUPPORTS_64BIT_KERNEL
83 select SYS_SUPPORTS_HIGHMEM
84 select SYS_SUPPORTS_LITTLE_ENDIAN
85 select LOONGSON_MC146818
87 select LEFI_FIRMWARE_INTERFACE
90 Generic Loongson 3 family machines utilize the 3A/3B revision
91 of Loongson processor and RS780/SBX00 chipset.
98 bool "CS5536 MFGPT Timer"
99 depends on CS5536 && !HIGH_RES_TIMERS
100 select MIPS_EXTERNAL_TIMER
102 This option enables the mfgpt0 timer of AMD CS5536. With this timer
103 switched on you can not use high resolution timers.
105 If you want to enable the Loongson2 CPUFreq Driver, Please enable
106 this option at first, otherwise, You will get wrong system time.
111 bool "RS780/SBX00 HPET Timer"
112 depends on LOONGSON_MACH3X
113 select MIPS_EXTERNAL_TIMER
115 This option enables the hpet timer of AMD RS780/SBX00.
117 If you want to enable the Loongson3 CPUFreq Driver, Please enable
118 this option at first, otherwise, You will get wrong system time.
122 config LOONGSON_UART_BASE
125 depends on EARLY_PRINTK || SERIAL_8250
130 config NEED_SG_DMA_LENGTH
134 bool "Soft IOMMU Support for All-Memory DMA"
136 depends on CPU_LOONGSON3
137 select DMA_DIRECT_OPS
139 select NEED_SG_DMA_LENGTH
140 select NEED_DMA_MAP_STATE
142 config PHYS48_TO_HT40
144 default y if CPU_LOONGSON3
146 config LOONGSON_MC146818
150 config LEFI_FIRMWARE_INTERFACE
153 endif # MACH_LOONGSON64