summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMark Yao <mark.yao@rock-chips.com>2015-07-20 16:25:20 +0800
committerMark Yao <mark.yao@rock-chips.com>2015-08-26 14:16:26 +0800
commit77faa1619a5ae9ed600b0836bc1eec57bad1895b (patch)
treee18a36594ad7bcb6e1e51813500eeef7f6fda033 /drivers
parentc1998f08587a252734bad42b66b430f126f2385b (diff)
drm/rockchip: vop: restore vop registers when resume
The registers will be reset to default values when whole power domain off, so restore registers from regsbak. Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_drm_vop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
index 4a2923b0ee31..16b7d98362b0 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
@@ -496,6 +496,7 @@ static void vop_enable(struct drm_crtc *crtc)
goto err_disable_aclk;
}
+ memcpy(vop->regs, vop->regsbak, vop->len);
/*
* At here, vop clock & iommu is enable, R/W vop regs would be safe.
*/