mb/google/asurada: power on panel after DSI is ready

Some bridge chips or panels require DSI signal output
before the DSI receiver is ready to work.

This patch is based on CB:47380 (commit b32e4d6,
"mb/google/kukui: Add panel api after dsi start")

BUG=b:198558237
TEST=emerge-asurada coreboot
BRANCH=asurada

Change-Id: Id72560caee9352f88db2de7269b1472f56ac1bdf
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57485
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Hung-Te Lin 2021-09-03 15:38:13 +08:00
parent 8202fc42d4
commit 5e8af51d1e
1 changed files with 6 additions and 4 deletions

View File

@ -102,10 +102,6 @@ static bool configure_display(void)
printk(BIOS_ERR, "%s: Can't get panel's edid\n", __func__); printk(BIOS_ERR, "%s: Can't get panel's edid\n", __func__);
return false; return false;
} }
if (anx7625_dp_start(i2c_bus, &edid) < 0) {
printk(BIOS_ERR, "%s: Can't start display via ANX7625\n", __func__);
return false;
}
const char *name = edid.ascii_string; const char *name = edid.ascii_string;
if (name[0] == '\0') if (name[0] == '\0')
@ -128,6 +124,12 @@ static bool configure_display(void)
printk(BIOS_ERR, "%s: Failed in DSI init\n", __func__); printk(BIOS_ERR, "%s: Failed in DSI init\n", __func__);
return false; return false;
} }
if (anx7625_dp_start(i2c_bus, &edid) < 0) {
printk(BIOS_ERR, "%s: Can't start display via ANX7625\n", __func__);
return false;
}
mtk_ddp_mode_set(&edid); mtk_ddp_mode_set(&edid);
fb_new_framebuffer_info_from_edid(&edid, (uintptr_t)0); fb_new_framebuffer_info_from_edid(&edid, (uintptr_t)0);
return true; return true;