diff options
author | sw.multimedia <sw.multimedia@starfivetech.com> | 2021-08-31 11:48:57 +0300 |
---|---|---|
committer | Emil Renner Berthing <emil.renner.berthing@canonical.com> | 2024-05-28 13:42:35 +0300 |
commit | 6c1df82beab4735ba9201f24a1d7ce048f48fe14 (patch) | |
tree | 05cf002d219904fec056fcc60861e8de45ac4be9 /drivers/gpu | |
parent | 3b20eed21ee121bd8b51ec86ef0c9784d4a8ae4a (diff) | |
download | linux-6c1df82beab4735ba9201f24a1d7ce048f48fe14.tar.xz |
drm/i2c/tda998x: Hardcode register values for Starlight
A proper solution to this hack should be found.
Signed-off-by: jack.zhu <jack.zhu@starfivetech.com>
Signed-off-by: keith.zhao <keith.zhao@starfivetech.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i2c/tda998x_drv.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index d8d7de18dd65..2a612b901572 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c @@ -1606,7 +1606,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); @@ -1644,7 +1646,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); |