diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-12-05 14:32:27 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-12-07 07:57:58 +0100 |
commit | 27fc03a9529fb106b4ba9115d32f0fd16072cd1c (patch) | |
tree | 687ab31a0c2095e7a5f8d726d0c5d3ad55ae589c /arch/riscv | |
parent | 95b7e3db08a25e12b55624b81cb27ee1a507bdba (diff) | |
download | barebox-27fc03a9529fb106b4ba9115d32f0fd16072cd1c.tar.gz barebox-27fc03a9529fb106b4ba9115d32f0fd16072cd1c.tar.xz |
of: platform: port Linux of_dma_is_coherent
In order to correctly handle cache-coherent systems on ARM, we need to
be able to determine whether a device instantiated from DT is DMA
coherent. Port the Linux helper that does this check.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20221205133227.3010785-2-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index cd7f4abf56..afbd55aa3e 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -10,6 +10,7 @@ config RISCV select COMMON_CLK_OF_PROVIDER select CLKDEV_LOOKUP select HAS_DMA + select OF_DMA_DEFAULT_COHERENT select HAVE_PBL_IMAGE select HAVE_PBL_MULTI_IMAGES select HAVE_IMAGE_COMPRESSION |