From ebc870ae75081446da6ecf4d96221e9b18e50a6c Mon Sep 17 00:00:00 2001 From: xuhuicong Date: Thu, 1 Aug 2013 22:00:40 +0800 Subject: [PATCH] rk3028a hdmi: add pre-driver and main-driver strength to make signal more good --- .../video/rockchip/hdmi/chips/rk616/rk616_hdmi_hw.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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); -- 2.34.1