diff options
author | Idwer Vollering <vidwer@gmail.com> | 2020-01-05 01:44:25 +0100 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2020-01-09 16:03:07 +0000 |
commit | c2ce370f30b60daf60e23182cf01eb898d35fbbd (patch) | |
tree | 7b4fc0f6682a74264c617a26010a8bb1be215a4c /src/mainboard/amd | |
parent | 7c0711092371a7e92c7b37d252ac4a74992dac87 (diff) | |
download | coreboot-c2ce370f30b60daf60e23182cf01eb898d35fbbd.tar.xz |
src/mainboard: remove MMIO macros
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 <vidwer@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37738
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/mainboard/amd')
-rw-r--r-- | src/mainboard/amd/thatcher/romstage.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <arch/io.h> #include <console/console.h> #include <device/pci_ops.h> +#include <amdblocks/acpimmio.h> #include <northbridge/amd/agesa/state_machine.h> #include <southbridge/amd/agesa/hudson/hudson.h> #include <superio/smsc/lpc47n217/lpc47n217.h> @@ -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); } |