X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fmainboard%2Fdell%2Fs1850%2Fromstage.c;h=0b64c9d9ebbdbca385c4203a28a0867e366155f4;hb=6dc92f0d1a4b6a79c2db800c5bd071daa75a9a23;hp=952c37c1cf42d78b78e2c41ff3977bebde80df5e;hpb=138be8315b63b0c8955159580d085e7621882b95;p=coreboot.git diff --git a/src/mainboard/dell/s1850/romstage.c b/src/mainboard/dell/s1850/romstage.c index 952c37c1c..0b64c9d9e 100644 --- a/src/mainboard/dell/s1850/romstage.c +++ b/src/mainboard/dell/s1850/romstage.c @@ -1,5 +1,3 @@ -#define ASSEMBLY 1 -#define __PRE_RAM__ #include #include #include @@ -7,10 +5,7 @@ #include #include #include -#include "option_table.h" -#include "pc80/mc146818rtc_early.c" -#include "pc80/serial.c" -#include "arch/i386/lib/console.c" +#include #include "lib/ramtest.c" #include "southbridge/intel/i82801ex/i82801ex_early_smbus.c" #include "northbridge/intel/e7520/raminit.h" @@ -19,14 +14,12 @@ #include "cpu/x86/mtrr/earlymtrr.c" #include "debug.c" #include "watchdog.c" -#include "reset.c" +// Remove comment if resets in this file are actually used. +// #include "reset.c" #include "s1850_fixups.c" #include "northbridge/intel/e7520/memory_initialized.c" #include "cpu/x86/bist.h" - - -#define SIO_GPIO_BASE 0x680 -#define SIO_XBUS_BASE 0x4880 +#include #define CONSOLE_SERIAL_DEV PNP_DEV(0x2e, PC8374_SP1) @@ -40,25 +33,14 @@ 0 ) #define DEVPRES1_CONFIG (DEVPRES1_D0F1 | DEVPRES1_D8F0) -#define RECVENA_CONFIG 0x0808090a -#define RECVENB_CONFIG 0x0808090a - -static inline void activate_spd_rom(const struct mem_controller *ctrl) -{ - /* nothing to do */ -} static inline int spd_read_byte(unsigned device, unsigned address) { return smbus_read_byte(device, address); } -/* this is very highly mainboard dependent, related to wiring */ -/* from factory BIOS via lspci */ -#define DIMM_MAP_LOGICAL 0x2841 #include "northbridge/intel/e7520/raminit.c" #include "lib/generic_sdram.c" - /* IPMI garbage. This is all test stuff, if it really works we'll move it somewhere */ @@ -70,10 +52,9 @@ static inline int spd_read_byte(unsigned device, unsigned address) #define ipmidata 0xca0 #define ipmicsr 0xca4 - static inline void ibfzero(void) { - while(inb(ipmicsr) & (1<