choice
	prompt "Machine Type"
	depends on MACH_LOONGSON3

config LOONGSON3_EVB
	bool "Loongson3 evaluate board based on HT interconnection"
	select ARCH_SPARSEMEM_ENABLE
	select CEVT_R4K
	select CSRC_R4K
	select BOOT_ELF32
	select BOARD_SCACHE
	select I8259
	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 SYS_HAS_CPU_LOONGSON3
	select HW_HAS_PCI
	select CPU_UART
	select ARCH_DMA_ADDR_T_64BIT
	select SYS_SUPPORTS_NUMA
	select HAVE_DMA_ATTRS
	select PHYS48_TO_HT40
	select ZONE_DMA32 if 64BIT
	select SYNC_R4K
	select HAVE_STD_PC_SERIAL_PORT
	#select DMA_NONCOHERENT
	select SYS_SUPPORTS_PHASE_LOCK
	#select CPU_HAS_WB
	select LS2H_SB
	select ISA
	select SYS_SUPPORTS_HOTPLUG_CPU
	select ARCH_SUPPORTS_MSI
        select HAVE_STD_PC_SERIAL_PORT
	select OF
	select OF_EARLY_FLATTREE
	select IRQ_DOMAIN
	help
	  Loongson3 HT Board is a series of EVB with chipset connect with HT.
endchoice

config HT_PCI
	bool "Support for using HT PCI"
	select PCI_DOMAINS
	select PCI
	help
	  Loongson3 HT PCI devices

config LOONGSON_PCI
	bool "Support for loongson PCI"
	select PCI_DOMAINS
	select PCI
	help
	  Loongson3 local pci

config LS7A_MSI_SUPPORT
	bool "LS7A MSI Support"
	depends on MACH_LOONGSON3
	help
	  This option enables the MSI of LS7A.

	  If unsure, say Yes.

config DMA_COHERENT
	bool
	depends on HT_PCI

config ARCH_DMA_ADDR_T_64BIT
	bool

config CPU_UART
	bool

config LOONGSON_BIGMEM
        bool "Soft IOMMU Support for Big Memory (>2G)"
	depends on CPU_LOONGSON3
	select SWIOTLB

config IOMMU_HELPER
        bool

config NEED_SG_DMA_LENGTH
        bool

config SWIOTLB
        bool
        select IOMMU_HELPER
        select NEED_SG_DMA_LENGTH
        select NEED_DMA_MAP_STATE

config NEED_DMA_MAP_STATE
    bool

config PHYS48_TO_HT40
	bool

config PHASE_LOCK
	bool "Loongson3 Hierarchical Lock Support"
	depends on SYS_SUPPORTS_PHASE_LOCK
	help
	  Say Y to compile the kernel to support hierarchical lock (PHASE_LOCK).
	  This option improves performance on systems with more than two nodes.

config SYS_SUPPORTS_PHASE_LOCK
	bool

config BMC_MANAGEMENT
       bool "enable external BMC poweroff/reboot operation"
       depends on CPU_LOONGSON3
       default n

config CPU_HAS_WB
	bool

config LS2H_SB
	bool

config RS780_HPET
	bool "RS780/SBX00 HPET Timer"
	depends on LOONGSON3_EVB
	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.

config LOONGSON_DMA_NONCOHERENT
	bool "Loongson dma noncoherent"
	select DMA_NONCOHERENT
	default n

source drivers/pci/pcie/Kconfig
