Kconfig 3.7 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
2
if MACH_LOONGSON64
3

4
choice
W
Wu Zhangjin 已提交
5
	prompt "Machine Type"
6 7

config LEMOTE_FULOONG2E
W
Wu Zhangjin 已提交
8 9
	bool "Lemote Fuloong(2e) mini-PC"
	select ARCH_SPARSEMEM_ENABLE
10
	select ARCH_MIGHT_HAVE_PC_PARPORT
11
	select ARCH_MIGHT_HAVE_PC_SERIO
W
Wu Zhangjin 已提交
12 13 14 15 16 17 18 19 20
	select CEVT_R4K
	select CSRC_R4K
	select SYS_HAS_CPU_LOONGSON2E
	select DMA_NONCOHERENT
	select BOOT_ELF32
	select BOARD_SCACHE
	select HW_HAS_PCI
	select I8259
	select ISA
21
	select IRQ_MIPS_CPU
W
Wu Zhangjin 已提交
22 23 24 25 26 27
	select SYS_SUPPORTS_64BIT_KERNEL
	select SYS_SUPPORTS_LITTLE_ENDIAN
	select SYS_SUPPORTS_HIGHMEM
	select SYS_HAS_EARLY_PRINTK
	select GENERIC_ISA_DMA_SUPPORT_BROKEN
	select CPU_HAS_WB
28
	select LOONGSON_MC146818
W
Wu Zhangjin 已提交
29 30 31
	help
	  Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and
	  an FPGA northbridge
32

W
Wu Zhangjin 已提交
33
	  Lemote Fuloong(2e) mini PC have a VIA686B south bridge.
34 35 36 37

config LEMOTE_MACH2F
	bool "Lemote Loongson 2F family machines"
	select ARCH_SPARSEMEM_ENABLE
38
	select ARCH_MIGHT_HAVE_PC_PARPORT
39
	select ARCH_MIGHT_HAVE_PC_SERIO
40 41
	select BOARD_SCACHE
	select BOOT_ELF32
42
	select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
43 44
	select CPU_HAS_WB
	select CS5536
45
	select CSRC_R4K if ! MIPS_EXTERNAL_TIMER
46 47
	select DMA_NONCOHERENT
	select GENERIC_ISA_DMA_SUPPORT_BROKEN
48
	select HAVE_CLK
49 50
	select HW_HAS_PCI
	select I8259
51
	select IRQ_MIPS_CPU
52 53 54 55 56 57
	select ISA
	select SYS_HAS_CPU_LOONGSON2F
	select SYS_HAS_EARLY_PRINTK
	select SYS_SUPPORTS_64BIT_KERNEL
	select SYS_SUPPORTS_HIGHMEM
	select SYS_SUPPORTS_LITTLE_ENDIAN
58
	select LOONGSON_MC146818
59 60 61 62 63 64
	help
	  Lemote Loongson 2F family machines utilize the 2F revision of
	  Loongson processor and the AMD CS5536 south bridge.

	  These family machines include fuloong2f mini PC, yeeloong2f notebook,
	  LingLoong allinone PC and so forth.
65

66 67
config LOONGSON_MACH3X
	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 72 73 74 75 76 77 78 79 80
	select GENERIC_ISA_DMA_SUPPORT_BROKEN
	select BOOT_ELF32
	select BOARD_SCACHE
	select CSRC_R4K
	select CEVT_R4K
	select CPU_HAS_WB
	select HW_HAS_PCI
	select ISA
	select HT_PCI
	select I8259
81
	select IRQ_MIPS_CPU
82 83 84 85
	select NR_CPUS_DEFAULT_4
	select SYS_HAS_CPU_LOONGSON3
	select SYS_HAS_EARLY_PRINTK
	select SYS_SUPPORTS_SMP
86
	select SYS_SUPPORTS_HOTPLUG_CPU
87
	select SYS_SUPPORTS_NUMA
88 89 90 91 92 93
	select SYS_SUPPORTS_64BIT_KERNEL
	select SYS_SUPPORTS_HIGHMEM
	select SYS_SUPPORTS_LITTLE_ENDIAN
	select LOONGSON_MC146818
	select ZONE_DMA32
	select LEFI_FIRMWARE_INTERFACE
94
	select PHYS48_TO_HT40
95
	help
96 97
		Generic Loongson 3 family machines utilize the 3A/3B revision
		of Loongson processor and RS780/SBX00 chipset.
98
endchoice
99 100 101

config CS5536
	bool
102

103 104
config CS5536_MFGPT
	bool "CS5536 MFGPT Timer"
105
	depends on CS5536 && !HIGH_RES_TIMERS
106
	select MIPS_EXTERNAL_TIMER
107
	help
108 109
	  This option enables the mfgpt0 timer of AMD CS5536. With this timer
	  switched on you can not use high resolution timers.
110 111 112 113 114 115

	  If you want to enable the Loongson2 CPUFreq Driver, Please enable
	  this option at first, otherwise, You will get wrong system time.

	  If unsure, say Yes.

116 117 118 119 120 121 122 123 124 125 126 127
config RS780_HPET
	bool "RS780/SBX00 HPET Timer"
	depends on LOONGSON_MACH3X
	select MIPS_EXTERNAL_TIMER
	help
	  This option enables the hpet timer of AMD RS780/SBX00.

	  If you want to enable the Loongson3 CPUFreq Driver, Please enable
	  this option at first, otherwise, You will get wrong system time.

	  If unsure, say Yes.

128 129 130 131
config LOONGSON_UART_BASE
	bool
	default y
	depends on EARLY_PRINTK || SERIAL_8250
132

133 134 135 136
config SWIOTLB
	bool "Soft IOMMU Support for All-Memory DMA"
	default y
	depends on CPU_LOONGSON3
137
	select DMA_DIRECT_OPS
138 139 140
	select NEED_SG_DMA_LENGTH
	select NEED_DMA_MAP_STATE

141 142 143 144
config PHYS48_TO_HT40
	bool
	default y if CPU_LOONGSON3

145 146 147
config LOONGSON_MC146818
	bool
	default n
148

149 150 151
config LEFI_FIRMWARE_INTERFACE
	bool

152
endif # MACH_LOONGSON64