0001 # SPDX-License-Identifier: GPL-2.0
0002 if MACH_LOONGSON2EF
0003
0004 choice
0005 prompt "Machine Type"
0006
0007 config LEMOTE_FULOONG2E
0008 bool "Lemote Fuloong(2e) mini-PC"
0009 select ARCH_SPARSEMEM_ENABLE
0010 select ARCH_MIGHT_HAVE_PC_PARPORT
0011 select ARCH_MIGHT_HAVE_PC_SERIO
0012 select CEVT_R4K
0013 select CSRC_R4K
0014 select SYS_HAS_CPU_LOONGSON2E
0015 select DMA_NONCOHERENT
0016 select BOOT_ELF32
0017 select BOARD_SCACHE
0018 select FORCE_PCI
0019 select I8259
0020 select ISA
0021 select IRQ_MIPS_CPU
0022 select SYS_SUPPORTS_64BIT_KERNEL
0023 select SYS_SUPPORTS_LITTLE_ENDIAN
0024 select SYS_SUPPORTS_HIGHMEM
0025 select SYS_HAS_EARLY_PRINTK
0026 select USE_GENERIC_EARLY_PRINTK_8250
0027 select GENERIC_ISA_DMA_SUPPORT_BROKEN
0028 select CPU_HAS_WB
0029 select LOONGSON_MC146818
0030 help
0031 Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and
0032 an FPGA northbridge
0033
0034 Lemote Fuloong(2e) mini PC have a VIA686B south bridge.
0035
0036 config LEMOTE_MACH2F
0037 bool "Lemote Loongson 2F family machines"
0038 select ARCH_SPARSEMEM_ENABLE
0039 select ARCH_MIGHT_HAVE_PC_PARPORT
0040 select ARCH_MIGHT_HAVE_PC_SERIO
0041 select BOARD_SCACHE
0042 select BOOT_ELF32
0043 select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
0044 select CPU_HAS_WB
0045 select CS5536
0046 select CSRC_R4K if ! MIPS_EXTERNAL_TIMER
0047 select DMA_NONCOHERENT
0048 select GENERIC_ISA_DMA_SUPPORT_BROKEN
0049 select FORCE_PCI
0050 select I8259
0051 select IRQ_MIPS_CPU
0052 select ISA
0053 select SYS_HAS_CPU_LOONGSON2F
0054 select SYS_HAS_EARLY_PRINTK
0055 select USE_GENERIC_EARLY_PRINTK_8250
0056 select SYS_SUPPORTS_64BIT_KERNEL
0057 select SYS_SUPPORTS_HIGHMEM
0058 select SYS_SUPPORTS_LITTLE_ENDIAN
0059 select LOONGSON_MC146818
0060 help
0061 Lemote Loongson 2F family machines utilize the 2F revision of
0062 Loongson processor and the AMD CS5536 south bridge.
0063
0064 These family machines include fuloong2f mini PC, yeeloong2f notebook,
0065 LingLoong allinone PC and so forth.
0066
0067 endchoice
0068
0069 config CS5536
0070 bool
0071
0072 config CS5536_MFGPT
0073 bool "CS5536 MFGPT Timer"
0074 depends on CS5536 && !HIGH_RES_TIMERS
0075 select MIPS_EXTERNAL_TIMER
0076 help
0077 This option enables the mfgpt0 timer of AMD CS5536. With this timer
0078 switched on you can not use high resolution timers.
0079
0080 If you want to enable the Loongson2 CPUFreq Driver, Please enable
0081 this option at first, otherwise, You will get wrong system time.
0082
0083 If unsure, say Yes.
0084
0085 config LOONGSON_UART_BASE
0086 bool
0087 default y
0088 depends on EARLY_PRINTK || SERIAL_8250
0089
0090 config LOONGSON_MC146818
0091 bool
0092 default n
0093
0094 endif # MACH_LOONGSON2EF