diff options
author | Hung-Te Lin <hungte@chromium.org> | 2021-09-03 15:38:13 +0800 |
---|---|---|
committer | Hung-Te Lin <hungte@chromium.org> | 2021-09-10 13:24:10 +0000 |
commit | 5e8af51d1ec12153b86bc0350143846bcaaee6d3 (patch) | |
tree | c65425a511537097925246a61c38d04932651f27 /src/mainboard | |
parent | 8202fc42d444faae979263af72e9264ac40529a8 (diff) |
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>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/asurada/mainboard.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mainboard/google/asurada/mainboard.c b/src/mainboard/google/asurada/mainboard.c index f5489de426..99c6cf3741 100644 --- a/src/mainboard/google/asurada/mainboard.c +++ b/src/mainboard/google/asurada/mainboard.c @@ -102,10 +102,6 @@ static bool configure_display(void) printk(BIOS_ERR, "%s: Can't get panel's edid\n", __func__); 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; if (name[0] == '\0') @@ -128,6 +124,12 @@ static bool configure_display(void) printk(BIOS_ERR, "%s: Failed in DSI init\n", __func__); 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); fb_new_framebuffer_info_from_edid(&edid, (uintptr_t)0); return true; |