2 #include <device/pci_def.h>
4 #include <device/pnp_def.h>
5 #include <arch/romcc_io.h>
8 #include <console/console.h>
9 #include "lib/ramtest.c"
10 #include "superio/nsc/pc97317/pc97317_early_serial.c"
11 #include "cpu/x86/bist.h"
12 #include "southbridge/amd/cs5530/cs5530_enable_rom.c"
13 #include "northbridge/amd/gx1/raminit.c"
15 #define SERIAL_DEV PNP_DEV(0x2e, PC97317_SP1)
17 static void main(unsigned long bist)
19 pc97317_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
23 /* Halt if there was a built in self test failure */
24 report_bist_failure(bist);
30 /* Check all of memory */
32 ram_check(0x00000000, msr.lo);
38 /* Check 16MB of memory @ 0*/
39 { 0x00000000, 0x01000000 },
41 /* Check 16MB of memory @ 2GB */
42 { 0x80000000, 0x81000000 },
46 for(i = 0; i < ARRAY_SIZE(check_addrs); i++) {
47 ram_check(check_addrs[i].lo, check_addrs[i].hi);