Drop tons of duplicated debug.c files, move common file to
[coreboot.git] / src / mainboard / eaglelion / 5bcm / auto.c
1 #define ASSEMBLY 1
2
3 #include <stdint.h>
4 #include <device/pci_def.h>
5 #include <arch/io.h>
6 #include <device/pnp_def.h>
7 #include <arch/romcc_io.h>
8 #include <arch/hlt.h>
9 #include <stdlib.h>
10 #include "pc80/serial.c"
11 #include "arch/i386/lib/console.c"
12 #include "ram/ramtest.c"
13 //#include "southbridge/intel/i440bx/i440bx_early_smbus.c"
14 #include "superio/nsc/pc97317/pc97317_early_serial.c"
15 //#include "northbridge/intel/i440bx/raminit.h"
16 #include "cpu/x86/bist.h"
17
18 #define SERIAL_DEV PNP_DEV(0x2e, PC97317_SP1)
19
20 //#include "lib/delay.c"
21
22 #include "northbridge/amd/gx1/raminit.c"
23
24 static void main(unsigned long bist)
25 {
26         pc97317_enable_serial(SERIAL_DEV, TTYS0_BASE);
27         uart_init();
28         console_init();
29
30         /* Halt if there was a built in self test failure */
31         report_bist_failure(bist);
32         
33         sdram_init();
34         
35         /* Check all of memory */
36 #if 0
37         ram_check(0x00000000, msr.lo);
38 #endif
39 #if 0
40         static const struct {
41                 unsigned long lo, hi;
42         } check_addrs[] = {
43                 /* Check 16MB of memory @ 0*/
44                 { 0x00000000, 0x01000000 },
45 #if TOTAL_CPUS > 1
46                 /* Check 16MB of memory @ 2GB */
47                 { 0x80000000, 0x81000000 },
48 #endif
49         };
50         int i;
51         for(i = 0; i < ARRAY_SIZE(check_addrs); i++) {
52                 ram_check(check_addrs[i].lo, check_addrs[i].hi);
53         }
54 #endif
55 }