Skip to content

Commit

Permalink
drm/i2c/tda998x: Hardcode register values for Starlight
Browse files Browse the repository at this point in the history
A proper solution to this hack should be found.

Signed-off-by: jack.zhu <[email protected]>
Signed-off-by: keith.zhao <[email protected]>
  • Loading branch information
sw.multimedia authored and esmil committed Dec 27, 2021
1 parent d0d3267 commit baa7cb4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions drivers/gpu/drm/i2c/tda998x_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,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);
Expand Down Expand Up @@ -1641,7 +1643,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);
Expand Down

0 comments on commit baa7cb4

Please sign in to comment.