^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) if MACH_LOONGSON2EF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) choice
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) prompt "Machine Type"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) config LEMOTE_FULOONG2E
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) bool "Lemote Fuloong(2e) mini-PC"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) select ARCH_SPARSEMEM_ENABLE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) select ARCH_MIGHT_HAVE_PC_PARPORT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) select ARCH_MIGHT_HAVE_PC_SERIO
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) select CEVT_R4K
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) select CSRC_R4K
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) select SYS_HAS_CPU_LOONGSON2E
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) select DMA_NONCOHERENT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) select BOOT_ELF32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) select BOARD_SCACHE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) select FORCE_PCI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) select I8259
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) select ISA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) select IRQ_MIPS_CPU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) select SYS_SUPPORTS_64BIT_KERNEL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) select SYS_SUPPORTS_LITTLE_ENDIAN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) select SYS_SUPPORTS_HIGHMEM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) select SYS_HAS_EARLY_PRINTK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) select USE_GENERIC_EARLY_PRINTK_8250
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) select GENERIC_ISA_DMA_SUPPORT_BROKEN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) select CPU_HAS_WB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) select LOONGSON_MC146818
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) an FPGA northbridge
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) Lemote Fuloong(2e) mini PC have a VIA686B south bridge.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) config LEMOTE_MACH2F
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) bool "Lemote Loongson 2F family machines"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) select ARCH_SPARSEMEM_ENABLE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) select ARCH_MIGHT_HAVE_PC_PARPORT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) select ARCH_MIGHT_HAVE_PC_SERIO
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) select BOARD_SCACHE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) select BOOT_ELF32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) select CPU_HAS_WB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) select CS5536
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) select CSRC_R4K if ! MIPS_EXTERNAL_TIMER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) select DMA_NONCOHERENT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) select GENERIC_ISA_DMA_SUPPORT_BROKEN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) select FORCE_PCI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) select I8259
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) select IRQ_MIPS_CPU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) select ISA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) select SYS_HAS_CPU_LOONGSON2F
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) select SYS_HAS_EARLY_PRINTK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) select USE_GENERIC_EARLY_PRINTK_8250
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) select SYS_SUPPORTS_64BIT_KERNEL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) select SYS_SUPPORTS_HIGHMEM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) select SYS_SUPPORTS_LITTLE_ENDIAN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) select LOONGSON_MC146818
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) Lemote Loongson 2F family machines utilize the 2F revision of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) Loongson processor and the AMD CS5536 south bridge.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) These family machines include fuloong2f mini PC, yeeloong2f notebook,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) LingLoong allinone PC and so forth.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) endchoice
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) config CS5536
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) config CS5536_MFGPT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) bool "CS5536 MFGPT Timer"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) depends on CS5536 && !HIGH_RES_TIMERS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) select MIPS_EXTERNAL_TIMER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) This option enables the mfgpt0 timer of AMD CS5536. With this timer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) switched on you can not use high resolution timers.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) If you want to enable the Loongson2 CPUFreq Driver, Please enable
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) this option at first, otherwise, You will get wrong system time.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) If unsure, say Yes.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) config LOONGSON_UART_BASE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) default y
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) depends on EARLY_PRINTK || SERIAL_8250
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) config LOONGSON_MC146818
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) bool
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) default n
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) endif # MACH_LOONGSON2EF