summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2017-01-21 10:43:52 +0100
committerMartin Roth <martinroth@google.com>2017-02-04 23:01:55 +0100
commitbb1af99622e7e4a303f49618a4ecbb02606d1cba (patch)
tree66e00851eb6fc1baddf8efa17a12e7e6c7c06aa7
parenta5c2ac6256d0dae112b24c422d1270919acb6321 (diff)
downloadcoreboot-bb1af99622e7e4a303f49618a4ecbb02606d1cba.tar.xz
nb/intel/gm45/igd: Hide IGD while disabling
Hide the IGD to make sure ramstage doesn't detect it. Change-Id: If389016f3bb0c4c2fd0b826914997a87a9137201 Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/18194 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber <nico.h@gmx.de>
-rw-r--r--src/northbridge/intel/gm45/igd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/northbridge/intel/gm45/igd.c b/src/northbridge/intel/gm45/igd.c
index 74572ca72a..1164339c8a 100644
--- a/src/northbridge/intel/gm45/igd.c
+++ b/src/northbridge/intel/gm45/igd.c
@@ -127,6 +127,11 @@ static void disable_igd(const sysinfo_t *const sysinfo)
MCHBAR16(0x119e) = (MCHBAR16(0x119e) & ~(7 << 13)) | (4 << 13);
MCHBAR16(0x119e) |= (1 << 12);
}
+
+ /* Hide IGD. */
+ u32 deven = pci_read_config32(mch_dev, D0F0_DEVEN);
+ deven &= ~(3 << 3);
+ pci_write_config32(mch_dev, D0F0_DEVEN, deven);
}
void init_igd(const sysinfo_t *const sysinfo)