summaryrefslogtreecommitdiff
path: root/src/northbridge
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2014-09-29 19:51:21 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2014-10-01 20:15:55 +0200
commita341a77177c3e4b6c8de16b368f457d3d23c549a (patch)
tree717e4ceb49a3b1c05cf4d19fbfa89f17f8ef38f2 /src/northbridge
parent21fd2f4801bc7761981e509d135663f1a76f98fe (diff)
intel/i945: Fix "always false" statement
Also replace magic number with already existing #define Change-Id: I64d22aca185bf43ff0ac126584b41920182a1112 Found-by: Coverity Scan Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/6990 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Idwer Vollering <vidwer@gmail.com>
Diffstat (limited to 'src/northbridge')
-rw-r--r--src/northbridge/intel/i945/early_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/northbridge/intel/i945/early_init.c b/src/northbridge/intel/i945/early_init.c
index 08ce10be5f..a1346830dd 100644
--- a/src/northbridge/intel/i945/early_init.c
+++ b/src/northbridge/intel/i945/early_init.c
@@ -502,7 +502,7 @@ static void i945_setup_dmi_rcrb(void)
DMIBAR32(0x338) = DMIBAR32(0x334);
DMIBAR32(0x338) = DMIBAR32(0x338);
- if (i945_silicon_revision() == 1 && ((MCHBAR8(0xe08) & (1 << 5)) == 1)) {
+ if (i945_silicon_revision() == 1 && (MCHBAR8(DFT_STRAP1) & (1 << 5))) {
if ((MCHBAR32(0x214) & 0xf) != 0x3) {
printk(BIOS_INFO, "DMI link requires A1 stepping workaround. Rebooting.\n");
reg32 = DMIBAR32(0x224);