drm/rockchip: Implement CRC debugfs API
authorTomeu Vizoso <[email protected]>
Fri, 3 Mar 2017 13:39:36 +0000 (14:39 +0100)
committerSean Paul <[email protected]>
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 <[email protected]>
Acked-by: Mark Yao <[email protected]>
Signed-off-by: Sean Paul <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/rockchip/rockchip_drm_vop.c