firmware: mediatek: Add adsp ipc protocol interface
authorTingHan Shen <tinghan.shen@mediatek.com>
Thu, 12 May 2022 08:22:13 +0000 (16:22 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 16 May 2022 11:58:11 +0000 (12:58 +0100)
commit9db69df4bdd37eb1f65b6931ee067fb15b9a4d5c
tree6770a29850208619256827ee90f000b40042dc1f
parentfd4b80044b09c8ee9ccdd1caff025b7d0dabcaf7
firmware: mediatek: Add adsp ipc protocol interface

Some of mediatek processors contain
the Tensilica HiFix DSP for audio processing.

The communication between Host CPU and DSP firmware is
taking place using a shared memory area for message passing.

ADSP IPC protocol offers (send/recv) interfaces using
mediatek-mailbox APIs.

We use two mbox channels to implement a request-reply protocol.

Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Signed-off-by: TingHan Shen <tinghan.shen@mediatek.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Curtis Malainey <cujomalainey@chromium.org>
Reviewed-by: Tzung-Bi Shih <tzungbi@google.com>
Reviewed-by: YC Hung <yc.hung@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220512082215.3018-2-tinghan.shen@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/firmware/Kconfig
drivers/firmware/Makefile
drivers/firmware/mtk-adsp-ipc.c [new file with mode: 0644]
include/linux/firmware/mediatek/mtk-adsp-ipc.h [new file with mode: 0644]