提交 02b5c35a 编写于 作者: T Tinghan Shen 提交者: Jassi Brar

mailbox: mediatek: support mt8186 adsp mailbox

Add support of mt8186 adsp mailbox.
Signed-off-by: NTinghan Shen <tinghan.shen@mediatek.com>
Signed-off-by: NJassi Brar <jaswinder.singh@linaro.org>
上级 dea27cda
...@@ -149,6 +149,13 @@ static int mtk_adsp_mbox_probe(struct platform_device *pdev) ...@@ -149,6 +149,13 @@ static int mtk_adsp_mbox_probe(struct platform_device *pdev)
return devm_mbox_controller_register(dev, &priv->mbox); return devm_mbox_controller_register(dev, &priv->mbox);
} }
static const struct mtk_adsp_mbox_cfg mt8186_adsp_mbox_cfg = {
.set_in = 0x00,
.set_out = 0x04,
.clr_in = 0x08,
.clr_out = 0x0C,
};
static const struct mtk_adsp_mbox_cfg mt8195_adsp_mbox_cfg = { static const struct mtk_adsp_mbox_cfg mt8195_adsp_mbox_cfg = {
.set_in = 0x00, .set_in = 0x00,
.set_out = 0x1c, .set_out = 0x1c,
...@@ -157,6 +164,7 @@ static const struct mtk_adsp_mbox_cfg mt8195_adsp_mbox_cfg = { ...@@ -157,6 +164,7 @@ static const struct mtk_adsp_mbox_cfg mt8195_adsp_mbox_cfg = {
}; };
static const struct of_device_id mtk_adsp_mbox_of_match[] = { static const struct of_device_id mtk_adsp_mbox_of_match[] = {
{ .compatible = "mediatek,mt8186-adsp-mbox", .data = &mt8186_adsp_mbox_cfg },
{ .compatible = "mediatek,mt8195-adsp-mbox", .data = &mt8195_adsp_mbox_cfg }, { .compatible = "mediatek,mt8195-adsp-mbox", .data = &mt8195_adsp_mbox_cfg },
{}, {},
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册