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>
This commit is contained in:
Mark Yao 2015-07-20 16:25:20 +08:00
parent c1998f0858
commit 77faa1619a
1 changed files with 1 additions and 0 deletions

View File

@ -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.
*/ */