[PATCH v2 13/15] drm/mediatek: Support MT8188 VDOSYS1 in display driver

Hsiao Chien Sung posted 15 patches 1 year, 5 months ago
There is a newer version of this series
[PATCH v2 13/15] drm/mediatek: Support MT8188 VDOSYS1 in display driver
Posted by Hsiao Chien Sung 1 year, 5 months ago
- The mmsys_dev_num in MT8188 VDOSYS0 was set to 1 since
  VDOSYS1 was not available before. Increase it to support
  VDOSYS1 in display driver.
- Add compatible name for MT8188 VDOSYS1
  (shares the same driver data with MT8195 VDOSYS1)

Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com>
---
 drivers/gpu/drm/mediatek/mtk_drm_drv.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
index 6dcb4ba2466c..613093068bb4 100644
--- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
+++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
@@ -287,6 +287,7 @@ static const struct mtk_mmsys_driver_data mt8186_mmsys_driver_data = {
 static const struct mtk_mmsys_driver_data mt8188_vdosys0_driver_data = {
 	.main_path = mt8188_mtk_ddp_main,
 	.main_len = ARRAY_SIZE(mt8188_mtk_ddp_main),
+	.mmsys_dev_num = 2,
 };

 static const struct mtk_mmsys_driver_data mt8192_mmsys_driver_data = {
@@ -327,6 +328,8 @@ static const struct of_device_id mtk_drm_of_ids[] = {
 	  .data = &mt8186_mmsys_driver_data},
 	{ .compatible = "mediatek,mt8188-vdosys0",
 	  .data = &mt8188_vdosys0_driver_data},
+	{ .compatible = "mediatek,mt8188-vdosys1",
+	  .data = &mt8195_vdosys1_driver_data},
 	{ .compatible = "mediatek,mt8192-mmsys",
 	  .data = &mt8192_mmsys_driver_data},
 	{ .compatible = "mediatek,mt8195-mmsys",
--
2.18.0
Re: [PATCH v2 13/15] drm/mediatek: Support MT8188 VDOSYS1 in display driver
Posted by AngeloGioacchino Del Regno 1 year, 5 months ago
Il 14/06/23 09:31, Hsiao Chien Sung ha scritto:
> - The mmsys_dev_num in MT8188 VDOSYS0 was set to 1 since
>    VDOSYS1 was not available before. Increase it to support
>    VDOSYS1 in display driver.
> - Add compatible name for MT8188 VDOSYS1
>    (shares the same driver data with MT8195 VDOSYS1)
> 
> Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com>

Reusing data/code. Just great.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>