mb/lenovo/t430: Fix Dual Graphics

* Select ONBOARD_VGA_IS_PRIMARY in driver/lenovo/hybrid_graphics to fix
  disabling iGPU in 'Dual Graphics' on Lenovo T430.
* Remove ONBOARD_VGA_IS_PRIMARY in mainboards that already select
  DRIVERS_LENOVO_HYBRID_GRAPHICS.

Change-Id: I6594fbb957c9a8135fe670d38b5755adf29d2dff
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33254
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Patrick Rudolph 2019-06-06 15:41:27 +02:00 committed by Felix Held
parent 2cdb65d663
commit 35abe73e48
6 changed files with 2 additions and 20 deletions

View File

@ -1,3 +1,5 @@
config DRIVERS_LENOVO_HYBRID_GRAPHICS config DRIVERS_LENOVO_HYBRID_GRAPHICS
bool bool
default n default n
# for dual graphics we need to set this
select ONBOARD_VGA_IS_PRIMARY

View File

@ -62,10 +62,6 @@ config CBFS_SIZE
hex hex
default 0x200000 default 0x200000
config ONBOARD_VGA_IS_PRIMARY
bool
default y
config INTEL_GMA_VBT_FILE config INTEL_GMA_VBT_FILE
default "src/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/data.vbt" default "src/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/data.vbt"

View File

@ -75,8 +75,4 @@ config VGA_BIOS_ID
string string
default "8086,0126" default "8086,0126"
config ONBOARD_VGA_IS_PRIMARY
bool
default y
endif # BOARD_LENOVO_T420 endif # BOARD_LENOVO_T420

View File

@ -74,8 +74,4 @@ config VGA_BIOS_ID
string string
default "8086,0126" default "8086,0126"
config ONBOARD_VGA_IS_PRIMARY
bool
default y
endif # BOARD_LENOVO_T420S endif # BOARD_LENOVO_T420S

View File

@ -84,8 +84,4 @@ config VGA_BIOS_FILE
string string
default "pci8086,0126.rom" default "pci8086,0126.rom"
config ONBOARD_VGA_IS_PRIMARY
bool
default y
endif endif

View File

@ -62,8 +62,4 @@ config VGA_BIOS_FILE
default "pci8086,0106.rom" if BOARD_LENOVO_T530 default "pci8086,0106.rom" if BOARD_LENOVO_T530
default "pci8086,0166.rom" if BOARD_LENOVO_W530 default "pci8086,0166.rom" if BOARD_LENOVO_W530
config ONBOARD_VGA_IS_PRIMARY
bool
default y
endif endif