intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP
Change-Id: I02881ce465cb3835a6fa7c06b718aa42d0d327ec Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/15227 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
633c57d1d1
commit
07921540dd
39 changed files with 79 additions and 68 deletions
|
@ -318,7 +318,12 @@ lout:
|
|||
/* We need to set EBP? No need. */
|
||||
movl %esp, %ebp
|
||||
pushl %eax /* BIST */
|
||||
call main
|
||||
call romstage_main
|
||||
|
||||
/* Save return value from romstage_main. It contains the stack to use
|
||||
* after cache-as-ram is torn down. It also contains the information
|
||||
* for setting up MTRRs. */
|
||||
movl %eax, %ebx
|
||||
|
||||
/* We don't need CAR from now on. */
|
||||
|
||||
|
@ -356,7 +361,8 @@ __main:
|
|||
post_code(POST_PREPARE_RAMSTAGE)
|
||||
cld /* Clear direction flag. */
|
||||
|
||||
movl $CONFIG_RAMTOP, %esp
|
||||
/* Setup stack as indicated by return value from romstage_main(). */
|
||||
movl %ebx, %esp
|
||||
movl %esp, %ebp
|
||||
call copy_and_run
|
||||
|
||||
|
|
|
@ -29,3 +29,4 @@ subdirs-y += ../../x86/smm
|
|||
subdirs-y += ../microcode
|
||||
|
||||
cpu_incs-y += $(src)/cpu/intel/car/cache_as_ram.inc
|
||||
romstage-y += ../car/romstage.c
|
||||
|
|
|
@ -23,3 +23,4 @@ subdirs-y += ../../x86/smm
|
|||
subdirs-y += ../microcode
|
||||
|
||||
cpu_incs-y += $(src)/cpu/intel/car/cache_as_ram.inc
|
||||
romstage-y += ../car/romstage.c
|
||||
|
|
|
@ -23,3 +23,4 @@ subdirs-y += ../../x86/smm
|
|||
subdirs-y += ../microcode
|
||||
|
||||
cpu_incs-y += $(src)/cpu/intel/car/cache_as_ram.inc
|
||||
romstage-y += ../car/romstage.c
|
||||
|
|
|
@ -7,3 +7,4 @@ subdirs-y += ../../x86/smm
|
|||
subdirs-y += ../microcode
|
||||
|
||||
cpu_incs-y += $(src)/cpu/intel/car/cache_as_ram.inc
|
||||
romstage-y += ../car/romstage.c
|
||||
|
|
|
@ -10,3 +10,4 @@ subdirs-y += ../microcode
|
|||
subdirs-y += ../hyperthreading
|
||||
|
||||
cpu_incs-y += $(src)/cpu/intel/car/cache_as_ram.inc
|
||||
romstage-y += ../car/romstage.c
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/winbond/common/winbond.h>
|
||||
#include <superio/winbond/w83977tf/w83977tf.h>
|
||||
|
||||
|
@ -36,8 +37,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/winbond/common/winbond.h>
|
||||
#include <superio/winbond/w83627hf/w83627hf.h>
|
||||
#include <lib.h>
|
||||
|
@ -35,8 +36,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/winbond/common/winbond.h>
|
||||
/* FIXME: It's a Winbond W83977EF, actually. */
|
||||
#include <superio/winbond/w83977tf/w83977tf.h>
|
||||
|
@ -37,8 +38,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -23,13 +23,13 @@
|
|||
#include <southbridge/intel/i82801ax/i82801ax.h>
|
||||
#include <northbridge/intel/i82810/raminit.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/smsc/smscsuperio/smscsuperio.h>
|
||||
#include <lib.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, SMSCSUPERIO_SP1)
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
smscsuperio_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -23,13 +23,13 @@
|
|||
#include <superio/smsc/lpc47b272/lpc47b272.h>
|
||||
#include <northbridge/intel/i82810/raminit.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <southbridge/intel/i82801ax/i82801ax.h>
|
||||
#include <lib.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, LPC47B272_SP1)
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
lpc47b272_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/winbond/common/winbond.h>
|
||||
#include <superio/winbond/w83977tf/w83977tf.h>
|
||||
#include <lib.h>
|
||||
|
@ -35,8 +36,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/winbond/common/winbond.h>
|
||||
#include <superio/winbond/w83977tf/w83977tf.h>
|
||||
#include <lib.h>
|
||||
|
@ -35,8 +36,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/winbond/common/winbond.h>
|
||||
/* FIXME: The ASUS P2B-F has a Winbond W83977EF, actually. */
|
||||
#include <superio/winbond/w83977tf/w83977tf.h>
|
||||
|
@ -37,8 +38,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/winbond/common/winbond.h>
|
||||
/* FIXME: The ASUS P2B-LS has a Winbond W83977EF, actually. */
|
||||
#include <superio/winbond/w83977tf/w83977tf.h>
|
||||
|
@ -36,8 +37,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/winbond/common/winbond.h>
|
||||
#include <superio/winbond/w83977tf/w83977tf.h>
|
||||
|
||||
|
@ -36,8 +37,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/winbond/common/winbond.h>
|
||||
/* FIXME: The ASUS P3B-F has a Winbond W83977EF, actually. */
|
||||
#include <superio/winbond/w83977tf/w83977tf.h>
|
||||
|
@ -68,8 +69,7 @@ static void disable_spd(void)
|
|||
outb(0x67, PM_IO_BASE + 0x37);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/winbond/common/winbond.h>
|
||||
/* FIXME: It's a Winbond W83977EF, actually. */
|
||||
#include <superio/winbond/w83977tf/w83977tf.h>
|
||||
|
@ -37,8 +38,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/smsc/smscsuperio/smscsuperio.h>
|
||||
#include <lib.h>
|
||||
|
||||
|
@ -34,8 +35,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
smscsuperio_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
/* FIXME: This should be PC97307 (but it's buggy at the moment)! */
|
||||
#include <superio/nsc/pc97317/pc97317.h>
|
||||
#include <lib.h>
|
||||
|
@ -36,8 +37,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
/* FIXME: Should be PC97307! */
|
||||
pc97317_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <southbridge/intel/i82801ax/i82801ax.h>
|
||||
#include <northbridge/intel/i82810/raminit.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/ite/common/ite.h>
|
||||
#include <superio/ite/it8712f/it8712f.h>
|
||||
#include <lib.h>
|
||||
|
@ -31,8 +32,7 @@
|
|||
#define SERIAL_DEV PNP_DEV(0x2e, IT8712F_SP1)
|
||||
#define CLKIN_DEV PNP_DEV(0x2e, IT8712F_GPIO)
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
ite_conf_clkin(CLKIN_DEV, ITE_UART_CLK_PREDIVIDE_24);
|
||||
ite_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/ite/it8671f/it8671f.h>
|
||||
#include <lib.h>
|
||||
|
||||
|
@ -34,8 +35,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
it8671f_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/ite/it8671f/it8671f.h>
|
||||
#include <lib.h>
|
||||
|
||||
|
@ -34,8 +35,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
it8671f_48mhz_clkin();
|
||||
it8671f_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
|
|
|
@ -25,14 +25,14 @@
|
|||
/* TODO: It's i810E actually! */
|
||||
#include <northbridge/intel/i82810/raminit.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <southbridge/intel/i82801ax/i82801ax.h>
|
||||
#include <lib.h>
|
||||
|
||||
/* TODO: It's a PC87364 actually! */
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, PC87360_SP1)
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
/* TODO: It's a PC87364 actually! */
|
||||
pc87360_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
|
|
|
@ -23,14 +23,14 @@
|
|||
#include <southbridge/intel/i82801bx/i82801bx.h>
|
||||
#include <northbridge/intel/i82810/raminit.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/smsc/smscsuperio/smscsuperio.h>
|
||||
#include "gpio.c"
|
||||
#include <lib.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x4e, SMSCSUPERIO_SP1)
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
/* Set southbridge and Super I/O GPIOs. */
|
||||
mb_gpio_init();
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include <superio/intel/i3100/i3100.h>
|
||||
#include "northbridge/intel/i3100/memory_initialized.c"
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <spd.h>
|
||||
|
||||
#define DEVPRES_CONFIG (DEVPRES_D1F0 | DEVPRES_D2F0)
|
||||
|
@ -46,8 +47,7 @@ static inline int spd_read_byte(u16 device, u8 address)
|
|||
#include "arch/x86/lib/stages.c"
|
||||
#endif
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
msr_t msr;
|
||||
u16 perf;
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include <superio/intel/i3100/i3100.h>
|
||||
#include "lib/debug.c" // XXX
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <spd.h>
|
||||
|
||||
#define DEVPRES_CONFIG (DEVPRES_D1F0 | DEVPRES_D2F0 | DEVPRES_D3F0 | DEVPRES_D4F0)
|
||||
|
@ -42,8 +43,7 @@ static inline int spd_read_byte(u16 device, u8 address)
|
|||
|
||||
#define SERIAL_DEV PNP_DEV(0x4e, I3100_SP1)
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
static const struct mem_controller mch[] = {
|
||||
{
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include <superio/winbond/common/winbond.h>
|
||||
#include <superio/winbond/w83627thg/w83627thg.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627THG_SP1)
|
||||
|
||||
|
@ -42,8 +43,7 @@ static inline int spd_read_byte(unsigned device, unsigned address)
|
|||
#include "northbridge/intel/i855/raminit.c"
|
||||
#include "northbridge/intel/i855/reset_test.c"
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
if (bist == 0) {
|
||||
#if 0
|
||||
|
|
|
@ -24,13 +24,13 @@
|
|||
#include <northbridge/intel/i82810/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/smsc/smscsuperio/smscsuperio.h>
|
||||
#include <lib.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x4e, SMSCSUPERIO_SP1)
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
smscsuperio_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/winbond/common/winbond.h>
|
||||
#include <superio/winbond/w83977tf/w83977tf.h>
|
||||
#include <lib.h>
|
||||
|
@ -35,8 +36,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/winbond/common/winbond.h>
|
||||
#include <superio/winbond/w83977tf/w83977tf.h>
|
||||
#include <lib.h>
|
||||
|
@ -35,8 +36,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/winbond/common/winbond.h>
|
||||
#include <superio/winbond/w83977tf/w83977tf.h>
|
||||
#include <lib.h>
|
||||
|
@ -35,8 +36,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,14 +24,14 @@
|
|||
#include <superio/winbond/w83627hf/w83627hf.h>
|
||||
#include <northbridge/intel/i82810/raminit.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <southbridge/intel/i82801ax/i82801ax.h>
|
||||
#include <lib.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
|
||||
#define DUMMY_DEV PNP_DEV(0x2e, 0)
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
w83627hf_set_clksel_48(DUMMY_DEV);
|
||||
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
|
|
|
@ -23,13 +23,13 @@
|
|||
#include <superio/smsc/smscsuperio/smscsuperio.h>
|
||||
#include <northbridge/intel/i82810/raminit.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <southbridge/intel/i82801ax/i82801ax.h>
|
||||
#include <lib.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, SMSCSUPERIO_SP1)
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
smscsuperio_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/smsc/smscsuperio/smscsuperio.h>
|
||||
#include <lib.h>
|
||||
|
||||
|
@ -34,8 +35,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
smscsuperio_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include <southbridge/intel/i82801dx/i82801dx.h>
|
||||
#include "southbridge/intel/i82801dx/reset.c"
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include "spd_table.h"
|
||||
#include "gpio.c"
|
||||
#include "southbridge/intel/i82801dx/tco_timer.c"
|
||||
|
@ -88,8 +89,7 @@ static void mb_early_setup(void)
|
|||
pci_write_config8(PCI_DEV(0, 0x1f, 0), ACPI_CNTL, 0x10);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
if (bist == 0) {
|
||||
if (memory_initialized())
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/ite/it8671f/it8671f.h>
|
||||
#include <lib.h>
|
||||
|
||||
|
@ -34,8 +35,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
it8671f_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include <southbridge/intel/i82801dx/i82801dx.h>
|
||||
#include "southbridge/intel/i82801dx/reset.c"
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include "spd_table.h"
|
||||
#include "gpio.c"
|
||||
#include "southbridge/intel/i82801dx/tco_timer.c"
|
||||
|
@ -86,8 +87,7 @@ static void mb_early_setup(void)
|
|||
pci_write_config8(PCI_DEV(0, 0x1f, 0), ACPI_CNTL, 0x10);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
if (bist == 0) {
|
||||
if (memory_initialized())
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <northbridge/intel/i440bx/raminit.h>
|
||||
#include <delay.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/intel/romstage.h>
|
||||
#include <superio/nsc/pc87309/pc87309.h>
|
||||
#include <lib.h>
|
||||
|
||||
|
@ -34,8 +35,7 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
return smbus_read_byte(device, address);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
void mainboard_romstage_entry(unsigned long bist)
|
||||
{
|
||||
pc87309_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
|
||||
console_init();
|
||||
|
|
Loading…
Reference in a new issue