ASoC: SOF: mediatek: Support mt8188 platform
authorTinghan Shen <tinghan.shen@mediatek.com>
Tue, 10 Jan 2023 08:43:11 +0000 (16:43 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 10 Jan 2023 13:32:32 +0000 (13:32 +0000)
commit6b43538f0698695fba9aa0c0b29a80c555cf1b63
treef2d2bcce20851593cff0eef43f5720e65399012b
parente15ec6892832d586069ce575c222366b94ad6a5e
ASoC: SOF: mediatek: Support mt8188 platform

Add support of SOF on MediaTek MT8188 SoC.
MT8188 ADSP integrates with a single core Cadence HiFi-5 DSP.
The IPC communication between AP and DSP is based on shared DRAM and
mailbox interrupt.

The change in the mt8186.h is compatible on both mt8186 and
mt8188. The register controls booting the DSP core with the
default address or the user specified address. Both mt8186
and mt8188 should boot with the user specified boot in the driver.
The usage of the register is the same on both SoC, but the
control bit is different on mt8186 and mt8188, which is bit 1 on mt8186
and bit 0 on mt8188. Configure the redundant bit has noside effect
on both SoCs.

Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230110084312.12953-3-tinghan.shen@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/mediatek/mt8186/mt8186.c
sound/soc/sof/mediatek/mt8186/mt8186.h