mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 03:21:32 +00:00
c3d8d85019
This patchs uses a loongson_uart_base variable instead of the uart_base[] array and adds a new kernel option to avoid to compile uart_base.c all the time, which will save a little bit of memory for us. Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> Cc: linux-mips@linux-mips.org http://patchwork.linux-mips.org/patch/727/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
86 lines
2.1 KiB
Plaintext
86 lines
2.1 KiB
Plaintext
choice
|
|
prompt "Machine Type"
|
|
depends on MACH_LOONGSON
|
|
|
|
config LEMOTE_FULOONG2E
|
|
bool "Lemote Fuloong(2e) mini-PC"
|
|
select ARCH_SPARSEMEM_ENABLE
|
|
select CEVT_R4K
|
|
select CSRC_R4K
|
|
select SYS_HAS_CPU_LOONGSON2E
|
|
select DMA_NONCOHERENT
|
|
select BOOT_ELF32
|
|
select BOARD_SCACHE
|
|
select HW_HAS_PCI
|
|
select I8259
|
|
select ISA
|
|
select IRQ_CPU
|
|
select SYS_SUPPORTS_32BIT_KERNEL
|
|
select SYS_SUPPORTS_64BIT_KERNEL
|
|
select SYS_SUPPORTS_LITTLE_ENDIAN
|
|
select SYS_SUPPORTS_HIGHMEM
|
|
select SYS_HAS_EARLY_PRINTK
|
|
select GENERIC_HARDIRQS_NO__DO_IRQ
|
|
select GENERIC_ISA_DMA_SUPPORT_BROKEN
|
|
select CPU_HAS_WB
|
|
help
|
|
Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and
|
|
an FPGA northbridge
|
|
|
|
Lemote Fuloong(2e) mini PC have a VIA686B south bridge.
|
|
|
|
config LEMOTE_MACH2F
|
|
bool "Lemote Loongson 2F family machines"
|
|
select ARCH_SPARSEMEM_ENABLE
|
|
select BOARD_SCACHE
|
|
select BOOT_ELF32
|
|
select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
|
|
select CPU_HAS_WB
|
|
select CS5536
|
|
select CSRC_R4K if ! MIPS_EXTERNAL_TIMER
|
|
select DMA_NONCOHERENT
|
|
select GENERIC_HARDIRQS_NO__DO_IRQ
|
|
select GENERIC_ISA_DMA_SUPPORT_BROKEN
|
|
select HW_HAS_PCI
|
|
select I8259
|
|
select IRQ_CPU
|
|
select ISA
|
|
select SYS_HAS_CPU_LOONGSON2F
|
|
select SYS_HAS_EARLY_PRINTK
|
|
select SYS_SUPPORTS_32BIT_KERNEL
|
|
select SYS_SUPPORTS_64BIT_KERNEL
|
|
select SYS_SUPPORTS_HIGHMEM
|
|
select SYS_SUPPORTS_LITTLE_ENDIAN
|
|
help
|
|
Lemote Loongson 2F family machines utilize the 2F revision of
|
|
Loongson processor and the AMD CS5536 south bridge.
|
|
|
|
These family machines include fuloong2f mini PC, yeeloong2f notebook,
|
|
LingLoong allinone PC and so forth.
|
|
endchoice
|
|
|
|
config CS5536
|
|
bool
|
|
|
|
config CS5536_MFGPT
|
|
bool "CS5536 MFGPT Timer"
|
|
depends on CS5536
|
|
select MIPS_EXTERNAL_TIMER
|
|
help
|
|
This option enables the mfgpt0 timer of AMD CS5536.
|
|
|
|
If you want to enable the Loongson2 CPUFreq Driver, Please enable
|
|
this option at first, otherwise, You will get wrong system time.
|
|
|
|
If unsure, say Yes.
|
|
|
|
config LOONGSON_SUSPEND
|
|
bool
|
|
default y
|
|
depends on CPU_SUPPORTS_CPUFREQ && SUSPEND
|
|
|
|
config LOONGSON_UART_BASE
|
|
bool
|
|
default y
|
|
depends on EARLY_PRINTK || SERIAL_8250
|