18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ciif MACH_LOONGSON2EF
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_cichoice
58c2ecf20Sopenharmony_ci	prompt "Machine Type"
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciconfig LEMOTE_FULOONG2E
88c2ecf20Sopenharmony_ci	bool "Lemote Fuloong(2e) mini-PC"
98c2ecf20Sopenharmony_ci	select ARCH_SPARSEMEM_ENABLE
108c2ecf20Sopenharmony_ci	select ARCH_MIGHT_HAVE_PC_PARPORT
118c2ecf20Sopenharmony_ci	select ARCH_MIGHT_HAVE_PC_SERIO
128c2ecf20Sopenharmony_ci	select CEVT_R4K
138c2ecf20Sopenharmony_ci	select CSRC_R4K
148c2ecf20Sopenharmony_ci	select SYS_HAS_CPU_LOONGSON2E
158c2ecf20Sopenharmony_ci	select DMA_NONCOHERENT
168c2ecf20Sopenharmony_ci	select BOOT_ELF32
178c2ecf20Sopenharmony_ci	select BOARD_SCACHE
188c2ecf20Sopenharmony_ci	select FORCE_PCI
198c2ecf20Sopenharmony_ci	select I8259
208c2ecf20Sopenharmony_ci	select ISA
218c2ecf20Sopenharmony_ci	select IRQ_MIPS_CPU
228c2ecf20Sopenharmony_ci	select SYS_SUPPORTS_64BIT_KERNEL
238c2ecf20Sopenharmony_ci	select SYS_SUPPORTS_LITTLE_ENDIAN
248c2ecf20Sopenharmony_ci	select SYS_SUPPORTS_HIGHMEM
258c2ecf20Sopenharmony_ci	select SYS_HAS_EARLY_PRINTK
268c2ecf20Sopenharmony_ci	select USE_GENERIC_EARLY_PRINTK_8250
278c2ecf20Sopenharmony_ci	select GENERIC_ISA_DMA_SUPPORT_BROKEN
288c2ecf20Sopenharmony_ci	select CPU_HAS_WB
298c2ecf20Sopenharmony_ci	select LOONGSON_MC146818
308c2ecf20Sopenharmony_ci	help
318c2ecf20Sopenharmony_ci	  Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and
328c2ecf20Sopenharmony_ci	  an FPGA northbridge
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci	  Lemote Fuloong(2e) mini PC have a VIA686B south bridge.
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ciconfig LEMOTE_MACH2F
378c2ecf20Sopenharmony_ci	bool "Lemote Loongson 2F family machines"
388c2ecf20Sopenharmony_ci	select ARCH_SPARSEMEM_ENABLE
398c2ecf20Sopenharmony_ci	select ARCH_MIGHT_HAVE_PC_PARPORT
408c2ecf20Sopenharmony_ci	select ARCH_MIGHT_HAVE_PC_SERIO
418c2ecf20Sopenharmony_ci	select BOARD_SCACHE
428c2ecf20Sopenharmony_ci	select BOOT_ELF32
438c2ecf20Sopenharmony_ci	select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
448c2ecf20Sopenharmony_ci	select CPU_HAS_WB
458c2ecf20Sopenharmony_ci	select CS5536
468c2ecf20Sopenharmony_ci	select CSRC_R4K if ! MIPS_EXTERNAL_TIMER
478c2ecf20Sopenharmony_ci	select DMA_NONCOHERENT
488c2ecf20Sopenharmony_ci	select GENERIC_ISA_DMA_SUPPORT_BROKEN
498c2ecf20Sopenharmony_ci	select FORCE_PCI
508c2ecf20Sopenharmony_ci	select I8259
518c2ecf20Sopenharmony_ci	select IRQ_MIPS_CPU
528c2ecf20Sopenharmony_ci	select ISA
538c2ecf20Sopenharmony_ci	select SYS_HAS_CPU_LOONGSON2F
548c2ecf20Sopenharmony_ci	select SYS_HAS_EARLY_PRINTK
558c2ecf20Sopenharmony_ci	select USE_GENERIC_EARLY_PRINTK_8250
568c2ecf20Sopenharmony_ci	select SYS_SUPPORTS_64BIT_KERNEL
578c2ecf20Sopenharmony_ci	select SYS_SUPPORTS_HIGHMEM
588c2ecf20Sopenharmony_ci	select SYS_SUPPORTS_LITTLE_ENDIAN
598c2ecf20Sopenharmony_ci	select LOONGSON_MC146818
608c2ecf20Sopenharmony_ci	help
618c2ecf20Sopenharmony_ci	  Lemote Loongson 2F family machines utilize the 2F revision of
628c2ecf20Sopenharmony_ci	  Loongson processor and the AMD CS5536 south bridge.
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci	  These family machines include fuloong2f mini PC, yeeloong2f notebook,
658c2ecf20Sopenharmony_ci	  LingLoong allinone PC and so forth.
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ciendchoice
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ciconfig CS5536
708c2ecf20Sopenharmony_ci	bool
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ciconfig CS5536_MFGPT
738c2ecf20Sopenharmony_ci	bool "CS5536 MFGPT Timer"
748c2ecf20Sopenharmony_ci	depends on CS5536 && !HIGH_RES_TIMERS
758c2ecf20Sopenharmony_ci	select MIPS_EXTERNAL_TIMER
768c2ecf20Sopenharmony_ci	help
778c2ecf20Sopenharmony_ci	  This option enables the mfgpt0 timer of AMD CS5536. With this timer
788c2ecf20Sopenharmony_ci	  switched on you can not use high resolution timers.
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci	  If you want to enable the Loongson2 CPUFreq Driver, Please enable
818c2ecf20Sopenharmony_ci	  this option at first, otherwise, You will get wrong system time.
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_ci	  If unsure, say Yes.
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ciconfig LOONGSON_UART_BASE
868c2ecf20Sopenharmony_ci	bool
878c2ecf20Sopenharmony_ci	default y
888c2ecf20Sopenharmony_ci	depends on EARLY_PRINTK || SERIAL_8250
898c2ecf20Sopenharmony_ci
908c2ecf20Sopenharmony_ciconfig LOONGSON_MC146818
918c2ecf20Sopenharmony_ci	bool
928c2ecf20Sopenharmony_ci	default n
938c2ecf20Sopenharmony_ci
948c2ecf20Sopenharmony_ciendif # MACH_LOONGSON2EF
95