162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ciif MACH_LOONGSON2EF 362306a36Sopenharmony_ci 462306a36Sopenharmony_cichoice 562306a36Sopenharmony_ci prompt "Machine Type" 662306a36Sopenharmony_ci 762306a36Sopenharmony_ciconfig LEMOTE_FULOONG2E 862306a36Sopenharmony_ci bool "Lemote Fuloong(2e) mini-PC" 962306a36Sopenharmony_ci select ARCH_SPARSEMEM_ENABLE 1062306a36Sopenharmony_ci select ARCH_HAS_PHYS_TO_DMA 1162306a36Sopenharmony_ci select ARCH_MIGHT_HAVE_PC_PARPORT 1262306a36Sopenharmony_ci select ARCH_MIGHT_HAVE_PC_SERIO 1362306a36Sopenharmony_ci select CEVT_R4K 1462306a36Sopenharmony_ci select CSRC_R4K 1562306a36Sopenharmony_ci select SYS_HAS_CPU_LOONGSON2E 1662306a36Sopenharmony_ci select DMA_NONCOHERENT 1762306a36Sopenharmony_ci select BOOT_ELF32 1862306a36Sopenharmony_ci select BOARD_SCACHE 1962306a36Sopenharmony_ci select FORCE_PCI 2062306a36Sopenharmony_ci select I8259 2162306a36Sopenharmony_ci select ISA 2262306a36Sopenharmony_ci select IRQ_MIPS_CPU 2362306a36Sopenharmony_ci select SYS_SUPPORTS_64BIT_KERNEL 2462306a36Sopenharmony_ci select SYS_SUPPORTS_LITTLE_ENDIAN 2562306a36Sopenharmony_ci select SYS_SUPPORTS_HIGHMEM 2662306a36Sopenharmony_ci select SYS_HAS_EARLY_PRINTK 2762306a36Sopenharmony_ci select USE_GENERIC_EARLY_PRINTK_8250 2862306a36Sopenharmony_ci select GENERIC_ISA_DMA_SUPPORT_BROKEN 2962306a36Sopenharmony_ci select CPU_HAS_WB 3062306a36Sopenharmony_ci select LOONGSON_MC146818 3162306a36Sopenharmony_ci help 3262306a36Sopenharmony_ci Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and 3362306a36Sopenharmony_ci an FPGA northbridge 3462306a36Sopenharmony_ci 3562306a36Sopenharmony_ci Lemote Fuloong(2e) mini PC have a VIA686B south bridge. 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ciconfig LEMOTE_MACH2F 3862306a36Sopenharmony_ci bool "Lemote Loongson 2F family machines" 3962306a36Sopenharmony_ci select ARCH_SPARSEMEM_ENABLE 4062306a36Sopenharmony_ci select ARCH_HAS_PHYS_TO_DMA 4162306a36Sopenharmony_ci select ARCH_MIGHT_HAVE_PC_PARPORT 4262306a36Sopenharmony_ci select ARCH_MIGHT_HAVE_PC_SERIO 4362306a36Sopenharmony_ci select BOARD_SCACHE 4462306a36Sopenharmony_ci select BOOT_ELF32 4562306a36Sopenharmony_ci select CEVT_R4K if ! MIPS_EXTERNAL_TIMER 4662306a36Sopenharmony_ci select CPU_HAS_WB 4762306a36Sopenharmony_ci select CS5536 4862306a36Sopenharmony_ci select CSRC_R4K if ! MIPS_EXTERNAL_TIMER 4962306a36Sopenharmony_ci select DMA_NONCOHERENT 5062306a36Sopenharmony_ci select GENERIC_ISA_DMA_SUPPORT_BROKEN 5162306a36Sopenharmony_ci select GPIOLIB 5262306a36Sopenharmony_ci select FORCE_PCI 5362306a36Sopenharmony_ci select I8259 5462306a36Sopenharmony_ci select IRQ_MIPS_CPU 5562306a36Sopenharmony_ci select ISA 5662306a36Sopenharmony_ci select SYS_HAS_CPU_LOONGSON2F 5762306a36Sopenharmony_ci select SYS_HAS_EARLY_PRINTK 5862306a36Sopenharmony_ci select USE_GENERIC_EARLY_PRINTK_8250 5962306a36Sopenharmony_ci select SYS_SUPPORTS_64BIT_KERNEL 6062306a36Sopenharmony_ci select SYS_SUPPORTS_HIGHMEM 6162306a36Sopenharmony_ci select SYS_SUPPORTS_LITTLE_ENDIAN 6262306a36Sopenharmony_ci select LOONGSON_MC146818 6362306a36Sopenharmony_ci help 6462306a36Sopenharmony_ci Lemote Loongson 2F family machines utilize the 2F revision of 6562306a36Sopenharmony_ci Loongson processor and the AMD CS5536 south bridge. 6662306a36Sopenharmony_ci 6762306a36Sopenharmony_ci These family machines include fuloong2f mini PC, yeeloong2f notebook, 6862306a36Sopenharmony_ci LingLoong allinone PC and so forth. 6962306a36Sopenharmony_ci 7062306a36Sopenharmony_ciendchoice 7162306a36Sopenharmony_ci 7262306a36Sopenharmony_ciconfig CS5536 7362306a36Sopenharmony_ci bool 7462306a36Sopenharmony_ci 7562306a36Sopenharmony_ciconfig CS5536_MFGPT 7662306a36Sopenharmony_ci bool "CS5536 MFGPT Timer" 7762306a36Sopenharmony_ci depends on CS5536 && !HIGH_RES_TIMERS 7862306a36Sopenharmony_ci select MIPS_EXTERNAL_TIMER 7962306a36Sopenharmony_ci help 8062306a36Sopenharmony_ci This option enables the mfgpt0 timer of AMD CS5536. With this timer 8162306a36Sopenharmony_ci switched on you can not use high resolution timers. 8262306a36Sopenharmony_ci 8362306a36Sopenharmony_ci If you want to enable the Loongson2 CPUFreq Driver, Please enable 8462306a36Sopenharmony_ci this option at first, otherwise, You will get wrong system time. 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_ci If unsure, say Yes. 8762306a36Sopenharmony_ci 8862306a36Sopenharmony_ciconfig LOONGSON_UART_BASE 8962306a36Sopenharmony_ci bool 9062306a36Sopenharmony_ci default y 9162306a36Sopenharmony_ci depends on EARLY_PRINTK || SERIAL_8250 9262306a36Sopenharmony_ci 9362306a36Sopenharmony_ciconfig LOONGSON_MC146818 9462306a36Sopenharmony_ci bool 9562306a36Sopenharmony_ci default n 9662306a36Sopenharmony_ci 9762306a36Sopenharmony_ciendif # MACH_LOONGSON2EF 98