From: xuhuicong Date: Thu, 1 Aug 2013 14:00:40 +0000 (+0800) Subject: rk3028a hdmi: add pre-driver and main-driver strength to make signal more good X-Git-Tag: firefly_0821_release~6785 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ebc870ae75081446da6ecf4d96221e9b18e50a6c;p=firefly-linux-kernel-4.4.55.git rk3028a hdmi: add pre-driver and main-driver strength to make signal more good --- diff --git a/drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi_hw.c b/drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi_hw.c index 76db26bcd074..84f8333d969d 100755 --- a/drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi_hw.c +++ b/drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi_hw.c @@ -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);