drm/bridge: dw-hdmi: Add SCDC and TMDS Scrambling support
authorNeil Armstrong <narmstrong@baylibre.com>
Fri, 1 Feb 2019 12:07:46 +0000 (12:07 +0000)
committerAndrzej Hajda <a.hajda@samsung.com>
Fri, 1 Feb 2019 12:15:07 +0000 (13:15 +0100)
commit264fce6cc2c1b06d14c345b0b31b281087feb99b
tree0a8949c3fb822b1f8ccd33bf3adf2ec8fa3a65b4
parentd60ea31a87314eb7bea0b2dcbd36cf12bdf9ac0d
drm/bridge: dw-hdmi: Add SCDC and TMDS Scrambling support

Add support for SCDC Setup for TMDS Clock > 3.4GHz and enable TMDS
Scrambling when supported or mandatory.

This patch also adds an helper to setup the control bit to support
the high TMDS Bit Period/TMDS Clock-Period Ratio as required with
TMDS Clock > 3.4GHz for HDMI2.0 3840x2160@60/50 modes.

These changes were based on work done by Huicong Xu <xhc@rock-chips.com>
and Nickey Yang <nickey.yang@rock-chips.com> to support HDMI2.0 modes
on the Rockchip 4.4 BSP kernel at [1]

[1] https://github.com/rockchip-linux/kernel/tree/release-4.4

Cc: Nickey Yang <nickey.yang@rock-chips.com>
Cc: Huicong Xu <xhc@rock-chips.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1549022873-40549-2-git-send-email-narmstrong@baylibre.com
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
drivers/gpu/drm/bridge/synopsys/dw-hdmi.h
include/drm/bridge/dw_hdmi.h