5919ba42ed
Add a universal hybrid graphics driver compatible with all supported lenovo devices. Hybrid graphics allows to connect the display panel to either of one GPUs. As there are only two GPUs one GPIO needs to be toggled. In case the discrete GPU is activated the panel is routed to it. On deactivation the panel is routed to the integrated GPU. On lenovo laptops the dGPU is always connected to PEG10 and it is save to disable the PEG slot on dGPU deactivation. Use common gpio.c for southbridge I82801IX. Tested on Lenovo T520 using Nvidia NVS 5200m. Removed Lenovo T430s from the list of supported devices, as the T430s only supports "muxless Optimus". Depends on change id: Iccc6d254bafb927b6470704cec7c9dd7528e2c68 Ibb54c03fd83a529d1ceccfb2c33190e7d42224d8 I8bd981c4696c174152cf41caefa6c083650d283a Iaf0c2f941f2625a5547f9cba79da1b173da6f295 I994114734fa931926c34ed04305cddfbeb429b62 Change-Id: I9b80b31a7749bdf893ed3b772a6505c9f29a56d1 Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/12896 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@googlemail.com>
78 lines
1.3 KiB
Text
78 lines
1.3 KiB
Text
if BOARD_LENOVO_T420S
|
|
|
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
|
def_bool y
|
|
select SYSTEM_TYPE_LAPTOP
|
|
select CPU_INTEL_SOCKET_RPGA988B
|
|
select NORTHBRIDGE_INTEL_SANDYBRIDGE
|
|
select USE_NATIVE_RAMINIT
|
|
select SOUTHBRIDGE_INTEL_BD82X6X
|
|
select EC_LENOVO_PMH7
|
|
select EC_LENOVO_H8
|
|
select NO_UART_ON_SUPERIO
|
|
select BOARD_ROMSIZE_KB_8192
|
|
select HAVE_ACPI_TABLES
|
|
select HAVE_OPTION_TABLE
|
|
select HAVE_CMOS_DEFAULT
|
|
select HAVE_ACPI_RESUME
|
|
select INTEL_INT15
|
|
select SANDYBRIDGE_IVYBRIDGE_LVDS
|
|
select MAINBOARD_HAS_LPC_TPM
|
|
select DRIVERS_LENOVO_HYBRID_GRAPHICS
|
|
|
|
# Workaround for EC/KBC IRQ1.
|
|
select SERIRQ_CONTINUOUS_MODE
|
|
|
|
config HAVE_IFD_BIN
|
|
bool
|
|
default n
|
|
|
|
config HAVE_ME_BIN
|
|
bool
|
|
default n
|
|
|
|
config MAINBOARD_DIR
|
|
string
|
|
default lenovo/t420s
|
|
|
|
config MAINBOARD_PART_NUMBER
|
|
string
|
|
default "ThinkPad T420s"
|
|
|
|
config MMCONF_BASE_ADDRESS
|
|
hex
|
|
default 0xf8000000
|
|
|
|
config MAX_CPUS
|
|
int
|
|
default 8
|
|
|
|
config USBDEBUG_HCD_INDEX
|
|
int
|
|
default 2
|
|
|
|
config DRAM_RESET_GATE_GPIO
|
|
int
|
|
default 10
|
|
|
|
config VGA_BIOS_FILE
|
|
string
|
|
default "pci8086,0126.rom"
|
|
|
|
config VGA_BIOS_ID
|
|
string
|
|
default "8086,0126"
|
|
|
|
config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
|
|
hex
|
|
default 0x17aa
|
|
|
|
config MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
|
|
hex
|
|
default 0x21d2
|
|
|
|
config ONBOARD_VGA_IS_PRIMARY
|
|
bool
|
|
default y
|
|
|
|
endif # BOARD_LENOVO_T420S
|