ASoC: SOF: mediatek: mt8186 modify dram type as non-cache
authorTrevor Wu <trevor.wu@mediatek.com>
Thu, 3 Aug 2023 07:50:28 +0000 (15:50 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 4 Aug 2023 12:30:41 +0000 (13:30 +0100)
commit1d54134df47684ee29d4d4bbe28174a4282389e0
tree8b731586f7cb7162206b0b08e9bcd7f40c482863
parent9f0d4d47c7915ce21bde4a4974a7a6307e244a6d
ASoC: SOF: mediatek: mt8186 modify dram type as non-cache

To prevent incorrect access between the host and DSP sides, we need to
modify DRAM as a non-cache memory type. Additionally, we can retrieve
the size of shared DMA from the device tree.

Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
Reviewed-by: Yaochun Hung <yc.hung@mediatek.com>
Reviewed-by: Kuan-Hsun Cheng <Allen-KH.Cheng@mediatek.com>
Link: https://lore.kernel.org/r/20230803075028.32170-1-trevor.wu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/mediatek/mt8186/mt8186.c