Commit 77faa161 authored by Mark Yao's avatar Mark Yao

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: default avatarMark Yao <mark.yao@rock-chips.com>
parent c1998f08
...@@ -496,6 +496,7 @@ static void vop_enable(struct drm_crtc *crtc) ...@@ -496,6 +496,7 @@ static void vop_enable(struct drm_crtc *crtc)
goto err_disable_aclk; 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. * At here, vop clock & iommu is enable, R/W vop regs would be safe.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment