summaryrefslogtreecommitdiff
path: root/src/northbridge/amd/amdfam10/amdfam10.h
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-01-05 14:34:55 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-01-10 13:40:40 +0000
commit20c294884f3a87ca69c09d187cace3d426910320 (patch)
treed4587cd47d28c8af74596e1704759dec6342859f /src/northbridge/amd/amdfam10/amdfam10.h
parent934156694fa1225be5e36a9c088c3a6736c122e8 (diff)
downloadcoreboot-20c294884f3a87ca69c09d187cace3d426910320.tar.xz
amdfam10 boards: Simplify early resourcemap
Purpose of the table is to load initial address maps on PCI function 0:18.1. Provide a macro of its own so it is clear no other PCI devfn is accessed here. Change-Id: Ic146207580a5625c4f6799693157b02422bef00a Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/30783 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/northbridge/amd/amdfam10/amdfam10.h')
-rw-r--r--src/northbridge/amd/amdfam10/amdfam10.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/northbridge/amd/amdfam10/amdfam10.h b/src/northbridge/amd/amdfam10/amdfam10.h
index 163d9dfdcc..e1c88c9140 100644
--- a/src/northbridge/amd/amdfam10/amdfam10.h
+++ b/src/northbridge/amd/amdfam10/amdfam10.h
@@ -26,6 +26,11 @@
struct DCTStatStruc;
struct MCTStatStruc;
+
+/* Definitions for setup_resourcemap() variants. */
+
+#define ADDRMAP_REG(r) PCI_ADDR(CONFIG_CBB, CONFIG_CDB, 1, r)
+
#define RES_PCI_IO 0x10
#define RES_PORT_IO_8 0x22
#define RES_PORT_IO_32 0x20