Skip to content

Commit 02b5c35

Browse files
tinghan-shenJassiBrar
authored andcommitted
mailbox: mediatek: support mt8186 adsp mailbox
Add support of mt8186 adsp mailbox. Signed-off-by: Tinghan Shen <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent dea27cd commit 02b5c35

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/mailbox/mtk-adsp-mailbox.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,13 @@ static int mtk_adsp_mbox_probe(struct platform_device *pdev)
149149
return devm_mbox_controller_register(dev, &priv->mbox);
150150
}
151151

152+
static const struct mtk_adsp_mbox_cfg mt8186_adsp_mbox_cfg = {
153+
.set_in = 0x00,
154+
.set_out = 0x04,
155+
.clr_in = 0x08,
156+
.clr_out = 0x0C,
157+
};
158+
152159
static const struct mtk_adsp_mbox_cfg mt8195_adsp_mbox_cfg = {
153160
.set_in = 0x00,
154161
.set_out = 0x1c,
@@ -157,6 +164,7 @@ static const struct mtk_adsp_mbox_cfg mt8195_adsp_mbox_cfg = {
157164
};
158165

159166
static const struct of_device_id mtk_adsp_mbox_of_match[] = {
167+
{ .compatible = "mediatek,mt8186-adsp-mbox", .data = &mt8186_adsp_mbox_cfg },
160168
{ .compatible = "mediatek,mt8195-adsp-mbox", .data = &mt8195_adsp_mbox_cfg },
161169
{},
162170
};

0 commit comments

Comments
 (0)