[coreboot-gerrit] Change in libgfxinit[master]: [HACK] G45 update

Nico Huber (Code Review) gerrit at coreboot.org
Sun Oct 29 15:08:46 CET 2017


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


Change subject: [HACK] G45 update
......................................................................

[HACK] G45 update

VGACNTRL is at a different location, PFIT_CONTROL vanished with Ironlake?
Do not use on anything newer.

Change-Id: Ida58e8dd10a4b430d815f388ddd9155ce40d3789
Signed-off-by: Nico Huber <nico.h at gmx.de>
---
M common/hw-gfx-gma-pipe_setup.adb
M common/hw-gfx-gma-registers.ads
2 files changed, 7 insertions(+), 3 deletions(-)



  git pull ssh://review.coreboot.org:29418/libgfxinit refs/changes/20/22220/1

diff --git a/common/hw-gfx-gma-pipe_setup.adb b/common/hw-gfx-gma-pipe_setup.adb
index 256c7f5..a98e38f 100644
--- a/common/hw-gfx-gma-pipe_setup.adb
+++ b/common/hw-gfx-gma-pipe_setup.adb
@@ -235,7 +235,8 @@
                            VGA_CONTROL_BLINK_DUTY_CYCLE_MASK or
                            VGA_CONTROL_VSYNC_BLINK_RATE_MASK,
             Mask_Set    => VGA_CONTROL_BLINK_DUTY_CYCLE_50 or
-                           VGA_CONTROL_VSYNC_BLINK_RATE (30));
+                           VGA_CONTROL_VSYNC_BLINK_RATE (30) or
+                           16#4_0000#);
 
          Port_IO.OutB (VGA_SR_INDEX, VGA_SR01);
          Port_IO.InB  (Reg8, VGA_SR_DATA);
@@ -377,6 +378,7 @@
       Registers.Write
         (Register => Controller.PF_WIN_SZ,
          Value    => Shift_Left (Word32 (Width), 16) or Word32 (Height));
+      Registers.Write (Registers.GMCH_PFIT_CONTROL, 16#8000_0000#);
    end Setup_Ironlake_Panel_Fitter;
 
    procedure Setup_Scaling
diff --git a/common/hw-gfx-gma-registers.ads b/common/hw-gfx-gma-registers.ads
index d061b2a..75fecd4 100644
--- a/common/hw-gfx-gma-registers.ads
+++ b/common/hw-gfx-gma-registers.ads
@@ -76,7 +76,6 @@
       BCS_PP_DCLV_HIGH,
       BCS_PP_DCLV_LOW,
       GAB_CTL_REG,
-      VGACNTRL,
       FUSE_STATUS,
       ILK_DISPLAY_CHICKEN2,
       DSPCLK_GATE_D,
@@ -170,6 +169,7 @@
       GMCH_PP_ON_DELAYS,
       GMCH_PP_OFF_DELAYS,
       GMCH_PP_DIVISOR,
+      GMCH_PFIT_CONTROL,
       PIPEB_DDI_FUNC_CTL,
       PIPEB_MSA_MISC,
       SRD_CTL_B,
@@ -498,6 +498,7 @@
       PLANE_WM_1_B_7,
       PLANE_BUF_CFG_1_B,
       SPBCNTR,
+      VGACNTRL,
       PIPE_SCANLINE_C,
       PIPECCONF,
       PIPECMISC,
@@ -1313,6 +1314,7 @@
       GMCH_PP_ON_DELAYS     => 16#06_1208# / Register_Width,
       GMCH_PP_OFF_DELAYS    => 16#06_120c# / Register_Width,
       GMCH_PP_DIVISOR       => 16#06_1210# / Register_Width,
+      GMCH_PFIT_CONTROL     => 16#06_1230# / Register_Width,
       PCH_PP_STATUS         => 16#0c_7200# / Register_Width,
       PCH_PP_CONTROL        => 16#0c_7204# / Register_Width,
       PCH_PP_ON_DELAYS      => 16#0c_7208# / Register_Width,
@@ -1349,7 +1351,7 @@
       PCH_HDMID             => 16#0e_1160# / Register_Width,
 
       -- Intel Registers
-      VGACNTRL              => 16#04_1000# / Register_Width,
+      VGACNTRL              => 16#07_1400# / Register_Width,
       FUSE_STATUS           => 16#04_2000# / Register_Width,
       FBA_CFB_BASE          => 16#04_3200# / Register_Width,
       IPS_CTL               => 16#04_3408# / Register_Width,

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

Gerrit-Project: libgfxinit
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ida58e8dd10a4b430d815f388ddd9155ce40d3789
Gerrit-Change-Number: 22220
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/20171029/d40142b1/attachment.html>


More information about the coreboot-gerrit mailing list