mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 10:45:09 +07:00
f8c55dc6e8
Convert everything not overriding dma-coherence.h to the generic noncoherent ops. The new dma-noncoherent.c file duplicates a lot of the code in dma-default.c, but that file will be gone by the end of this series. Signed-off-by: Christoph Hellwig <hch@lst.de> Patchwork: https://patchwork.linux-mips.org/patch/19544/ Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: David Daney <david.daney@cavium.com> Cc: Kevin Cernekee <cernekee@gmail.com> Cc: Jiaxun Yang <jiaxun.yang@flygoat.com> Cc: Tom Bogendoerfer <tsbogend@alpha.franken.de> Cc: Huacai Chen <chenhc@lemote.com> Cc: iommu@lists.linux-foundation.org Cc: linux-mips@linux-mips.org
78 lines
1.8 KiB
Plaintext
78 lines
1.8 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
if MACH_LOONGSON32
|
|
|
|
choice
|
|
prompt "Machine Type"
|
|
|
|
config LOONGSON1_LS1B
|
|
bool "Loongson LS1B board"
|
|
select CEVT_R4K if !MIPS_EXTERNAL_TIMER
|
|
select CSRC_R4K if !MIPS_EXTERNAL_TIMER
|
|
select SYS_HAS_CPU_LOONGSON1B
|
|
select DMA_NONCOHERENT
|
|
select BOOT_ELF32
|
|
select IRQ_MIPS_CPU
|
|
select SYS_SUPPORTS_32BIT_KERNEL
|
|
select SYS_SUPPORTS_LITTLE_ENDIAN
|
|
select SYS_SUPPORTS_HIGHMEM
|
|
select SYS_SUPPORTS_MIPS16
|
|
select SYS_HAS_EARLY_PRINTK
|
|
select USE_GENERIC_EARLY_PRINTK_8250
|
|
select COMMON_CLK
|
|
|
|
config LOONGSON1_LS1C
|
|
bool "Loongson LS1C board"
|
|
select CEVT_R4K if !MIPS_EXTERNAL_TIMER
|
|
select CSRC_R4K if !MIPS_EXTERNAL_TIMER
|
|
select SYS_HAS_CPU_LOONGSON1C
|
|
select DMA_NONCOHERENT
|
|
select BOOT_ELF32
|
|
select IRQ_MIPS_CPU
|
|
select SYS_SUPPORTS_32BIT_KERNEL
|
|
select SYS_SUPPORTS_LITTLE_ENDIAN
|
|
select SYS_SUPPORTS_HIGHMEM
|
|
select SYS_SUPPORTS_MIPS16
|
|
select SYS_HAS_EARLY_PRINTK
|
|
select USE_GENERIC_EARLY_PRINTK_8250
|
|
select COMMON_CLK
|
|
endchoice
|
|
|
|
menuconfig CEVT_CSRC_LS1X
|
|
bool "Use PWM Timer for clockevent/clocksource"
|
|
select MIPS_EXTERNAL_TIMER
|
|
depends on CPU_LOONGSON1
|
|
help
|
|
This option changes the default clockevent/clocksource to PWM Timer,
|
|
and is required by Loongson1 CPUFreq support.
|
|
|
|
If unsure, say N.
|
|
|
|
choice
|
|
prompt "Select clockevent/clocksource"
|
|
depends on CEVT_CSRC_LS1X
|
|
default TIMER_USE_PWM0
|
|
|
|
config TIMER_USE_PWM0
|
|
bool "Use PWM Timer 0"
|
|
help
|
|
Use PWM Timer 0 as the default clockevent/clocksourcer.
|
|
|
|
config TIMER_USE_PWM1
|
|
bool "Use PWM Timer 1"
|
|
help
|
|
Use PWM Timer 1 as the default clockevent/clocksourcer.
|
|
|
|
config TIMER_USE_PWM2
|
|
bool "Use PWM Timer 2"
|
|
help
|
|
Use PWM Timer 2 as the default clockevent/clocksourcer.
|
|
|
|
config TIMER_USE_PWM3
|
|
bool "Use PWM Timer 3"
|
|
help
|
|
Use PWM Timer 3 as the default clockevent/clocksourcer.
|
|
|
|
endchoice
|
|
|
|
endif # MACH_LOONGSON32
|