mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
hdmitx: Fixed the problem of failed reading of edid [1/1]
PD#SWPL-167251 Problem: edid reading fails when edid block is greater than 2 Solution: modify the logic of EDID reading different blocks Verify: SC2 Test: DRM-TX-115 Change-Id: Ibcacbe2c678499f5345e41223dadd344007ccd24 Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
This commit is contained in:
@@ -242,7 +242,7 @@ void hdmitx_read_edid(unsigned char *rx_edid)
|
||||
hdmitx_wr_reg(HDMITX_DWC_I2CM_SEGADDR, 0x30);
|
||||
hdmitx_wr_reg(HDMITX_DWC_I2CM_OPERATION, 1 << 3);
|
||||
/* Program SEGPTR */
|
||||
if (byte_num / 256 == 0)
|
||||
if (byte_num % 256 == 0)
|
||||
hdmitx_wr_reg(HDMITX_DWC_I2CM_SEGPTR, byte_num >> 8);
|
||||
/* Wait until I2C done */
|
||||
timeout = 0;
|
||||
|
||||
Reference in New Issue
Block a user