From e1383d39d794278b6e88b1658c620ad016bef05d Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Fri, 15 Jan 2021 17:45:04 -0800 Subject: trogdor: Initialize BACKLIGHT_ENABLE to 0, only turn it on in payload The BACKLIGHT_ENABLE pin on this board unfortunately defaults to a pull-up on power on, meaning the backlight is immediately enabled. Best we can do about that is to turn it off again early and wait until it is actually correct in the panel power sequence to turn it back on. Some panels want an explicit 80ms delay after training the eDP connection before the backlight is turned on (this is probably just to avoid temporary display artifacts, but whatever). We don't want to busy-wait that extra time, so instead just delegate turning on that GPIO to the payload (which is also in charge of the backlight PWM already). Signed-off-by: Julius Werner Change-Id: Id8dafbdcb40175fbc9205276eee698583b971873 Reviewed-on: https://review.coreboot.org/c/coreboot/+/49495 Tested-by: build bot (Jenkins) Reviewed-by: Douglas Anderson --- src/mainboard/google/trogdor/mainboard.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/mainboard/google/trogdor/mainboard.c') diff --git a/src/mainboard/google/trogdor/mainboard.c b/src/mainboard/google/trogdor/mainboard.c index 0f469e065b..7465c63627 100644 --- a/src/mainboard/google/trogdor/mainboard.c +++ b/src/mainboard/google/trogdor/mainboard.c @@ -102,9 +102,6 @@ static void display_startup(void) return; printk(BIOS_INFO, "display init!\n"); - - /* Configure backlight */ - gpio_output(GPIO_BACKLIGHT_ENABLE, 1); display_init(&ed); fb_new_framebuffer_info_from_edid(&ed, (uintptr_t)0); } else -- cgit v1.2.3