mb/lenovo/t400: Switch to new hybrid graphics driver

Use new hybrid graphics driver to get device state.
Move remaining code to romstage.c.

Tested on Lenovo T500:
* Linux 4.11.4 on Fedora 25
* Integrated (using NGI)
* Discrete (using VGA OpROM)
* Switchable (using NGI and VGA OpROM), tested with DRI_PRIME

No regressions found.

Change-Id: Iad2eccaab19c71f11308853ba9326d8186e67c93
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/20793
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Patrick Rudolph
2017-07-25 18:18:57 +02:00
committed by Martin Roth
parent d7dcc44eb9
commit 24680d0902
6 changed files with 30 additions and 104 deletions

View File

@@ -112,14 +112,3 @@ static const struct pci_driver hybrid_peg_nvidia __pci_driver = {
.vendor = PCI_VENDOR_ID_NVIDIA,
.devices = pci_device_ids_nvidia,
};
static const unsigned short pci_device_ids_amd[] = {
0x9591, /* ATI Mobility Radeon HD 3650 Lenovo T500/W500 */
0x95c4, /* ATI Mobility Radeon HD 3470 Lenovo T400/R400 */
0 };
static const struct pci_driver hybrid_peg_amd __pci_driver = {
.ops = &hybrid_graphics_ops,
.vendor = PCI_VENDOR_ID_ATI,
.devices = pci_device_ids_amd,
};