]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mailbox: mediatek: support mt8186 adsp mailbox
authorTinghan Shen <tinghan.shen@mediatek.com>
Fri, 22 Apr 2022 02:39:09 +0000 (10:39 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 21 May 2022 16:41:30 +0000 (11:41 -0500)
Add support of mt8186 adsp mailbox.

Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mtk-adsp-mailbox.c

index 5e7378090c7bc96ef054ee170334ea2d31f304af..14bc0057de814caf4a0fa1f1265633dddf467a41 100644 (file)
@@ -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 },
        {},
 };