Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

if CONFIG_MACH_LOONGSON64

choice
	prompt "Machine Type"

config CONFIG_LEMOTE_FULOONG2E
	bool "Lemote Fuloong(2e) mini-PC"
	select CONFIG_ARCH_SPARSEMEM_ENABLE
	select CONFIG_CEVT_R4K
	select CONFIG_CSRC_R4K
	select CONFIG_SYS_HAS_CPU_LOONGSON2E
	select CONFIG_DMA_NONCOHERENT
	select CONFIG_BOOT_ELF32
	select CONFIG_BOARD_SCACHE
	select CONFIG_HW_HAS_PCI
	select CONFIG_I8259
	select CONFIG_ISA
	select CONFIG_IRQ_MIPS_CPU
	select CONFIG_SYS_SUPPORTS_32BIT_KERNEL
	select CONFIG_SYS_SUPPORTS_64BIT_KERNEL
	select CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN
	select CONFIG_SYS_SUPPORTS_HIGHMEM
	select CONFIG_SYS_HAS_EARLY_PRINTK
	select CONFIG_GENERIC_ISA_DMA_SUPPORT_BROKEN
	select CONFIG_CPU_HAS_WB
	select CONFIG_LOONGSON_MC146818
	help
	  Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and
	  an CONFIG_FPGA northbridge

	  Lemote Fuloong(2e) mini PC have a VIA686B south bridge.

config CONFIG_LEMOTE_MACH2F
	bool "Lemote Loongson 2F family machines"
	select CONFIG_ARCH_SPARSEMEM_ENABLE
	select CONFIG_BOARD_SCACHE
	select CONFIG_BOOT_ELF32
	select CONFIG_CEVT_R4K if ! CONFIG_MIPS_EXTERNAL_TIMER
	select CONFIG_CPU_HAS_WB
	select CONFIG_CS5536
	select CONFIG_CSRC_R4K if ! CONFIG_MIPS_EXTERNAL_TIMER
	select CONFIG_DMA_NONCOHERENT
	select CONFIG_GENERIC_ISA_DMA_SUPPORT_BROKEN
	select CONFIG_HAVE_CLK
	select CONFIG_HW_HAS_PCI
	select CONFIG_I8259
	select CONFIG_IRQ_MIPS_CPU
	select CONFIG_ISA
	select CONFIG_SYS_HAS_CPU_LOONGSON2F
	select CONFIG_SYS_HAS_EARLY_PRINTK
	select CONFIG_SYS_SUPPORTS_32BIT_KERNEL
	select CONFIG_SYS_SUPPORTS_64BIT_KERNEL
	select CONFIG_SYS_SUPPORTS_HIGHMEM
	select CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN
	select CONFIG_LOONGSON_MC146818
	help
	  Lemote Loongson 2F family machines utilize the 2F revision of
	  Loongson processor and the AMD CONFIG_CS5536 south bridge.

	  These family machines include fuloong2f mini PC, yeeloong2f notebook,
	  LingLoong allinone PC and so forth.

config CONFIG_LOONGSON_MACH3X
	bool "Generic Loongson 3 family machines"
	select CONFIG_ARCH_SPARSEMEM_ENABLE
	select CONFIG_GENERIC_ISA_DMA_SUPPORT_BROKEN
	select CONFIG_BOOT_ELF32
	select CONFIG_BOARD_SCACHE
	select CONFIG_CSRC_R4K
	select CONFIG_CEVT_R4K
	select CONFIG_CPU_HAS_WB
	select CONFIG_HW_HAS_PCI
	select CONFIG_ISA
	select CONFIG_HT_PCI
	select CONFIG_I8259
	select CONFIG_IRQ_MIPS_CPU
	select CONFIG_NR_CPUS_DEFAULT_4
	select CONFIG_SYS_HAS_CPU_LOONGSON3
	select CONFIG_SYS_HAS_EARLY_PRINTK
	select CONFIG_SYS_SUPPORTS_SMP
	select CONFIG_SYS_SUPPORTS_HOTPLUG_CPU
	select CONFIG_SYS_SUPPORTS_NUMA
	select CONFIG_SYS_SUPPORTS_64BIT_KERNEL
	select CONFIG_SYS_SUPPORTS_HIGHMEM
	select CONFIG_SYS_SUPPORTS_LITTLE_ENDIAN
	select CONFIG_LOONGSON_MC146818
	select CONFIG_ZONE_DMA32
	select CONFIG_LEFI_FIRMWARE_INTERFACE
	select CONFIG_PHYS48_TO_HT40
	help
		Generic Loongson 3 family machines utilize the 3A/3B revision
		of Loongson processor and RS780/SBX00 chipset.
endchoice

config CONFIG_CS5536
	bool

config CONFIG_CS5536_MFGPT
	bool "CS5536 MFGPT Timer"
	depends on CONFIG_CS5536 && !CONFIG_HIGH_RES_TIMERS
	select CONFIG_MIPS_EXTERNAL_TIMER
	help
	  This option enables the mfgpt0 timer of AMD CONFIG_CS5536. With this timer
	  switched on you can not use high resolution timers.

	  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 CONFIG_RS780_HPET
	bool "RS780/SBX00 HPET Timer"
	depends on CONFIG_LOONGSON_MACH3X
	select CONFIG_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 CONFIG_LOONGSON_UART_BASE
	bool
	default y
	depends on CONFIG_EARLY_PRINTK || CONFIG_SERIAL_8250

config CONFIG_IOMMU_HELPER
	bool

config CONFIG_NEED_SG_DMA_LENGTH
	bool

config CONFIG_SWIOTLB
	bool "Soft IOMMU Support for All-Memory DMA"
	default y
	depends on CONFIG_CPU_LOONGSON3
	select CONFIG_IOMMU_HELPER
	select CONFIG_NEED_SG_DMA_LENGTH
	select CONFIG_NEED_DMA_MAP_STATE

config CONFIG_PHYS48_TO_HT40
	bool
	default y if CONFIG_CPU_LOONGSON3

config CONFIG_LOONGSON_MC146818
	bool
	default n

config CONFIG_LEFI_FIRMWARE_INTERFACE
	bool

endif # CONFIG_MACH_LOONGSON64