arm64: ls104x: Enable eDMA snooping
authorSean Anderson <sean.anderson@seco.com>
Fri, 23 Sep 2022 16:05:51 +0000 (12:05 -0400)
committerPeng Fan <peng.fan@nxp.com>
Mon, 17 Oct 2022 07:17:56 +0000 (15:17 +0800)
commit0c3eec2aea8fba147c9eee48577f1dcab57c1174
tree9ca78b5355eee0e1924ed0e18e2b22ea51a30856
parente2ff1d0fa777b11ad6b26432cb7613ab433b15d6
arm64: ls104x: Enable eDMA snooping

This enables eDMA snooping on the LS1043A and LS1046A. This will allow
marking the I2C, LPUART, and SPI devices on these SoCs as DMA coherent.
Oddly, this bit is only documented for the LS1043A, and is marked as
"reserved" in the LS1046ARM. I have tested this patch on the LS1046A
and found that marking i2c0 as dma-coherent works without issue.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/soc.c
arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h