mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
hdmitx: fix reading error EDID
PD#153236: hdmitx: fix reading error EDID When reading EDID by using HW way, there is a logic error in it. We forget to write 1 to 0x60 address when reading EDID every time. Change-Id: Iee3148b16ee18df5549754cab63cd2ace80f348c Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
This commit is contained in:
@@ -3124,7 +3124,7 @@ static void hdmitx_read_edid(unsigned char *rx_edid)
|
||||
/* Read complete EDID data sequentially */
|
||||
while (byte_num < 128 * blk_no) {
|
||||
hdmitx_wr_reg(HDMITX_DWC_I2CM_ADDRESS, byte_num&0xff);
|
||||
if (((byte_num == 256) || (byte_num == 384)) && (blk_no > 2)) {
|
||||
if ((byte_num >= 256) && (byte_num < 512) && (blk_no > 2)) {
|
||||
/* Program SEGMENT/SEGPTR */
|
||||
hdmitx_wr_reg(HDMITX_DWC_I2CM_SEGADDR, 0x30);
|
||||
hdmitx_wr_reg(HDMITX_DWC_I2CM_SEGPTR, 0x1);
|
||||
|
||||
Reference in New Issue
Block a user