drm/mediatek: Add display merge start/stop API for cmdq support
authorNancy.Lin <nancy.lin@mediatek.com>
Mon, 20 Jun 2022 09:19:21 +0000 (17:19 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 27 Jun 2022 14:32:28 +0000 (22:32 +0800)
commitd2ae586f0e207ab418263018fd2e3cec2322179f
tree50901df1a3eda2b2aee96179756edb324f478b3a
parent7e4727f74520dd4038acb4f29f3d4195890094fa
drm/mediatek: Add display merge start/stop API for cmdq support

Add merge start/stop API for cmdq support. The ovl_adaptor merges
are configured with each drm plane update. Need to enable/disable
merge with cmdq making sure all the settings taken effect in the
same vblank.

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>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20220620091930.27797-6-nancy.lin@mediatek.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_disp_drv.h
drivers/gpu/drm/mediatek/mtk_disp_merge.c