1 # SPDX-License-Identifier: GPL-2.0
7 config LEMOTE_FULOONG2E
8 bool "Lemote Fuloong(2e) mini-PC"
9 select ARCH_SPARSEMEM_ENABLE
10 select ARCH_MIGHT_HAVE_PC_PARPORT
11 select ARCH_MIGHT_HAVE_PC_SERIO
14 select SYS_HAS_CPU_LOONGSON2E
15 select DMA_NONCOHERENT
22 select SYS_SUPPORTS_64BIT_KERNEL
23 select SYS_SUPPORTS_LITTLE_ENDIAN
24 select SYS_SUPPORTS_HIGHMEM
25 select SYS_HAS_EARLY_PRINTK
26 select GENERIC_ISA_DMA_SUPPORT_BROKEN
28 select LOONGSON_MC146818
30 Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and
33 Lemote Fuloong(2e) mini PC have a VIA686B south bridge.
36 bool "Lemote Loongson 2F family machines"
37 select ARCH_SPARSEMEM_ENABLE
38 select ARCH_MIGHT_HAVE_PC_PARPORT
39 select ARCH_MIGHT_HAVE_PC_SERIO
42 select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
45 select CSRC_R4K if ! MIPS_EXTERNAL_TIMER
46 select DMA_NONCOHERENT
47 select GENERIC_ISA_DMA_SUPPORT_BROKEN
53 select SYS_HAS_CPU_LOONGSON2F
54 select SYS_HAS_EARLY_PRINTK
55 select SYS_SUPPORTS_64BIT_KERNEL
56 select SYS_SUPPORTS_HIGHMEM
57 select SYS_SUPPORTS_LITTLE_ENDIAN
58 select LOONGSON_MC146818
60 Lemote Loongson 2F family machines utilize the 2F revision of
61 Loongson processor and the AMD CS5536 south bridge.
63 These family machines include fuloong2f mini PC, yeeloong2f notebook,
64 LingLoong allinone PC and so forth.
66 config LOONGSON_MACH3X
67 bool "Generic Loongson 3 family machines"
68 select ARCH_SPARSEMEM_ENABLE
69 select ARCH_MIGHT_HAVE_PC_PARPORT
70 select ARCH_MIGHT_HAVE_PC_SERIO
71 select GENERIC_ISA_DMA_SUPPORT_BROKEN
82 select NR_CPUS_DEFAULT_4
83 select SYS_HAS_CPU_LOONGSON3
84 select SYS_HAS_EARLY_PRINTK
85 select SYS_SUPPORTS_SMP
86 select SYS_SUPPORTS_HOTPLUG_CPU
87 select SYS_SUPPORTS_NUMA
88 select SYS_SUPPORTS_64BIT_KERNEL
89 select SYS_SUPPORTS_HIGHMEM
90 select SYS_SUPPORTS_LITTLE_ENDIAN
91 select LOONGSON_MC146818
93 select LEFI_FIRMWARE_INTERFACE
96 Generic Loongson 3 family machines utilize the 3A/3B revision
97 of Loongson processor and RS780/SBX00 chipset.
104 bool "CS5536 MFGPT Timer"
105 depends on CS5536 && !HIGH_RES_TIMERS
106 select MIPS_EXTERNAL_TIMER
108 This option enables the mfgpt0 timer of AMD CS5536. With this timer
109 switched on you can not use high resolution timers.
111 If you want to enable the Loongson2 CPUFreq Driver, Please enable
112 this option at first, otherwise, You will get wrong system time.
117 bool "RS780/SBX00 HPET Timer"
118 depends on LOONGSON_MACH3X
119 select MIPS_EXTERNAL_TIMER
121 This option enables the hpet timer of AMD RS780/SBX00.
123 If you want to enable the Loongson3 CPUFreq Driver, Please enable
124 this option at first, otherwise, You will get wrong system time.
128 config LOONGSON_UART_BASE
131 depends on EARLY_PRINTK || SERIAL_8250
136 config NEED_SG_DMA_LENGTH
140 bool "Soft IOMMU Support for All-Memory DMA"
142 depends on CPU_LOONGSON3
143 select DMA_DIRECT_OPS
145 select NEED_SG_DMA_LENGTH
146 select NEED_DMA_MAP_STATE
148 config PHYS48_TO_HT40
150 default y if CPU_LOONGSON3
152 config LOONGSON_MC146818
156 config LEFI_FIRMWARE_INTERFACE
159 endif # MACH_LOONGSON64