UPSTREAM: drm/rockchip: Optimization vop mode set
authorMark Yao <mark.yao@rock-chips.com>
Wed, 16 Dec 2015 10:08:17 +0000 (18:08 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Thu, 17 Mar 2016 01:42:02 +0000 (09:42 +0800)
commit9620fd758489495b2405e1e2bb19cdd0ecfb1267
tree4c6e96a0bab352ac78297167c1709b87a22224a0
parent93fe6e6cc0cba79428b084ab2820b771c19dc880
UPSTREAM: drm/rockchip: Optimization vop mode set

Rk3288 vop timing registers is immediately register, when configure
timing on display active time, will cause tearing. use dclk reset is
not a good idea to avoid this tearing. we can avoid tearing by using
standby register.

Vop standby register will take effect at end of current frame, and
go back to work immediately when exit standby.

So we can use standby register to protect this context.

Change-Id: Ib65433900c67f9fbd3957c4b0506d6172474e5c2
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
(cherry picked from commit ce3887ed0d996e6353d739e8139b8e5faeb726d5)
drivers/gpu/drm/rockchip/rockchip_drm_vop.c