diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2024-01-10 17:01:04 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-01-11 15:11:02 +0100 |
commit | a16e16575ae797e33f1a499b5f6e28f6cf6c3527 (patch) | |
tree | 38cac3cec23dd716b7bc3c593a9fad93ddc49694 /arch/x86/Kconfig | |
parent | 6012c3867777e9e6d6b14d0117f8b37e2b860642 (diff) | |
download | barebox-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/x86/Kconfig')
-rw-r--r-- | arch/x86/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index bd6a94bd0b..b982ea32cb 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -5,6 +5,7 @@ config X86 select HAS_KALLSYMS select HAS_DMA select GENERIC_FIND_NEXT_BIT + select ARCH_DMA_DEFAULT_COHERENT default y config ARCH_TEXT_BASE |