[coreboot-gerrit] Change in coreboot[master]: [WIP] Update libgfxinit for dynamic CPU detection

Nico Huber (Code Review) gerrit at coreboot.org
Mon Jun 18 00:03:02 CEST 2018


Nico Huber has uploaded this change for review. ( https://review.coreboot.org/27145


Change subject: [WIP] Update libgfxinit for dynamic CPU detection
......................................................................

[WIP] Update libgfxinit for dynamic CPU detection

Change-Id: I8c349f0ee42c7b201ef0c7461c39c82dede823a9
Signed-off-by: Nico Huber <nico.h at gmx.de>
---
M 3rdparty/libgfxinit
M 3rdparty/libhwbase
M src/drivers/intel/gma/Kconfig
M src/drivers/intel/gma/hires_fb/gma.adb
4 files changed, 22 insertions(+), 6 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/45/27145/1

diff --git a/3rdparty/libgfxinit b/3rdparty/libgfxinit
index 718c79b..26d68ca 160000
--- a/3rdparty/libgfxinit
+++ b/3rdparty/libgfxinit
@@ -1 +1 @@
-Subproject commit 718c79bb0713b5b90c9cc44e03197dc777066e3d
+Subproject commit 26d68ca84e2e7bae1387e06c55e9b7b9d5230282
diff --git a/3rdparty/libhwbase b/3rdparty/libhwbase
index 637f2a4..b38f4b2 160000
--- a/3rdparty/libhwbase
+++ b/3rdparty/libhwbase
@@ -1 +1 @@
-Subproject commit 637f2a4f21ead8ccc45d5256834eb27ce72088db
+Subproject commit b38f4b254801aa0c30b25d7f4cd383cac7b04fb5
diff --git a/src/drivers/intel/gma/Kconfig b/src/drivers/intel/gma/Kconfig
index 1b9c2a6..6e4a875 100644
--- a/src/drivers/intel/gma/Kconfig
+++ b/src/drivers/intel/gma/Kconfig
@@ -73,6 +73,22 @@
 
 if GFX_GMA
 
+config GFX_GMA_GENERATION
+	string
+	default "Skylake" if SOC_INTEL_SKYLAKE
+	default "Haswell" if NORTHBRIDGE_INTEL_HASWELL || SOC_INTEL_BROADWELL
+	default "Ironlake" if	NORTHBRIDGE_INTEL_NEHALEM || \
+				NORTHBRIDGE_INTEL_SANDYBRIDGE || \
+				NORTHBRIDGE_INTEL_IVYBRIDGE
+	default "G45" if NORTHBRIDGE_INTEL_GM45 || NORTHBRIDGE_INTEL_X4X
+
+config GFX_GMA_DYN_CPU
+	boolean
+	default y if	NORTHBRIDGE_INTEL_SANDYBRIDGE || \
+			NORTHBRIDGE_INTEL_IVYBRIDGE || \
+			(NORTHBRIDGE_INTEL_HASWELL && !INTEL_LYNXPOINT_LP) || \
+			(SOC_INTEL_SKYLAKE && SKYLAKE_SOC_PCH_H)
+
 config GFX_GMA_CPU
 	string
 	default "Skylake" if SOC_INTEL_SKYLAKE
diff --git a/src/drivers/intel/gma/hires_fb/gma.adb b/src/drivers/intel/gma/hires_fb/gma.adb
index ca0f708..bd14132 100644
--- a/src/drivers/intel/gma/hires_fb/gma.adb
+++ b/src/drivers/intel/gma/hires_fb/gma.adb
@@ -60,8 +60,8 @@
 
       success : boolean;
 
-      min_h : pos16 := pos16'last;
-      min_v : pos16 := pos16'last;
+      min_h : pos32 := pos32'last;
+      min_v : pos32 := pos32'last;
    begin
       lightup_ok := 0;
 
@@ -75,8 +75,8 @@
             for i in Pipe_Index loop
                exit when configs (i).Port = Disabled;
 
-               min_h := pos16'min (min_h, configs (i).Mode.H_Visible);
-               min_v := pos16'min (min_v, configs (i).Mode.V_Visible);
+               min_h := pos32'min (min_h, configs (i).Mode.H_Visible);
+               min_v := pos32'min (min_v, configs (i).Mode.V_Visible);
             end loop;
 
             fb := configs (Primary).Framebuffer;

-- 
To view, visit https://review.coreboot.org/27145
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8c349f0ee42c7b201ef0c7461c39c82dede823a9
Gerrit-Change-Number: 27145
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h at gmx.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180617/bef0c998/attachment.html>


More information about the coreboot-gerrit mailing list