rk3028a hdmi: add pre-driver and main-driver strength to make signal more good
authorxuhuicong <xhc@rock-chips.com>
Thu, 1 Aug 2013 14:00:40 +0000 (22:00 +0800)
committerxuhuicong <xhc@rock-chips.com>
Thu, 1 Aug 2013 14:00:40 +0000 (22:00 +0800)
drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi_hw.c

index 76db26bcd074c58f50a6dafdbd1b2738c8faea1c..84f8333d969d4121ec5d6ebcbd651dc17e141a91 100755 (executable)
@@ -100,8 +100,14 @@ static void rk616_hdmi_set_pwr_mode(int mode)
      case NORMAL:
             hdmi_dbg(hdmi->dev,"%s change pwr_mode NORMALpwr_mode = %d, mode = %d\n",__FUNCTION__,hdmi->pwr_mode,mode);
                rk616_hdmi_sys_power_down();
-               hdmi_writel(PHY_DRIVER,0xaa);
-               hdmi_writel(PHY_PRE_EMPHASIS,0x0f);
+                if (hdmi->set_vif) {
+                       hdmi_writel(PHY_DRIVER,0xaa);
+                       hdmi_writel(PHY_PRE_EMPHASIS,0x0f);
+                } else {
+                        /* 3026 */
+                       hdmi_writel(PHY_DRIVER,0xbb);
+                       hdmi_writel(PHY_PRE_EMPHASIS,0x4f);
+                }
                hdmi_writel(PHY_SYS_CTL,0x2d);
                hdmi_writel(PHY_SYS_CTL,0x2c);
                hdmi_writel(PHY_SYS_CTL,0x28);