yongqiang niu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/46827 )
Change subject: DEBUG: anx read edid test ......................................................................
DEBUG: anx read edid test
Signed-off-by: Yongqiang Niu yongqiang.niu@mediatek.com Change-Id: I3b880f69f3c0d987972bb6b337c636bfa130b9ce --- M src/drivers/analogix/anx7625/anx7625.c 1 file changed, 6 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/27/46827/1
diff --git a/src/drivers/analogix/anx7625/anx7625.c b/src/drivers/analogix/anx7625/anx7625.c index e3f969c..1f04346 100644 --- a/src/drivers/analogix/anx7625/anx7625.c +++ b/src/drivers/analogix/anx7625/anx7625.c @@ -855,11 +855,13 @@ u8 edid[FOUR_BLOCK_SIZE];
/* Something goes terribly wrong here, and ANX7625 does not seem to be able to recover from it. */ - if (0) - block_num = sp_tx_edid_read(bus, edid, FOUR_BLOCK_SIZE); - block_num=1; + block_num = sp_tx_edid_read(bus, edid, FOUR_BLOCK_SIZE); + if (block_num <= 0) { + block_num = 1; + memcpy(edid, &edp_edid, sizeof(edp_edid)); + ANXINFO("Failed to get eDP EDID, test with hard code edied.\n"); + }
- memcpy(edid, &edp_edid, sizeof(edp_edid)); if (block_num < 0) { ANXERROR("Failed to get eDP EDID.\n"); return -1;
yongqiang niu has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/46827 )
Change subject: DEBUG: anx read edid test ......................................................................
Abandoned