1 From 575fc16e92287349f0ffd8399dd9d7e408954cd4 Mon Sep 17 00:00:00 2001
2 From: Sandor Yu <Sandor.yu@nxp.com>
3 Date: Fri, 29 Nov 2019 15:05:03 +0800
4 Subject: [PATCH] Revert "drm/imx/hdp: fix issue with non-SCDC HDMI sinks"
6 For HDMI sinks that support HDMI2.0, those video modes have
7 listed in hdmi1.4 specification should work in hdmi 1.4.
8 Remove the patch, make sure all video modes can work well
10 For non-SCDC HDMI sinks issue,
11 it will be fixed with another patch.
13 This reverts commit 4b6617643f9e3a6f61d42eae39034ddc8d4825af.
15 Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
17 drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c | 20 ++++++++++----------
18 1 file changed, 10 insertions(+), 10 deletions(-)
20 --- a/drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c
21 +++ b/drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c
23 static void hdmi_sink_config(struct cdns_mhdp_device *mhdp)
25 struct drm_scdc *scdc = &mhdp->connector.base.display_info.hdmi.scdc;
26 - struct drm_display_info *di = &mhdp->connector.base.display_info;
29 - if (scdc->supported || di->color_formats & DRM_COLOR_FORMAT_YCRCB420)
30 - mhdp->hdmi.hdmi_type = MODE_HDMI_2_0;
32 - mhdp->hdmi.hdmi_type = MODE_HDMI_1_4;
35 /* check sink support SCDC or not */
36 - if (!scdc->supported) {
37 - DRM_INFO("Sink does not support SCDC\n");
38 + if (scdc->supported != true) {
39 + DRM_INFO("Sink Not Support SCDC\n");
43 @@ -49,13 +43,19 @@ static void hdmi_sink_config(struct cdns
44 * Enable scrambling and TMDS_Bit_Clock_Ratio
46 buff = SCDC_TMDS_BIT_CLOCK_RATIO_BY_40 | SCDC_SCRAMBLING_ENABLE;
47 + mhdp->hdmi.hdmi_type = MODE_HDMI_2_0;
48 } else if (scdc->scrambling.low_rates) {
50 * Enable scrambling and HDMI2.0 when scrambling capability of sink
51 * be indicated in the HF-VSDB LTE_340Mcsc_scramble bit
53 buff = SCDC_SCRAMBLING_ENABLE;
55 + mhdp->hdmi.hdmi_type = MODE_HDMI_2_0;
57 + /* Default work in HDMI1.4 */
59 + mhdp->hdmi.hdmi_type = MODE_HDMI_1_4;
63 cdns_hdmi_scdc_write(mhdp, 0x20, buff);