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 <info@minifree.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81645
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Leah Rowe 2024-04-06 12:19:56 +01:00 committed by Nico Huber
parent 316d687d3a
commit 1a7ffa8521

View File

@ -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