summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/z61t
diff options
context:
space:
mode:
authorPeter Lemenkov <lemenkov@gmail.com>2018-10-23 11:17:32 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-01-14 11:57:06 +0000
commite23245517bed9befc41bbc8c571e05782a95d5fe (patch)
tree88bcdbc2a0da58c4f8a19335b0590948bc83cfdf /src/mainboard/lenovo/z61t
parent7b42811fa55bb5ea67c8dc71cd9436cd8ddd83c3 (diff)
mb/lenovo/*/romstage: Use macros instead of magic numbers
Apparently coreboot still uses magic numbers instead of macros in some Lenovo mainboards. Let's use macros instead. Note that IOTR[0123] is a 64-bit width variable. Change-Id: Icf185c77ede5a258fe37be9e772be6804d014b57 Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> Reviewed-on: https://review.coreboot.org/c/29208 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/mainboard/lenovo/z61t')
-rw-r--r--src/mainboard/lenovo/z61t/romstage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/lenovo/z61t/romstage.c b/src/mainboard/lenovo/z61t/romstage.c
index 985cebaa87..966d0e5759 100644
--- a/src/mainboard/lenovo/z61t/romstage.c
+++ b/src/mainboard/lenovo/z61t/romstage.c
@@ -100,12 +100,12 @@ static void rcba_config(void)
RCBA32(FD) |= FD_INTLAN;
/* Set up I/O Trap #0 for 0xfe00 (SMIC) */
- RCBA32(0x1e84) = 0x00020001;
RCBA32(IOTR0) = 0x0000fe01;
+ RCBA32(IOTR0+4) = 0x00020001;
/* Set up I/O Trap #3 for 0x800-0x80c (Trap) */
- RCBA32(0x1e9c) = 0x000200f0;
RCBA32(IOTR3) = 0x000c0801;
+ RCBA32(IOTR3+4) = 0x000200f0;
}
static void early_ich7_init(void)