diff options
author | Patrick Rudolph <siro@das-labor.org> | 2017-07-25 18:18:57 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-08-10 16:06:19 +0000 |
commit | 24680d0902f70d3b63f8d7b11f47ffac73697d94 (patch) | |
tree | 09005f9b40dbc99d25f89fe3ab61e858d02421e2 /src/drivers/lenovo/hybrid_graphics.c | |
parent | d7dcc44eb97dcf99093e64b887b9dc2296a31d21 (diff) |
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>
Diffstat (limited to 'src/drivers/lenovo/hybrid_graphics.c')
-rw-r--r-- | src/drivers/lenovo/hybrid_graphics.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/drivers/lenovo/hybrid_graphics.c b/src/drivers/lenovo/hybrid_graphics.c index 9b46646e4b..802823acdc 100644 --- a/src/drivers/lenovo/hybrid_graphics.c +++ b/src/drivers/lenovo/hybrid_graphics.c @@ -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, -}; |