From 1a7ffa8521e0cee15a689176b29048e1c2bfcbcf Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 6 Apr 2024 12:19:56 +0100 Subject: lenovo/haswell: enable ONBOARD_VGA_IS_PRIMARY Haswell ThinkPads have Nvidia Optimus wired in on some models. With recent coreboot changes, legacy VGA decode is now disabled on the iGPU, and the iGPU itself is disabled, when a dGPU is present. This is a problem on Optimus laptops, because it means that the Intel GPU would be effectively disabled, when it is the one that has to handle the framebuffer. On these boards, you can enable ONBOARD_VGA_IS_PRIMARY so that coreboot does not disable the iGPU. This is because on Optimus laptops, the Nvidia GPU is only used for offloaded rendering. Enable ONBOARD_VGA_IS_PRIMARY by default on these boards. Change-Id: I8f1e0ca2861d1cc9a9ad41e7c9257aeca1a62a31 Signed-off-by: Leah Rowe Reviewed-on: https://review.coreboot.org/c/coreboot/+/81645 Reviewed-by: Nico Huber Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/mainboard/lenovo/haswell/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/mainboard/lenovo/haswell/Kconfig b/src/mainboard/lenovo/haswell/Kconfig index b874452f03..a5c8054bb8 100644 --- a/src/mainboard/lenovo/haswell/Kconfig +++ b/src/mainboard/lenovo/haswell/Kconfig @@ -60,6 +60,10 @@ config MAINBOARD_PART_NUMBER default "ThinkPad T440p" if BOARD_LENOVO_THINKPAD_T440P default "ThinkPad W541" if BOARD_LENOVO_THINKPAD_W541 +config ONBOARD_VGA_IS_PRIMARY + bool + default y + config VGA_BIOS_ID string default "8086,0416" if BOARD_LENOVO_THINKPAD_T440P -- cgit v1.2.3