diff options
author | Rex-BC Chen <rex-bc.chen@mediatek.com> | 2022-05-04 13:55:01 +0200 |
---|---|---|
committer | Matthias Brugger <matthias.bgg@gmail.com> | 2022-06-07 18:25:15 +0200 |
commit | 1c9faace10172e965012e0fb2d2061f95f8ff0e3 (patch) | |
tree | dd40afc05e1e476199184b3185e2e9a4bcb8877a /drivers/soc | |
parent | soc: mediatek: devapc: Separate register offsets from mtk_devapc_data (diff) | |
download | linux-1c9faace10172e965012e0fb2d2061f95f8ff0e3.tar.xz linux-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')
-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); |