diff options
author | Rex-BC Chen <rex-bc.chen@mediatek.com> | 2022-05-04 19:55:01 +0800 |
---|---|---|
committer | Matthias Brugger <matthias.bgg@gmail.com> | 2022-06-07 18:25:15 +0200 |
commit | 1c9faace10172e965012e0fb2d2061f95f8ff0e3 (patch) | |
tree | dd40afc05e1e476199184b3185e2e9a4bcb8877a /drivers/soc/mediatek | |
parent | 2cb41ed0d73d8b15b30c917392d7e97c22866818 (diff) | |
download | linux-stable-1c9faace10172e965012e0fb2d2061f95f8ff0e3.tar.gz linux-stable-1c9faace10172e965012e0fb2d2061f95f8ff0e3.tar.bz2 linux-stable-1c9faace10172e965012e0fb2d2061f95f8ff0e3.zip |
soc: mediatek: devapc: Add support for MT8186
Add devapc data and compatible to support MT8186 devapc.
Signed-off-by: Runyang Chen <runyang.chen@mediatek.com>
Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Tested-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20220504115501.3490-4-rex-bc.chen@mediatek.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Diffstat (limited to 'drivers/soc/mediatek')
-rw-r--r-- | drivers/soc/mediatek/mtk-devapc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/soc/mediatek/mtk-devapc.c b/drivers/soc/mediatek/mtk-devapc.c index f27e22cbb770..fc13334db1b1 100644 --- a/drivers/soc/mediatek/mtk-devapc.c +++ b/drivers/soc/mediatek/mtk-devapc.c @@ -234,11 +234,19 @@ static const struct mtk_devapc_data devapc_mt6779 = { .regs_ofs = &devapc_regs_ofs_mt6779, }; +static const struct mtk_devapc_data devapc_mt8186 = { + .vio_idx_num = 519, + .regs_ofs = &devapc_regs_ofs_mt6779, +}; + static const struct of_device_id mtk_devapc_dt_match[] = { { .compatible = "mediatek,mt6779-devapc", .data = &devapc_mt6779, }, { + .compatible = "mediatek,mt8186-devapc", + .data = &devapc_mt8186, + }, { }, }; MODULE_DEVICE_TABLE(of, mtk_devapc_dt_match); |