Since some people disapprove of white space cleanups mixed in regular commits
[coreboot.git] / src / mainboard / tyan / s2735 / romstage.c
index 40a9863a221feefabe8a77d816ccfde3cb0959d2..de3124cb90773e3c8808db1681a52e85d63612e1 100644 (file)
@@ -1,4 +1,4 @@
+
 #include <stdint.h>
 #include <string.h>
 #include <device/pci_def.h>
@@ -15,7 +15,6 @@
 #include "southbridge/intel/i82801ex/i82801ex_early_smbus.c"
 #include "northbridge/intel/e7501/raminit.h"
 
-#include "cpu/x86/lapic/boot_cpu.c"
 #include "northbridge/intel/e7501/debug.c"
 #include "superio/winbond/w83627hf/w83627hf_early_serial.c"
 
@@ -32,15 +31,6 @@ static void hard_reset(void)
         outb(0x0e, 0x0cf9);
 }
 
-static void soft_reset(void)
-{
-#if 1
-        /* link reset */
-       outb(0x02, 0x0cf9);
-        outb(0x06, 0x0cf9);
-#endif
-}
-
 static inline int spd_read_byte(unsigned device, unsigned address)
 {
        return smbus_read_byte(device, address);
@@ -60,15 +50,11 @@ void main(unsigned long bist)
                         .channel1 = { (0xa<<3)|4, (0xa<<3)|5, (0xa<<3)|6, 0 },
                 },
        };
-       
-       unsigned cpu_reset = 0;
 
        if (bist == 0) {
                enable_lapic();
        }
 
-//     post_code(0x32);
-       
        w83627hf_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
         uart_init();
         console_init();
@@ -76,8 +62,6 @@ void main(unsigned long bist)
        /* Halt if there was a built in self test failure */
        report_bist_failure(bist);
 
-//        setup_s2735_resource_map();
-
        if(bios_reset_detected()) {
                hard_reset();
        }