Author: myles Date: Mon May 10 21:45:45 2010 New Revision: 5542 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5542
Log: Make show_all_routes work for fam10.
Signed-off-by: Myles Watson mylesgw@gmail.com Acked-by: Myles Watson mylesgw@gmail.com
Modified: trunk/src/northbridge/amd/amdfam10/Makefile.inc trunk/src/northbridge/amd/amdfam10/amdfam10.h trunk/src/northbridge/amd/amdfam10/util.c
Modified: trunk/src/northbridge/amd/amdfam10/Makefile.inc ============================================================================== --- trunk/src/northbridge/amd/amdfam10/Makefile.inc Mon May 10 21:38:59 2010 (r5541) +++ trunk/src/northbridge/amd/amdfam10/Makefile.inc Mon May 10 21:45:45 2010 (r5542) @@ -10,3 +10,7 @@ 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
Modified: trunk/src/northbridge/amd/amdfam10/amdfam10.h ============================================================================== --- trunk/src/northbridge/amd/amdfam10/amdfam10.h Mon May 10 21:38:59 2010 (r5541) +++ trunk/src/northbridge/amd/amdfam10/amdfam10.h Mon May 10 21:45:45 2010 (r5542) @@ -1169,4 +1169,8 @@
#endif
+#ifndef __ROMCC__ +void showallroutes(int level, device_t dev); +#endif + #endif /* AMDFAM10_H */
Modified: trunk/src/northbridge/amd/amdfam10/util.c ============================================================================== --- trunk/src/northbridge/amd/amdfam10/util.c Mon May 10 21:38:59 2010 (r5541) +++ trunk/src/northbridge/amd/amdfam10/util.c Mon May 10 21:45:45 2010 (r5542) @@ -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