nb/intel/sandybridge: Clean up DMIBAR/EPBAR registers
Several registers have been copy-pasted from i945 and do not exist on
Sandy Bridge. Moreover, other register definitions were missing. Use the
newly-added definitions in existing code, in place of numerical offsets.
Tested with BUILD_TIMELESS=1, Lenovo ThinkPad X230 remains identical.
Change-Id: I9ad849f57bc68256a2a87ffdc856c4b521e35892
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45357
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/northbridge/intel/sandybridge/early_dmi.c b/src/northbridge/intel/sandybridge/early_dmi.c
index 287c441..d4cbec8 100644
--- a/src/northbridge/intel/sandybridge/early_dmi.c
+++ b/src/northbridge/intel/sandybridge/early_dmi.c
@@ -157,8 +157,8 @@
DMIBAR32(0x0914 + (i << 5)) = 0x98200280;
}
- DMIBAR32(0x022c); // !!! = 0x00c26460
- DMIBAR32(0x022c) = 0x00c2403c;
+ DMIBAR32(DMIL0SLAT); // !!! = 0x00c26460
+ DMIBAR32(DMIL0SLAT) = 0x00c2403c;
early_pch_init_native_dmi_pre();