From 88acb25a9bbe09146a18da367ecdd89e8810217a Mon Sep 17 00:00:00 2001 From: Ruihai Zhou Date: Fri, 19 May 2023 17:51:05 +0800 Subject: [PATCH] mb/google/corsola: Disable backlight before turning on bridge Disable backlight before turning on bridge, otherwise the bridge will initialize failed. Fixes: d5c1e1(mb/google/corsola: Add support for MIPI panel) Signed-off-by: Ruihai Zhou Change-Id: I7d10bf9e8675b2fb03bfd1e294af66207b9b0620 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75354 Reviewed-by: cong yang Tested-by: build bot (Jenkins) Reviewed-by: Yidi Lin --- src/mainboard/google/corsola/display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mainboard/google/corsola/display.c b/src/mainboard/google/corsola/display.c index 697db0759e..9a8ecc567a 100644 --- a/src/mainboard/google/corsola/display.c +++ b/src/mainboard/google/corsola/display.c @@ -123,6 +123,9 @@ static struct panel_description *get_active_panel(void) int configure_display(void) { + /* Set up backlight control pins as output pin and power-off by default */ + backlight_control(); + const struct panel_description *panel = get_active_panel(); if (!panel) @@ -130,9 +133,6 @@ int configure_display(void) printk(BIOS_INFO, "%s: Starting display init\n", __func__); - /* Set up backlight control pins as output pin and power-off by default */ - backlight_control(); - if (panel->power_on) panel->power_on();