[coreboot-gerrit] Change in coreboot[master]: NOT-FOR-MERGE: X1 libgfxinit

Alexander Couzens (Code Review) gerrit at coreboot.org
Mon Apr 24 23:43:27 CEST 2017


Alexander Couzens has uploaded a new change for review. ( https://review.coreboot.org/19437 )

Change subject: NOT-FOR-MERGE: X1 libgfxinit
......................................................................

NOT-FOR-MERGE: X1 libgfxinit

Change-Id: Id59dd16da8ddb092237aaec7fa578d0c35c1ec75
---
M src/mainboard/lenovo/x1_carbon_gen1/Kconfig
M src/mainboard/lenovo/x1_carbon_gen1/Makefile.inc
A src/mainboard/lenovo/x1_carbon_gen1/gma-mainboard.ads
3 files changed, 23 insertions(+), 0 deletions(-)


  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/37/19437/1

diff --git a/src/mainboard/lenovo/x1_carbon_gen1/Kconfig b/src/mainboard/lenovo/x1_carbon_gen1/Kconfig
index aad6d6e..8d59079 100644
--- a/src/mainboard/lenovo/x1_carbon_gen1/Kconfig
+++ b/src/mainboard/lenovo/x1_carbon_gen1/Kconfig
@@ -19,6 +19,8 @@
 	select SANDYBRIDGE_IVYBRIDGE_LVDS
 	select DRIVERS_RICOH_RCE822
 	select MAINBOARD_HAS_LPC_TPM
+	select MAINBOARD_HAS_LIBGFXINIT
+	select GFX_GMA_INTERNAL_IS_LVDS
 
 	# Workaround for EC/KBC IRQ1.
 	select SERIRQ_CONTINUOUS_MODE
diff --git a/src/mainboard/lenovo/x1_carbon_gen1/Makefile.inc b/src/mainboard/lenovo/x1_carbon_gen1/Makefile.inc
index b2aa959..ee08d78 100644
--- a/src/mainboard/lenovo/x1_carbon_gen1/Makefile.inc
+++ b/src/mainboard/lenovo/x1_carbon_gen1/Makefile.inc
@@ -17,3 +17,5 @@
 
 smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c
 romstage-y += gpio.c
+
+ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads
diff --git a/src/mainboard/lenovo/x1_carbon_gen1/gma-mainboard.ads b/src/mainboard/lenovo/x1_carbon_gen1/gma-mainboard.ads
new file mode 100644
index 0000000..11ec840
--- /dev/null
+++ b/src/mainboard/lenovo/x1_carbon_gen1/gma-mainboard.ads
@@ -0,0 +1,19 @@
+with HW.GFX.GMA;
+with HW.GFX.GMA.Display_Probing;
+
+use HW.GFX.GMA;
+use HW.GFX.GMA.Display_Probing;
+
+private package GMA.Mainboard is
+
+   ports : constant Port_List :=
+     (DP1,
+      DP2,
+      DP3,
+      HDMI1,
+      HDMI2,
+      HDMI3,
+      Internal,
+      others => Disabled);
+
+end GMA.Mainboard;

-- 
To view, visit https://review.coreboot.org/19437
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id59dd16da8ddb092237aaec7fa578d0c35c1ec75
Gerrit-PatchSet: 1
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Alexander Couzens <lynxis at fe80.eu>



More information about the coreboot-gerrit mailing list