drm/mediatek: add shadow register support
authoryt.shen@mediatek.com <yt.shen@mediatek.com>
Fri, 31 Mar 2017 11:30:31 +0000 (19:30 +0800)
committerCK Hu <ck.hu@mediatek.com>
Fri, 7 Apr 2017 16:02:13 +0000 (00:02 +0800)
commit9dc84e98a31f64363c32ecae8ec0b9e8cf3ce156
tree145ac57716c506457b207dc55cd46a6131576f81
parentc5f228ef6ccddbc3ebc346e2cfb2b11c1762696f
drm/mediatek: add shadow register support

We need to acquire mutex before using the resources,
and need to release it after finished.
So we don't need to write registers in the blanking period.

Signed-off-by: YT Shen <yt.shen@mediatek.com>
Acked-by: CK Hu <ck.hu@mediatek.com>
drivers/gpu/drm/mediatek/mtk_drm_crtc.c
drivers/gpu/drm/mediatek/mtk_drm_ddp.c
drivers/gpu/drm/mediatek/mtk_drm_ddp.h
drivers/gpu/drm/mediatek/mtk_drm_drv.h