xref: /linux/arch/mips/loongson64/Kconfig (revision 3369ddb62a42e8392562c86d63811ba8b0167a58)
1# SPDX-License-Identifier: GPL-2.0
2if MACH_LOONGSON64
3
4choice
5	prompt "Machine Type"
6
7config 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
12	select CEVT_R4K
13	select CSRC_R4K
14	select SYS_HAS_CPU_LOONGSON2E
15	select DMA_NONCOHERENT
16	select MIPS_DMA_DEFAULT
17	select BOOT_ELF32
18	select BOARD_SCACHE
19	select HW_HAS_PCI
20	select I8259
21	select ISA
22	select IRQ_MIPS_CPU
23	select SYS_SUPPORTS_64BIT_KERNEL
24	select SYS_SUPPORTS_LITTLE_ENDIAN
25	select SYS_SUPPORTS_HIGHMEM
26	select SYS_HAS_EARLY_PRINTK
27	select GENERIC_ISA_DMA_SUPPORT_BROKEN
28	select CPU_HAS_WB
29	select LOONGSON_MC146818
30	help
31	  Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and
32	  an FPGA northbridge
33
34	  Lemote Fuloong(2e) mini PC have a VIA686B south bridge.
35
36config LEMOTE_MACH2F
37	bool "Lemote Loongson 2F family machines"
38	select ARCH_SPARSEMEM_ENABLE
39	select ARCH_MIGHT_HAVE_PC_PARPORT
40	select ARCH_MIGHT_HAVE_PC_SERIO
41	select BOARD_SCACHE
42	select BOOT_ELF32
43	select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
44	select CPU_HAS_WB
45	select CS5536
46	select CSRC_R4K if ! MIPS_EXTERNAL_TIMER
47	select DMA_NONCOHERENT
48	select MIPS_DMA_DEFAULT
49	select GENERIC_ISA_DMA_SUPPORT_BROKEN
50	select HAVE_CLK
51	select HW_HAS_PCI
52	select I8259
53	select IRQ_MIPS_CPU
54	select ISA
55	select SYS_HAS_CPU_LOONGSON2F
56	select SYS_HAS_EARLY_PRINTK
57	select SYS_SUPPORTS_64BIT_KERNEL
58	select SYS_SUPPORTS_HIGHMEM
59	select SYS_SUPPORTS_LITTLE_ENDIAN
60	select LOONGSON_MC146818
61	help
62	  Lemote Loongson 2F family machines utilize the 2F revision of
63	  Loongson processor and the AMD CS5536 south bridge.
64
65	  These family machines include fuloong2f mini PC, yeeloong2f notebook,
66	  LingLoong allinone PC and so forth.
67
68config LOONGSON_MACH3X
69	bool "Generic Loongson 3 family machines"
70	select ARCH_SPARSEMEM_ENABLE
71	select ARCH_MIGHT_HAVE_PC_PARPORT
72	select ARCH_MIGHT_HAVE_PC_SERIO
73	select GENERIC_ISA_DMA_SUPPORT_BROKEN
74	select BOOT_ELF32
75	select BOARD_SCACHE
76	select CSRC_R4K
77	select CEVT_R4K
78	select CPU_HAS_WB
79	select HW_HAS_PCI
80	select ISA
81	select HT_PCI
82	select I8259
83	select IRQ_MIPS_CPU
84	select NR_CPUS_DEFAULT_4
85	select SYS_HAS_CPU_LOONGSON3
86	select SYS_HAS_EARLY_PRINTK
87	select SYS_SUPPORTS_SMP
88	select SYS_SUPPORTS_HOTPLUG_CPU
89	select SYS_SUPPORTS_NUMA
90	select SYS_SUPPORTS_64BIT_KERNEL
91	select SYS_SUPPORTS_HIGHMEM
92	select SYS_SUPPORTS_LITTLE_ENDIAN
93	select LOONGSON_MC146818
94	select ZONE_DMA32
95	select LEFI_FIRMWARE_INTERFACE
96	select PHYS48_TO_HT40
97	help
98		Generic Loongson 3 family machines utilize the 3A/3B revision
99		of Loongson processor and RS780/SBX00 chipset.
100endchoice
101
102config CS5536
103	bool
104
105config CS5536_MFGPT
106	bool "CS5536 MFGPT Timer"
107	depends on CS5536 && !HIGH_RES_TIMERS
108	select MIPS_EXTERNAL_TIMER
109	help
110	  This option enables the mfgpt0 timer of AMD CS5536. With this timer
111	  switched on you can not use high resolution timers.
112
113	  If you want to enable the Loongson2 CPUFreq Driver, Please enable
114	  this option at first, otherwise, You will get wrong system time.
115
116	  If unsure, say Yes.
117
118config RS780_HPET
119	bool "RS780/SBX00 HPET Timer"
120	depends on LOONGSON_MACH3X
121	select MIPS_EXTERNAL_TIMER
122	help
123	  This option enables the hpet timer of AMD RS780/SBX00.
124
125	  If you want to enable the Loongson3 CPUFreq Driver, Please enable
126	  this option at first, otherwise, You will get wrong system time.
127
128	  If unsure, say Yes.
129
130config LOONGSON_UART_BASE
131	bool
132	default y
133	depends on EARLY_PRINTK || SERIAL_8250
134
135config PHYS48_TO_HT40
136	bool
137	default y if CPU_LOONGSON3
138
139config LOONGSON_MC146818
140	bool
141	default n
142
143config LEFI_FIRMWARE_INTERFACE
144	bool
145
146endif # MACH_LOONGSON64
147