From: sw.multimedia Date: Tue, 31 Aug 2021 08:48:57 +0000 (+0800) Subject: drm/i2c/tda998x: Hardcode register values for Starlight X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edaeff3b4d78bb69c10322b56722ac6aad5d9fe5;p=platform%2Fkernel%2Flinux-starfive.git drm/i2c/tda998x: Hardcode register values for Starlight A proper solution to this hack should be found. Signed-off-by: jack.zhu Signed-off-by: keith.zhao --- diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index d444e7f..bf40966 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c @@ -1604,7 +1604,9 @@ static void tda998x_bridge_mode_set(struct drm_bridge *bridge, reg |= VIP_CNTRL_3_H_TGL; if (mode->flags & DRM_MODE_FLAG_NVSYNC) reg |= VIP_CNTRL_3_V_TGL; - reg_write(priv, REG_VIP_CNTRL_3, reg); + //reg_write(priv, REG_VIP_CNTRL_3, reg); + reg_write(priv, REG_VIP_CNTRL_3, 0x26); + reg_write(priv, REG_VIDFORMAT, 0x06); reg_write(priv, REG_VIDFORMAT, 0x00); reg_write16(priv, REG_REFPIX_MSB, ref_pix); @@ -1642,7 +1644,8 @@ static void tda998x_bridge_mode_set(struct drm_bridge *bridge, reg |= TBG_CNTRL_1_H_TGL; if (mode->flags & DRM_MODE_FLAG_NVSYNC) reg |= TBG_CNTRL_1_V_TGL; - reg_write(priv, REG_TBG_CNTRL_1, reg); + //reg_write(priv, REG_TBG_CNTRL_1, reg); + reg_write(priv, REG_TBG_CNTRL_1, 0x46); /* must be last register set: */ reg_write(priv, REG_TBG_CNTRL_0, 0);