summaryrefslogtreecommitdiffstats
path: root/arch/sandbox
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2024-01-10 17:01:04 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-01-11 15:11:02 +0100
commita16e16575ae797e33f1a499b5f6e28f6cf6c3527 (patch)
tree38cac3cec23dd716b7bc3c593a9fad93ddc49694 /arch/sandbox
parent6012c3867777e9e6d6b14d0117f8b37e2b860642 (diff)
downloadbarebox-a16e16575ae797e33f1a499b5f6e28f6cf6c3527.tar.gz
barebox-a16e16575ae797e33f1a499b5f6e28f6cf6c3527.tar.xz
dma: select ARCH_DMA_DEFAULT_COHERENT for x86 and sandbox
Linux only considers the value of CONFIG_ARCH_DMA_DEFAULT_COHERENT if the architecture also defines either of: - CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE - CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU - CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU_ALL We don't have those in barebox and also have less architectures to support, so we'll just select ARCH_DMA_DEFAULT_COHERENT from all architectures where this applies to: x86, sandbox and RISC-V. RISC-V already selects it, so we add it to the other two. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20240110160112.4134162-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sandbox/Kconfig b/arch/sandbox/Kconfig
index 136a97b1ad..3419b6e4f6 100644
--- a/arch/sandbox/Kconfig
+++ b/arch/sandbox/Kconfig
@@ -18,6 +18,7 @@ config SANDBOX
select ARCH_HAS_SJLJ
select ARCH_HAS_CTRLC
select HAS_DEBUG_LL
+ select ARCH_DMA_DEFAULT_COHERENT
default y
config ARCH_TEXT_BASE