drm/tegra: dpaux: Keep reset defaults for hybrid pad parameters
authorThierry Reding <treding@nvidia.com>
Thu, 14 Dec 2017 12:25:37 +0000 (13:25 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 21 Dec 2017 13:52:37 +0000 (14:52 +0100)
Keep the reset values for the common mode voltage, output driver
impedance control and output driver current control parameters. This
fixes errors seen during SCDC communication with HDMI sinks.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dpaux.c

index 312b93c0323cb50adc0477f858c77936bd1b8d85..d84e81ff36ad0d906b1002650093748d728ec95b 100644 (file)
@@ -322,6 +322,9 @@ static int tegra_dpaux_pad_config(struct tegra_dpaux *dpaux, unsigned function)
        case DPAUX_PADCTL_FUNC_I2C:
                value = DPAUX_HYBRID_PADCTL_I2C_SDA_INPUT_RCV |
                        DPAUX_HYBRID_PADCTL_I2C_SCL_INPUT_RCV |
+                       DPAUX_HYBRID_PADCTL_AUX_CMH(2) |
+                       DPAUX_HYBRID_PADCTL_AUX_DRVZ(4) |
+                       DPAUX_HYBRID_PADCTL_AUX_DRVI(0x18) |
                        DPAUX_HYBRID_PADCTL_MODE_I2C;
                break;