drm/mediatek: Modify mediatek-drm for mt8195 multi mmsys support
authorNancy.Lin <nancy.lin@mediatek.com>
Tue, 21 Mar 2023 12:18:57 +0000 (20:18 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Wed, 22 Mar 2023 16:33:42 +0000 (16:33 +0000)
commit1ef7ed48356cd5f9af2b7671956991b658d8c2ba
tree326d556ca5e46db895717da2b0340aaf4718873f
parentcb1d6bcca54261932948b9c55bd23daaae1606d4
drm/mediatek: Modify mediatek-drm for mt8195 multi mmsys support

MT8195 have two mmsys. Modify drm for MT8195 multi-mmsys support.
The two mmsys (vdosys0 and vdosys1) will bring up two drm drivers,
only one drm driver register as the drm device.
Each drm driver binds its own component. The last bind drm driver
allocates and registers the drm device to drm core.
Each crtc path is created with the corresponding drm driver data.

Signed-off-by: Nancy.Lin <nancy.lin@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: Bo-Chen Chen <rex-bc.chen@mediatek.com>
Tested-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20230321121859.2355-6-nancy.lin@mediatek.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_crtc.c
drivers/gpu/drm/mediatek/mtk_drm_crtc.h
drivers/gpu/drm/mediatek/mtk_drm_drv.c
drivers/gpu/drm/mediatek/mtk_drm_drv.h