Commit b2b99a7a authored by Jason-JH.Lin's avatar Jason-JH.Lin Committed by Matthias Brugger

soc: mediatek: add mtk-mmsys support for mt8195 vdosys0

1. Add mt8195 driver data with compatible "mediatek-mt8195-vdosys0".
2. Add mt8195 routing table settings of vdosys0.
Signed-off-by: default avatarJason-JH.Lin <jason-jh.lin@mediatek.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220927152704.12018-4-jason-jh.lin@mediatek.comSigned-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent 8d8ccdd2
This diff is collapsed.
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "mt8183-mmsys.h" #include "mt8183-mmsys.h"
#include "mt8186-mmsys.h" #include "mt8186-mmsys.h"
#include "mt8192-mmsys.h" #include "mt8192-mmsys.h"
#include "mt8195-mmsys.h"
#include "mt8365-mmsys.h" #include "mt8365-mmsys.h"
static const struct mtk_mmsys_driver_data mt2701_mmsys_driver_data = { static const struct mtk_mmsys_driver_data mt2701_mmsys_driver_data = {
...@@ -73,6 +74,12 @@ static const struct mtk_mmsys_driver_data mt8192_mmsys_driver_data = { ...@@ -73,6 +74,12 @@ static const struct mtk_mmsys_driver_data mt8192_mmsys_driver_data = {
.sw0_rst_offset = MT8186_MMSYS_SW0_RST_B, .sw0_rst_offset = MT8186_MMSYS_SW0_RST_B,
}; };
static const struct mtk_mmsys_driver_data mt8195_vdosys0_driver_data = {
.clk_driver = "clk-mt8195-vdo0",
.routes = mmsys_mt8195_routing_table,
.num_routes = ARRAY_SIZE(mmsys_mt8195_routing_table),
};
static const struct mtk_mmsys_driver_data mt8365_mmsys_driver_data = { static const struct mtk_mmsys_driver_data mt8365_mmsys_driver_data = {
.clk_driver = "clk-mt8365-mm", .clk_driver = "clk-mt8365-mm",
.routes = mt8365_mmsys_routing_table, .routes = mt8365_mmsys_routing_table,
...@@ -296,6 +303,10 @@ static const struct of_device_id of_match_mtk_mmsys[] = { ...@@ -296,6 +303,10 @@ static const struct of_device_id of_match_mtk_mmsys[] = {
.compatible = "mediatek,mt8192-mmsys", .compatible = "mediatek,mt8192-mmsys",
.data = &mt8192_mmsys_driver_data, .data = &mt8192_mmsys_driver_data,
}, },
{
.compatible = "mediatek,mt8195-vdosys0",
.data = &mt8195_vdosys0_driver_data,
},
{ {
.compatible = "mediatek,mt8365-mmsys", .compatible = "mediatek,mt8365-mmsys",
.data = &mt8365_mmsys_driver_data, .data = &mt8365_mmsys_driver_data,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment