summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/mediatek/mtk_drm_drv.h
diff options
context:
space:
mode:
authoryt.shen@mediatek.com <yt.shen@mediatek.com>2017-03-31 19:30:31 +0800
committerCK Hu <ck.hu@mediatek.com>2017-04-08 00:02:13 +0800
commit9dc84e98a31f64363c32ecae8ec0b9e8cf3ce156 (patch)
tree145ac57716c506457b207dc55cd46a6131576f81 /drivers/gpu/drm/mediatek/mtk_drm_drv.h
parentc5f228ef6ccddbc3ebc346e2cfb2b11c1762696f (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/mediatek/mtk_drm_drv.h')
-rw-r--r--drivers/gpu/drm/mediatek/mtk_drm_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.h b/drivers/gpu/drm/mediatek/mtk_drm_drv.h
index 21a433903afd..aef8747d810b 100644
--- a/drivers/gpu/drm/mediatek/mtk_drm_drv.h
+++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.h
@@ -33,6 +33,7 @@ struct mtk_mmsys_driver_data {
unsigned int main_len;
const enum mtk_ddp_comp_id *ext_path;
unsigned int ext_len;
+ bool shadow_register;
};
struct mtk_drm_private {