drm/rockchip: Correct vop out_mode configure
authorMark yao <mark.yao@rock-chips.com>
Sat, 27 May 2017 11:43:36 +0000 (19:43 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Wed, 31 May 2017 03:13:34 +0000 (11:13 +0800)
commitefd11cc8fa1a6d8aba16bd6aaa774ecc3d02145f
tree4b5ff03a019b3b1894c42dfc9a8118c33ae63c47
parent82bc9a42cf854fdf63155759c0aa790bd1f361b0
drm/rockchip: Correct vop out_mode configure

Force vop output mode on encoder driver seem not a good idea,

EDP, HDMI, DisplayPort all have 10bit input on rk3399,
On non-10bit vop, vop 8bit output bit[0-7] connect to the
encoder high 8bit [2-9].

So force RGB10 to RGB888 on vop driver would be better.

And another problem, EDP check crtc id on atomic_check,
but encoder maybe NULL, so out_mode configure would fail,
it cause edp no display.

Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Reviewed-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1495885416-22216-1-git-send-email-mark.yao@rock-chips.com
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
drivers/gpu/drm/rockchip/cdn-dp-core.c
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
drivers/gpu/drm/rockchip/rockchip_drm_vop.h
drivers/gpu/drm/rockchip/rockchip_vop_reg.c