mtk ccorr is controlled by DRM and MDP [1]. In order to share mtk_ccorr driver for DRM and MDP, decouple Mediatek DRM sub driver which include mtk_ccorr, so MDP could use this decoupled mtk_ccorr.
[1] https://patchwork.kernel.org/patch/11140751/ CK Hu (9): drm/mediatek: Move clk info from struct mtk_ddp_comp to sub driver private data drm/mediatek: Move regs info from struct mtk_ddp_comp to sub driver private data drm/mediatek: Remove irq in struct mtk_ddp_comp drm/mediatek: Use struct cmdq_client_reg to gather cmdq variable drm/mediatek: Move cmdq_reg info from struct mtk_ddp_comp to sub driver private data drm/mediatek: Change sub driver interface from mtk_ddp_comp to device drm/mediatek: Register vblank callback function drm/mediatek: DRM driver directly refer to sub driver's function drm/mediatek: Move mtk_ddp_comp_init() from sub driver to DRM driver Chun-Kuang Hu (2): drm/mediatek: Get CMDQ client register for all ddp component drm/mediatek: Use correct device pointer to get CMDQ client register drivers/gpu/drm/mediatek/mtk_disp_color.c | 86 ++--- drivers/gpu/drm/mediatek/mtk_disp_drv.h | 69 ++++ drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 215 ++++++----- drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 169 +++++---- drivers/gpu/drm/mediatek/mtk_dpi.c | 44 +-- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 75 ++-- drivers/gpu/drm/mediatek/mtk_drm_crtc.h | 1 - drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 389 ++++++++++++-------- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 100 ++--- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 30 +- drivers/gpu/drm/mediatek/mtk_drm_drv.h | 2 +- drivers/gpu/drm/mediatek/mtk_dsi.c | 47 +-- 12 files changed, 658 insertions(+), 569 deletions(-) create mode 100644 drivers/gpu/drm/mediatek/mtk_disp_drv.h -- 2.17.1