2015-04-21 09:00:35 +07:00
|
|
|
if MACH_LOONGSON64
|
2011-02-07 09:31:36 +07:00
|
|
|
|
2009-07-02 22:26:45 +07:00
|
|
|
choice
|
2009-10-16 13:17:14 +07:00
|
|
|
prompt "Machine Type"
|
2009-07-02 22:26:45 +07:00
|
|
|
|
|
|
|
config LEMOTE_FULOONG2E
|
2009-10-16 13:17:14 +07:00
|
|
|
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
|
2015-05-26 23:20:06 +07:00
|
|
|
select IRQ_MIPS_CPU
|
2009-10-16 13:17:14 +07:00
|
|
|
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_ISA_DMA_SUPPORT_BROKEN
|
|
|
|
select CPU_HAS_WB
|
2010-06-02 05:39:54 +07:00
|
|
|
select LOONGSON_MC146818
|
2009-10-16 13:17:14 +07:00
|
|
|
help
|
|
|
|
Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and
|
|
|
|
an FPGA northbridge
|
2009-07-02 22:26:45 +07:00
|
|
|
|
2009-10-16 13:17:14 +07:00
|
|
|
Lemote Fuloong(2e) mini PC have a VIA686B south bridge.
|
2009-11-09 23:06:10 +07:00
|
|
|
|
|
|
|
config LEMOTE_MACH2F
|
|
|
|
bool "Lemote Loongson 2F family machines"
|
|
|
|
select ARCH_SPARSEMEM_ENABLE
|
|
|
|
select BOARD_SCACHE
|
|
|
|
select BOOT_ELF32
|
2009-11-17 00:32:59 +07:00
|
|
|
select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
|
2009-11-09 23:06:10 +07:00
|
|
|
select CPU_HAS_WB
|
|
|
|
select CS5536
|
2009-11-17 00:32:59 +07:00
|
|
|
select CSRC_R4K if ! MIPS_EXTERNAL_TIMER
|
2009-11-09 23:06:10 +07:00
|
|
|
select DMA_NONCOHERENT
|
|
|
|
select GENERIC_ISA_DMA_SUPPORT_BROKEN
|
2012-08-01 22:15:32 +07:00
|
|
|
select HAVE_CLK
|
2009-11-09 23:06:10 +07:00
|
|
|
select HW_HAS_PCI
|
|
|
|
select I8259
|
2015-05-26 23:20:06 +07:00
|
|
|
select IRQ_MIPS_CPU
|
2009-11-09 23:06:10 +07:00
|
|
|
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
|
2010-06-02 05:39:54 +07:00
|
|
|
select LOONGSON_MC146818
|
2009-11-09 23:06:10 +07:00
|
|
|
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.
|
2014-03-21 17:44:07 +07:00
|
|
|
|
2014-06-26 10:41:32 +07:00
|
|
|
config LOONGSON_MACH3X
|
|
|
|
bool "Generic Loongson 3 family machines"
|
2014-03-21 17:44:07 +07:00
|
|
|
select ARCH_SPARSEMEM_ENABLE
|
|
|
|
select GENERIC_ISA_DMA_SUPPORT_BROKEN
|
|
|
|
select BOOT_ELF32
|
|
|
|
select BOARD_SCACHE
|
|
|
|
select CSRC_R4K
|
|
|
|
select CEVT_R4K
|
|
|
|
select CPU_HAS_WB
|
|
|
|
select HW_HAS_PCI
|
|
|
|
select ISA
|
|
|
|
select HT_PCI
|
|
|
|
select I8259
|
2015-05-26 23:20:06 +07:00
|
|
|
select IRQ_MIPS_CPU
|
2014-03-21 17:44:07 +07:00
|
|
|
select NR_CPUS_DEFAULT_4
|
|
|
|
select SYS_HAS_CPU_LOONGSON3
|
|
|
|
select SYS_HAS_EARLY_PRINTK
|
|
|
|
select SYS_SUPPORTS_SMP
|
2014-03-21 17:44:09 +07:00
|
|
|
select SYS_SUPPORTS_HOTPLUG_CPU
|
2014-06-26 10:41:28 +07:00
|
|
|
select SYS_SUPPORTS_NUMA
|
2014-03-21 17:44:07 +07:00
|
|
|
select SYS_SUPPORTS_64BIT_KERNEL
|
|
|
|
select SYS_SUPPORTS_HIGHMEM
|
|
|
|
select SYS_SUPPORTS_LITTLE_ENDIAN
|
|
|
|
select LOONGSON_MC146818
|
|
|
|
select ZONE_DMA32
|
|
|
|
select LEFI_FIRMWARE_INTERFACE
|
2014-11-04 13:13:24 +07:00
|
|
|
select PHYS48_TO_HT40
|
2014-03-21 17:44:07 +07:00
|
|
|
help
|
2014-06-26 10:41:32 +07:00
|
|
|
Generic Loongson 3 family machines utilize the 3A/3B revision
|
|
|
|
of Loongson processor and RS780/SBX00 chipset.
|
2009-07-02 22:26:45 +07:00
|
|
|
endchoice
|
2009-11-09 23:06:12 +07:00
|
|
|
|
|
|
|
config CS5536
|
|
|
|
bool
|
MIPS: Loongson 2F: Add suspend support framework
This patch add basic suspend support for loongson2f family machines,
loongson2f have a specific feature: when we set it's frequency to ZERO,
it will go into a wait mode, and then can be waked up by the external
interrupt. so, if we setup suitable interrupts before putting it into
wait mode, we will be able wake it up whenever we want via sending the
relative interrupts to it.
These interrupts are board-specific, Yeeloong2F use the keyboard
interrupt and SCI interrupt, but LingLoong and Fuloong2F use the
interrupts connected to the processors directly. and BTW: some old
LingLoong and FuLoong2F have no such interrupts connected, so, there is
no way to wake them up from suspend mode. and therefore, please do not
enable the kernel support for them.
The board-specific support will be added in the coming patches.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: yanh@lemote.com
Cc: huhb@lemote.com
Cc: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: Len Brown <len.brown@intel.com>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: linux-pm@lists.linux-foundation.org
Patchwork: http://patchwork.linux-mips.org/patch/629/
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2009-11-11 13:57:05 +07:00
|
|
|
|
2009-11-17 00:32:57 +07:00
|
|
|
config CS5536_MFGPT
|
|
|
|
bool "CS5536 MFGPT Timer"
|
2014-05-13 22:07:05 +07:00
|
|
|
depends on CS5536 && !HIGH_RES_TIMERS
|
2009-11-17 00:32:59 +07:00
|
|
|
select MIPS_EXTERNAL_TIMER
|
2009-11-17 00:32:57 +07:00
|
|
|
help
|
2014-05-13 22:07:05 +07:00
|
|
|
This option enables the mfgpt0 timer of AMD CS5536. With this timer
|
|
|
|
switched on you can not use high resolution timers.
|
2009-11-17 00:32:57 +07:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2014-11-04 13:15:31 +07:00
|
|
|
config RS780_HPET
|
|
|
|
bool "RS780/SBX00 HPET Timer"
|
|
|
|
depends on LOONGSON_MACH3X
|
|
|
|
select MIPS_EXTERNAL_TIMER
|
|
|
|
help
|
|
|
|
This option enables the hpet timer of AMD RS780/SBX00.
|
|
|
|
|
|
|
|
If you want to enable the Loongson3 CPUFreq Driver, Please enable
|
|
|
|
this option at first, otherwise, You will get wrong system time.
|
|
|
|
|
|
|
|
If unsure, say Yes.
|
|
|
|
|
2009-11-28 13:21:50 +07:00
|
|
|
config LOONGSON_UART_BASE
|
|
|
|
bool
|
|
|
|
default y
|
|
|
|
depends on EARLY_PRINTK || SERIAL_8250
|
2010-06-02 05:39:54 +07:00
|
|
|
|
2014-03-21 17:44:07 +07:00
|
|
|
config IOMMU_HELPER
|
|
|
|
bool
|
|
|
|
|
|
|
|
config NEED_SG_DMA_LENGTH
|
|
|
|
bool
|
|
|
|
|
|
|
|
config SWIOTLB
|
|
|
|
bool "Soft IOMMU Support for All-Memory DMA"
|
|
|
|
default y
|
|
|
|
depends on CPU_LOONGSON3
|
|
|
|
select IOMMU_HELPER
|
|
|
|
select NEED_SG_DMA_LENGTH
|
|
|
|
select NEED_DMA_MAP_STATE
|
|
|
|
|
2014-11-04 13:13:24 +07:00
|
|
|
config PHYS48_TO_HT40
|
|
|
|
bool
|
|
|
|
default y if CPU_LOONGSON3
|
|
|
|
|
2010-06-02 05:39:54 +07:00
|
|
|
config LOONGSON_MC146818
|
|
|
|
bool
|
|
|
|
default n
|
2011-02-07 09:31:36 +07:00
|
|
|
|
2014-03-21 17:44:07 +07:00
|
|
|
config LEFI_FIRMWARE_INTERFACE
|
|
|
|
bool
|
|
|
|
|
2015-04-21 09:00:35 +07:00
|
|
|
endif # MACH_LOONGSON64
|