From f9f91a70b913e36347d38ce02d17c1e715f39669 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Wed, 19 Apr 2017 15:13:05 +0200 Subject: nb/amdk8: Link coherent_ht.c Change-Id: I1ef1323dc1f3005ed194ad82b75c87ef41864217 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/19367 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/northbridge/amd/amdk8/coherent_ht.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/northbridge/amd/amdk8/coherent_ht.c') diff --git a/src/northbridge/amd/amdk8/coherent_ht.c b/src/northbridge/amd/amdk8/coherent_ht.c index 464375f2c5..10ca6ee013 100644 --- a/src/northbridge/amd/amdk8/coherent_ht.c +++ b/src/northbridge/amd/amdk8/coherent_ht.c @@ -63,11 +63,14 @@ CPU1-------------CPU0 */ +#include +#include #include #include #include #include #include +#include #include #include #if CONFIG_HAVE_OPTION_TABLE @@ -78,10 +81,6 @@ #define enable_bsp_routing() enable_routing(0) -#define NODE_HT(x) PCI_DEV(0,24+x,0) -#define NODE_MP(x) PCI_DEV(0,24+x,1) -#define NODE_MC(x) PCI_DEV(0,24+x,3) - #define DEFAULT 0x00010101 /* default row entry */ @@ -1703,12 +1702,12 @@ static int optimize_link_read_pointers(unsigned nodes) return needs_reset; } -static inline unsigned get_nodes(void) +unsigned int get_nodes(void) { return ((pci_read_config32(PCI_DEV(0, 0x18, 0), 0x60)>>4) & 7) + 1; } -static int optimize_link_coherent_ht(void) +int optimize_link_coherent_ht(void) { int needs_reset = 0; @@ -1772,9 +1771,9 @@ static int optimize_link_coherent_ht(void) } #if CONFIG_RAMINIT_SYSINFO -static void setup_coherent_ht_domain(void) +void setup_coherent_ht_domain(void) #else -static int setup_coherent_ht_domain(void) +int setup_coherent_ht_domain(void) #endif { unsigned nodes; -- cgit v1.2.3