aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/t400/devicetree.cb
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2017-07-25 18:18:57 +0200
committerMartin Roth <martinroth@google.com>2017-08-10 16:06:19 +0000
commit24680d0902f70d3b63f8d7b11f47ffac73697d94 (patch)
tree09005f9b40dbc99d25f89fe3ab61e858d02421e2 /src/mainboard/lenovo/t400/devicetree.cb
parentd7dcc44eb97dcf99093e64b887b9dc2296a31d21 (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/mainboard/lenovo/t400/devicetree.cb')
-rw-r--r--src/mainboard/lenovo/t400/devicetree.cb19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/t400/devicetree.cb b/src/mainboard/lenovo/t400/devicetree.cb
index 1adba8b17d..fd5b514c4a 100644
--- a/src/mainboard/lenovo/t400/devicetree.cb
+++ b/src/mainboard/lenovo/t400/devicetree.cb
@@ -206,6 +206,25 @@ chip northbridge/intel/gm45
end
end
+ chip drivers/lenovo/hybrid_graphics
+ device pnp ff.f on end # dummy
+
+ register "detect_gpio" = "21"
+
+ register "has_panel_hybrid_gpio" = "1"
+ register "panel_hybrid_gpio" = "22"
+ register "panel_integrated_lvl" = "0"
+
+ register "has_backlight_gpio" = "1"
+ register "backlight_gpio" = "19"
+ register "backlight_integrated_lvl" = "0"
+
+ register "has_dgpu_power_gpio" = "1"
+ register "dgpu_power_gpio" = "49"
+ register "dgpu_power_off_lvl" = "0"
+
+ register "has_thinker1" = "0"
+ end
end
device pci 1f.2 on # SATA/IDE 1
subsystemid 0x17aa 0x20f8