Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/20798
Change subject: mb/lenovo/l520/Kconfig: Remove hybrid graphics driver support
......................................................................
mb/lenovo/l520/Kconfig: Remove hybrid graphics driver support
The schematics isn't available for the board, but other L*00 series boards
seem to use a different, compared to T*00 series, GPIO layout.
As it never has been tested, remove the broken driver.
Change-Id: I4bfa02fdbc5da5b556010c2f300faaf6dc845b80
Signed-off-by: Patrick Rudolph <siro(a)das-labor.org>
---
M src/mainboard/lenovo/l520/Kconfig
M src/mainboard/lenovo/l520/cmos.default
M src/mainboard/lenovo/l520/cmos.layout
3 files changed, 5 insertions(+), 10 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/98/20798/1
diff --git a/src/mainboard/lenovo/l520/Kconfig b/src/mainboard/lenovo/l520/Kconfig
index 4d317fa..7043184 100644
--- a/src/mainboard/lenovo/l520/Kconfig
+++ b/src/mainboard/lenovo/l520/Kconfig
@@ -17,7 +17,6 @@
select SOUTHBRIDGE_INTEL_BD82X6X
select SYSTEM_TYPE_LAPTOP
select USE_NATIVE_RAMINIT
- select DRIVERS_LENOVO_HYBRID_GRAPHICS
config HAVE_IFD_BIN
bool
diff --git a/src/mainboard/lenovo/l520/cmos.default b/src/mainboard/lenovo/l520/cmos.default
index f38beb4..a0abaed 100644
--- a/src/mainboard/lenovo/l520/cmos.default
+++ b/src/mainboard/lenovo/l520/cmos.default
@@ -14,5 +14,4 @@
sticky_fn=Disable
trackpoint=Enable
backlight=Both
-hybrid_graphics_mode=Integrated Only
usb_always_on=Disable
\ No newline at end of file
diff --git a/src/mainboard/lenovo/l520/cmos.layout b/src/mainboard/lenovo/l520/cmos.layout
index 8075904..678b7a8 100644
--- a/src/mainboard/lenovo/l520/cmos.layout
+++ b/src/mainboard/lenovo/l520/cmos.layout
@@ -67,7 +67,7 @@
416 1 e 1 trackpoint
417 1 e 1 fn_ctrl_swap
418 1 e 1 sticky_fn
-419 2 e 13 usb_always_on
+419 2 e 12 usb_always_on
421 1 e 9 sata_mode
422 2 e 10 backlight
@@ -76,8 +76,7 @@
# coreboot config options: northbridge
432 3 e 11 gfx_uma_size
-435 2 e 12 hybrid_graphics_mode
-#437 3 r 0 unused
+#435 5 r 0 unused
440 8 h 0 volume
# SandyBridge MRC Scrambler Seed values
@@ -134,11 +133,9 @@
11 4 160M
11 5 192M
11 6 224M
-12 0 Integrated Only
-12 1 Discrete Only
-13 0 Disable
-13 1 AC and battery
-13 2 AC only
+12 0 Disable
+12 1 AC and battery
+12 2 AC only
# -----------------------------------------------------------------
checksums
--
To view, visit https://review.coreboot.org/20798
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4bfa02fdbc5da5b556010c2f300faaf6dc845b80
Gerrit-Change-Number: 20798
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <siro(a)das-labor.org>
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/20794
to look at the new patch set (#2).
Change subject: mb/lenovo/t*00/romstage: Switch to new hybrid driver
......................................................................
mb/lenovo/t*00/romstage: Switch to new hybrid driver
Get rid of old hybrid graphics driver and use the new one.
1. Disable IGD and PEG in early romstage.
The PEG port will get disabled on devices that do not have a discrete GPU.
The power savings are around ~1Watt.
The disabled IGD does no longer waste GFX stolen memory.
2. The Nvidia GPU can be handled by the generic PCI driver and allows to use
the _ROM generator for Switchable graphics.
3. Settings are stored in devicetree.
One driver for all Lenovo hybrid graphics capable devices.
Needs test on all devices.
Change-Id: Ibf18b75e8afe2568de8498b39a608dac8db3ba73
Signed-off-by: Patrick Rudolph <siro(a)das-labor.org>
---
M src/drivers/lenovo/Kconfig
M src/drivers/lenovo/Makefile.inc
D src/drivers/lenovo/hybrid_graphics.c
M src/mainboard/lenovo/t420/devicetree.cb
M src/mainboard/lenovo/t420/romstage.c
M src/mainboard/lenovo/t420s/devicetree.cb
M src/mainboard/lenovo/t420s/romstage.c
M src/mainboard/lenovo/t430/devicetree.cb
M src/mainboard/lenovo/t430/romstage.c
M src/mainboard/lenovo/t520/devicetree.cb
M src/mainboard/lenovo/t520/romstage.c
M src/mainboard/lenovo/t530/devicetree.cb
M src/mainboard/lenovo/t530/romstage.c
13 files changed, 195 insertions(+), 131 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/94/20794/2
--
To view, visit https://review.coreboot.org/20794
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ibf18b75e8afe2568de8498b39a608dac8db3ba73
Gerrit-Change-Number: 20794
Gerrit-PatchSet: 2
Gerrit-Owner: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>