mb/lenovo/t400: Switch to new hybrid graphics driver
commit24680d0902f70d3b63f8d7b11f47ffac73697d94
authorPatrick Rudolph <siro@das-labor.org>
Tue, 25 Jul 2017 16:18:57 +0000 (25 18:18 +0200)
committerMartin Roth <martinroth@google.com>
Thu, 10 Aug 2017 16:06:19 +0000 (10 16:06 +0000)
tree09005f9b40dbc99d25f89fe3ab61e858d02421e2
parentd7dcc44eb97dcf99093e64b887b9dc2296a31d21
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>
src/drivers/lenovo/hybrid_graphics.c
src/mainboard/lenovo/t400/Kconfig
src/mainboard/lenovo/t400/Makefile.inc
src/mainboard/lenovo/t400/devicetree.cb
src/mainboard/lenovo/t400/hybrid_graphics.c [deleted file]
src/mainboard/lenovo/t400/romstage.c