diff options
author | Myles Watson <mylesgw@gmail.com> | 2010-05-10 19:45:45 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2010-05-10 19:45:45 +0000 |
commit | 48beb8276989f35f5510fbdc101cd2a222a3d21e (patch) | |
tree | 1ff764d14ee4c51b82d34b84f75d37d325cc6c60 /src/northbridge | |
parent | b904d7bce9e258b2a460a0025a6a3828ec192cf0 (diff) |
Make show_all_routes work for fam10.
Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5542 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge')
-rw-r--r-- | src/northbridge/amd/amdfam10/Makefile.inc | 4 | ||||
-rw-r--r-- | src/northbridge/amd/amdfam10/amdfam10.h | 4 | ||||
-rw-r--r-- | src/northbridge/amd/amdfam10/util.c | 8 |
3 files changed, 12 insertions, 4 deletions
diff --git a/src/northbridge/amd/amdfam10/Makefile.inc b/src/northbridge/amd/amdfam10/Makefile.inc index c73f82a52c..91f488d50a 100644 --- a/src/northbridge/amd/amdfam10/Makefile.inc +++ b/src/northbridge/amd/amdfam10/Makefile.inc @@ -10,3 +10,7 @@ obj-$(CONFIG_GENERATE_ACPI_TABLES) += sspr4.o obj-$(CONFIG_GENERATE_ACPI_TABLES) += sspr5.o obj-y += get_pci1234.o + +# Enable this if you want to check the values of the PCI routing registers. +# Call show_all_routes() anywhere amdfam10.h is included. +#obj-y += util.o diff --git a/src/northbridge/amd/amdfam10/amdfam10.h b/src/northbridge/amd/amdfam10/amdfam10.h index 49046fb531..a69e624520 100644 --- a/src/northbridge/amd/amdfam10/amdfam10.h +++ b/src/northbridge/amd/amdfam10/amdfam10.h @@ -1169,4 +1169,8 @@ static void wait_all_core0_mem_trained(struct sys_info *sysinfo) #endif +#ifndef __ROMCC__ +void showallroutes(int level, device_t dev); +#endif + #endif /* AMDFAM10_H */ diff --git a/src/northbridge/amd/amdfam10/util.c b/src/northbridge/amd/amdfam10/util.c index 2e81d87f06..ae0f55cec9 100644 --- a/src/northbridge/amd/amdfam10/util.c +++ b/src/northbridge/amd/amdfam10/util.c @@ -19,18 +19,18 @@ */ /* - * K8 northbridge utilities (dump routing registers). + * fam10 northbridge utilities (dump routing registers). * Designed to be called at any time. * It can be called before RAM is set up by including this file. - * It can be called after RAM is set up by including amdk8.h and enabling the - * compilation of this file in src/northbridge/amd/amdk8/Makefile.inc. + * It can be called after RAM is set up by including amdfam10.h and enabling the + * compilation of this file in src/northbridge/amd/amdfam10/Makefile.inc. */ #ifndef __PRE_RAM__ #include <console/console.h> #include <device/pci.h> #include <device/pci_ops.h> #endif -#include "amdk8.h" +#include "amdfam10.h" /* Function 1 */ /* the DRAM, MMIO,and PCIIO routing are 64-bit registers, hence the ending at |