drm/rockchip: Implement CRC debugfs API
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 3 Mar 2017 13:39:36 +0000 (14:39 +0100)
committerSean Paul <seanpaul@chromium.org>
Mon, 6 Mar 2017 17:14:27 +0000 (12:14 -0500)
commit3190e58dafaf10cedab3005f3859ee0c16700c14
treeca0f6063f2a0aac44f809f7544afaea07298bd9c
parent737d6e339f50dcdbd5a8444d04dede2f0d305361
drm/rockchip: Implement CRC debugfs API

Implement the .set_crc_source() callback and call the DP helpers
accordingly to start and stop CRC capture.

This is only done if this CRTC is currently using the eDP connector.

v3: Remove superfluous check on rockchip_crtc_state->output_type

v6: Remove superfluous variable

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Acked-by: Mark Yao <mark.yao@rock-chips.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170303133936.14964-5-tomeu.vizoso@collabora.com
drivers/gpu/drm/rockchip/rockchip_drm_vop.c