diff options
author | Nickey Yang <nickey.yang@rock-chips.com> | 2019-12-11 21:34:17 +0100 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2020-01-06 12:22:29 +0100 |
commit | 0eee61521da76e2f827f8f3025d77641461553bd (patch) | |
tree | 0517ce085e2469e4300074f8cda6aeef91114595 /drivers | |
parent | cca1705c3d895fcb67892fc8710005afd6d38541 (diff) |
drm: rockchip: rk3066_hdmi: set edid fifo address
Fix edid reading error when edid's block > 2.
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20191211203417.19448-1-jbx6244@gmail.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/rockchip/rk3066_hdmi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rockchip/rk3066_hdmi.c b/drivers/gpu/drm/rockchip/rk3066_hdmi.c index 8673e64723e3..fe203d38664e 100644 --- a/drivers/gpu/drm/rockchip/rk3066_hdmi.c +++ b/drivers/gpu/drm/rockchip/rk3066_hdmi.c @@ -641,6 +641,9 @@ static int rk3066_hdmi_i2c_write(struct rk3066_hdmi *hdmi, struct i2c_msg *msgs) if (msgs->addr == DDC_ADDR) hdmi->i2c->ddc_addr = msgs->buf[0]; + /* Set edid fifo first address. */ + hdmi_writeb(hdmi, HDMI_EDID_FIFO_ADDR, 0x00); + /* Set edid word address 0x00/0x80. */ hdmi_writeb(hdmi, HDMI_EDID_WORD_ADDR, hdmi->i2c->ddc_addr); |