Kconfig 3.6 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 10 11 12 13 14 15 16 17 18
	bool "Lemote Fuloong(2e) mini-PC"
	select ARCH_SPARSEMEM_ENABLE
	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
19
	select IRQ_MIPS_CPU
W
Wu Zhangjin 已提交
20 21 22 23 24 25
	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
26
	select LOONGSON_MC146818
W
Wu Zhangjin 已提交
27 28 29
	help
	  Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and
	  an FPGA northbridge
30

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

config LEMOTE_MACH2F
	bool "Lemote Loongson 2F family machines"
	select ARCH_SPARSEMEM_ENABLE
	select BOARD_SCACHE
	select BOOT_ELF32
38
	select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
39 40
	select CPU_HAS_WB
	select CS5536
41
	select CSRC_R4K if ! MIPS_EXTERNAL_TIMER
42 43
	select DMA_NONCOHERENT
	select GENERIC_ISA_DMA_SUPPORT_BROKEN
44
	select HAVE_CLK
45 46
	select HW_HAS_PCI
	select I8259
47
	select IRQ_MIPS_CPU
48 49 50 51 52 53
	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
54
	select LOONGSON_MC146818
55 56 57 58 59 60
	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.
61

62 63
config LOONGSON_MACH3X
	bool "Generic Loongson 3 family machines"
64 65 66 67 68 69 70 71 72 73 74
	select ARCH_SPARSEMEM_ENABLE
	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
75
	select IRQ_MIPS_CPU
76 77 78 79
	select NR_CPUS_DEFAULT_4
	select SYS_HAS_CPU_LOONGSON3
	select SYS_HAS_EARLY_PRINTK
	select SYS_SUPPORTS_SMP
80
	select SYS_SUPPORTS_HOTPLUG_CPU
81
	select SYS_SUPPORTS_NUMA
82 83 84 85 86 87
	select SYS_SUPPORTS_64BIT_KERNEL
	select SYS_SUPPORTS_HIGHMEM
	select SYS_SUPPORTS_LITTLE_ENDIAN
	select LOONGSON_MC146818
	select ZONE_DMA32
	select LEFI_FIRMWARE_INTERFACE
88
	select PHYS48_TO_HT40
89
	help
90 91
		Generic Loongson 3 family machines utilize the 3A/3B revision
		of Loongson processor and RS780/SBX00 chipset.
92
endchoice
93 94 95

config CS5536
	bool
96

97 98
config CS5536_MFGPT
	bool "CS5536 MFGPT Timer"
99
	depends on CS5536 && !HIGH_RES_TIMERS
100
	select MIPS_EXTERNAL_TIMER
101
	help
102 103
	  This option enables the mfgpt0 timer of AMD CS5536. With this timer
	  switched on you can not use high resolution timers.
104 105 106 107 108 109

	  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.

110 111 112 113 114 115 116 117 118 119 120 121
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.

122 123 124 125
config LOONGSON_UART_BASE
	bool
	default y
	depends on EARLY_PRINTK || SERIAL_8250
126

127 128 129 130 131 132 133 134 135 136
config IOMMU_HELPER
	bool

config NEED_SG_DMA_LENGTH
	bool

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

142 143 144 145
config PHYS48_TO_HT40
	bool
	default y if CPU_LOONGSON3

146 147 148
config LOONGSON_MC146818
	bool
	default n
149

150 151 152
config LEFI_FIRMWARE_INTERFACE
	bool

153
endif # MACH_LOONGSON64