From c2ce370f30b60daf60e23182cf01eb898d35fbbd Mon Sep 17 00:00:00 2001 From: Idwer Vollering Date: Sun, 5 Jan 2020 01:44:25 +0100 Subject: src/mainboard: remove MMIO macros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This touches several mainboards. Replace the macro with C functions. The presence of bootblock.c is assumed. Change-Id: I583034ef0b0ed3e5a5e3dd680c57728ec5efbc8f Signed-off-by: Idwer Vollering Reviewed-on: https://review.coreboot.org/c/coreboot/+/37738 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- src/mainboard/amd/thatcher/romstage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mainboard/amd/thatcher') diff --git a/src/mainboard/amd/thatcher/romstage.c b/src/mainboard/amd/thatcher/romstage.c index 5678021f8b..0a2821ba60 100644 --- a/src/mainboard/amd/thatcher/romstage.c +++ b/src/mainboard/amd/thatcher/romstage.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -50,5 +51,5 @@ void board_BeforeAgesa(struct sysinfo *cb) outb(0x1, 0xcd7); outb(0xea, 0xcd6); outb(0x1, 0xcd7); - *(u8 *)0xfed80101 = 0x98; + gpio_100_write8(0x1, 0x98); } -- cgit v1.2.3