aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/mailbox
diff options
context:
space:
mode:
authorTinghan Shen <tinghan.shen@mediatek.com>2022-04-22 10:39:09 +0800
committerJassi Brar <jaswinder.singh@linaro.org>2022-05-21 11:41:30 -0500
commit02b5c35a617137ccad8d6988805ab54c3a9efc81 (patch)
treed1a6fe436d96a7a21ff68b71bade4d1ba0472978 /drivers/mailbox
parentdt-bindings: mailbox: mtk,adsp-mbox: add mt8186 compatible name (diff)
downloadwireguard-linux-02b5c35a617137ccad8d6988805ab54c3a9efc81.tar.xz
wireguard-linux-02b5c35a617137ccad8d6988805ab54c3a9efc81.zip
mailbox: mediatek: support mt8186 adsp mailbox
Add support of mt8186 adsp mailbox. Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'drivers/mailbox')
-rw-r--r--drivers/mailbox/mtk-adsp-mailbox.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mailbox/mtk-adsp-mailbox.c b/drivers/mailbox/mtk-adsp-mailbox.c
index 5e7378090c7b..14bc0057de81 100644
--- a/drivers/mailbox/mtk-adsp-mailbox.c
+++ b/drivers/mailbox/mtk-adsp-mailbox.c
@@ -149,6 +149,13 @@ static int mtk_adsp_mbox_probe(struct platform_device *pdev)
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 = {
.set_in = 0x00,
.set_out = 0x1c,
@@ -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[] = {
+ { .compatible = "mediatek,mt8186-adsp-mbox", .data = &mt8186_adsp_mbox_cfg },
{ .compatible = "mediatek,mt8195-adsp-mbox", .data = &mt8195_adsp_mbox_cfg },
{},
};