video: tegra: dc: Change HDMI drive strength
Rakesh Iyer [Wed, 13 Mar 2013 18:39:30 +0000 (11:39 -0700)]
Modify HDMI drive strength to avoid clock jitter and eye diagram issues.

Bug 1157049.
Bug 1226687.

Change-Id: Ibf30356898d9ce2191f1794fc942dcb89d9bfe6f
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/208905
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

drivers/video/tegra/dc/hdmi.c
drivers/video/tegra/dc/hdmi_reg.h

index 755e872..7210067 100644 (file)
@@ -281,21 +281,21 @@ const struct tdms_config tdms_config[] = {
        },
        { /* 297MHz modes */
        .pclk = INT_MAX,
-       .pll0 = SOR_PLL_ICHPMP(2) | SOR_PLL_BG_V17_S(3) |
+       .pll0 = SOR_PLL_ICHPMP(1) | SOR_PLL_BG_V17_S(3) |
                SOR_PLL_VCOCAP(15) | SOR_PLL_RESISTORSEL_EXT ,
-       .pll1 = SOR_PLL_LOADADJ(3) | SOR_PLL_TMDS_TERMADJ(6)
+       .pll1 = SOR_PLL_LOADADJ(3) | SOR_PLL_TMDS_TERMADJ(8)
                | SOR_PLL_TMDS_TERM_ENABLE,
        .pe_current = PE_CURRENT0(PE_CURRENT_4_0_mA) |
                PE_CURRENT1(PE_CURRENT_4_0_mA) |
                PE_CURRENT2(PE_CURRENT_4_0_mA) |
                PE_CURRENT3(PE_CURRENT_4_0_mA),
-       .drive_current = DRIVE_CURRENT_LANE0(DRIVE_CURRENT_23_250_mA) |
-               DRIVE_CURRENT_LANE1(DRIVE_CURRENT_23_250_mA) |
-               DRIVE_CURRENT_LANE2(DRIVE_CURRENT_23_250_mA) |
-               DRIVE_CURRENT_LANE3(DRIVE_CURRENT_23_250_mA),
+       .drive_current = DRIVE_CURRENT_LANE0(DRIVE_CURRENT_25_125_mA) |
+               DRIVE_CURRENT_LANE1(DRIVE_CURRENT_25_125_mA) |
+               DRIVE_CURRENT_LANE2(DRIVE_CURRENT_25_125_mA) |
+               DRIVE_CURRENT_LANE3(DRIVE_CURRENT_19_500_mA),
        .peak_current =
-               PEAK_CURRENT_LANE0(0x15) | PEAK_CURRENT_LANE1(0x15) |
-               PEAK_CURRENT_LANE2(0x15) | PEAK_CURRENT_LANE3(0x15),
+               PEAK_CURRENT_LANE0(15) | PEAK_CURRENT_LANE1(15) |
+               PEAK_CURRENT_LANE2(15) | PEAK_CURRENT_LANE3(4),
        },
 };
 #else
index 7abb838..9842bfb 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (C) 2010 Google, Inc.
  * Author: Erik Gilling <konkers@android.com>
  *
- * Copyright (c) 2010-2012, NVIDIA CORPORATION, All rights reserved.
+ * Copyright (c) 2010-2013, NVIDIA CORPORATION, All rights reserved.
  *
  * This software is licensed under the terms of the GNU General Public
  * License version 2, as published by the Free Software Foundation, and
 #define  DRIVE_CURRENT_24_000_mA               0x3c
 #define  DRIVE_CURRENT_24_375_mA               0x3d
 #define  DRIVE_CURRENT_24_750_mA               0x3e
+#define  DRIVE_CURRENT_25_125_mA               0x3f
 
 #define HDMI_NV_PDISP_AUDIO_DEBUG0                             0x7f
 #define HDMI_NV_PDISP_AUDIO_DEBUG1                             0x80