drm/rockchip: vop: test for P{H,V}SYNC
authorJohn Keeping <john@metanate.com>
Fri, 24 Feb 2017 12:55:03 +0000 (12:55 +0000)
committerSean Paul <seanpaul@chromium.org>
Wed, 1 Mar 2017 19:48:58 +0000 (14:48 -0500)
commitd790ad03ed3432839151bc54c611ec87df8bf896
tree5454cb42b8a1470bc8f164db61dff7182a9793c3
parent2b0c4b70b1a4f6ad1810b62057b0d8208c3c65a8
drm/rockchip: vop: test for P{H,V}SYNC

When connected to the MIPI DSI output, we need to use N{H,V}SYNC for the
internal connection but these flags are meaningless for DSI panels.
Switch the test so that we do not set the P{H,V}SYNC bits unless the
mode requires it.

Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Mark Yao <mark.yao@rock-chips.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
[seanpaul resolved conflict using macros instead of hardcoded values]
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20170224125506.21533-21-john@metanate.com
drivers/gpu/drm/rockchip/rockchip_drm_vop.c