AMD boards: Fix romstage main() declaration
Boards incorrectly used intel include file for AMD board. Change-Id: I6d3172d1aa5c91c989a6ef63066a7cd6f70013f5 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/15232 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
e93e7102cf
commit
5276941c8b
|
@ -1,6 +1,8 @@
|
|||
#ifndef _CPU_AMD_CAR_H
|
||||
#define _CPU_AMD_CAR_H
|
||||
|
||||
void main(unsigned long bist);
|
||||
|
||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
|
||||
void done_cache_as_ram_main(void);
|
||||
void post_cache_as_ram(void);
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <console/console.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
#include <spd.h>
|
||||
|
@ -49,7 +50,6 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
#include "cpu/amd/geode_lx/syspreinit.c"
|
||||
#include "cpu/amd/geode_lx/msrinit.c"
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
static const struct mem_controller memctrl[] = {
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <console/console.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
#include <spd.h>
|
||||
|
@ -44,7 +45,6 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
#include "cpu/amd/geode_lx/syspreinit.c"
|
||||
#include "cpu/amd/geode_lx/msrinit.c"
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <console/console.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
#include <spd.h>
|
||||
|
@ -40,7 +41,6 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
#include "cpu/amd/geode_lx/syspreinit.c"
|
||||
#include "cpu/amd/geode_lx/msrinit.c"
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <superio/winbond/w83627hf/w83627hf.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/gx2def.h>
|
||||
#include <spd.h>
|
||||
#include "southbridge/amd/cs5536/early_smbus.c"
|
||||
|
@ -43,7 +44,6 @@ static inline int spd_read_byte(unsigned device, unsigned address)
|
|||
#include "cpu/amd/geode_gx2/syspreinit.c"
|
||||
#include "cpu/amd/geode_lx/msrinit.c"
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
static const struct mem_controller memctrl [] = {
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <console/console.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
#include "spd_table.h"
|
||||
|
@ -52,7 +53,6 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
#include "cpu/amd/geode_lx/syspreinit.c"
|
||||
#include "cpu/amd/geode_lx/msrinit.c"
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <console/console.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
#include "southbridge/amd/cs5536/early_smbus.c"
|
||||
|
@ -41,7 +42,6 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
#include "cpu/amd/geode_lx/syspreinit.c"
|
||||
#include "cpu/amd/geode_lx/msrinit.c"
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
static const struct mem_controller memctrl[] = {
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include <console/console.h>
|
||||
#include <northbridge/via/cn700/raminit.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <delay.h>
|
||||
#include <lib.h>
|
||||
#include <spd.h>
|
||||
|
@ -75,7 +76,6 @@ static const struct mem_controller ctrl = {
|
|||
.channel0 = { DIMM0 },
|
||||
};
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
/* Enable multifunction for northbridge. */
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <console/console.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
|
@ -29,7 +30,6 @@ int spd_read_byte(unsigned device, unsigned address)
|
|||
#include "cpu/amd/geode_lx/syspreinit.c"
|
||||
#include "cpu/amd/geode_lx/msrinit.c"
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <console/console.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
#include <spd.h>
|
||||
|
@ -44,7 +45,6 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
#include "cpu/amd/geode_lx/syspreinit.c"
|
||||
#include "cpu/amd/geode_lx/msrinit.c"
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include <console/console.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
#include <southbridge/amd/cs5536/early_smbus.c>
|
||||
|
@ -48,7 +49,6 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
#include <cpu/amd/geode_lx/syspreinit.c>
|
||||
#include <cpu/amd/geode_lx/msrinit.c>
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
static const struct mem_controller memctrl[] = {
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <console/console.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
#include <southbridge/amd/cs5536/early_smbus.c>
|
||||
|
@ -48,7 +49,6 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
#include <cpu/amd/geode_lx/syspreinit.c>
|
||||
#include <cpu/amd/geode_lx/msrinit.c>
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
static const struct mem_controller memctrl[] = {
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include <console/console.h>
|
||||
#include <northbridge/via/cn700/raminit.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <delay.h>
|
||||
#include "southbridge/via/vt8237r/early_smbus.c"
|
||||
#include <superio/fintek/common/fintek.h>
|
||||
|
@ -80,7 +81,6 @@ static const struct mem_controller ctrl = {
|
|||
.channel0 = { DIMM0 },
|
||||
};
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
/* Enable multifunction for northbridge. */
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include <superio/winbond/w83627hf/w83627hf.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/gx2def.h>
|
||||
#include <southbridge/amd/cs5535/cs5535.h>
|
||||
#include "southbridge/amd/cs5535/early_smbus.c"
|
||||
|
@ -69,7 +70,6 @@ static inline int spd_read_byte(unsigned int device, unsigned int address)
|
|||
#include "cpu/amd/geode_gx2/syspreinit.c"
|
||||
#include "cpu/amd/geode_lx/msrinit.c"
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
static const struct mem_controller memctrl [] = {
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <console/console.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
#include <spd.h>
|
||||
|
@ -105,7 +106,6 @@ static void mb_gpio_init(void)
|
|||
}
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <console/console.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
#include "southbridge/amd/cs5536/early_smbus.c"
|
||||
|
@ -145,7 +146,6 @@ static void mb_gpio_init(void)
|
|||
}
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
int err;
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <console/console.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
#include <spd.h>
|
||||
|
@ -80,7 +81,6 @@ static void mb_gpio_init(void)
|
|||
}
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <console/console.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
#include "southbridge/amd/cs5536/early_smbus.c"
|
||||
|
@ -143,7 +144,6 @@ static void mb_gpio_init(void)
|
|||
}
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
int err;
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include <lib.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
|
@ -98,7 +99,6 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
#include "cpu/amd/geode_lx/syspreinit.c"
|
||||
#include "cpu/amd/geode_lx/msrinit.c"
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
static const struct mem_controller memctrl[] = {
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include <lib.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
|
@ -121,7 +122,6 @@ static void mb_gpio_init(void)
|
|||
outl(1 << 11, GPIO_IO_BASE + GPIOH_OUTPUT_VALUE); /* Led 3 disabled */
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
static const struct mem_controller memctrl[] = {
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include <lib.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
#include <spd.h>
|
||||
|
@ -41,7 +42,6 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
#include "cpu/amd/geode_lx/syspreinit.c"
|
||||
#include "cpu/amd/geode_lx/msrinit.c"
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
static const struct mem_controller memctrl[] = {
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <lib.h>
|
||||
#include <northbridge/via/cn700/raminit.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <delay.h>
|
||||
#include "southbridge/via/vt8237r/early_smbus.c"
|
||||
#include "southbridge/via/vt8237r/early_serial.c"
|
||||
|
@ -73,7 +74,6 @@ static const struct mem_controller ctrl = {
|
|||
.channel0 = { DIMM0 },
|
||||
};
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
/* Enable multifunction for northbridge. */
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include <lib.h>
|
||||
#include <northbridge/via/vx800/vx800.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <delay.h>
|
||||
#include <string.h>
|
||||
/* This file contains the board-special SI value for raminit.c. */
|
||||
|
@ -365,7 +366,6 @@ static void EmbedComInit(void)
|
|||
#endif
|
||||
|
||||
/* cache_as_ram.inc jumps to here. */
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
u16 boot_mode;
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <console/console.h>
|
||||
#include <lib.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <string.h>
|
||||
#include <timestamp.h>
|
||||
|
||||
|
@ -37,7 +38,6 @@
|
|||
#define SERIAL_DEV PNP_DEV(0x4e, F81865F_SP1)
|
||||
|
||||
/* cache_as_ram.inc jumps to here. */
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
u32 tolm;
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <lib.h>
|
||||
#include <northbridge/via/cn700/raminit.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <delay.h>
|
||||
#include "southbridge/via/vt8237r/early_smbus.c"
|
||||
#include <superio/ite/common/ite.h>
|
||||
|
@ -49,7 +50,6 @@ static const struct mem_controller ctrl = {
|
|||
.channel0 = { DIMM0 }, /* TODO: CN700 currently only supports 1 DIMM. */
|
||||
};
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
/* Enable multifunction for northbridge. */
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include <lib.h>
|
||||
#include <northbridge/via/cx700/raminit.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <delay.h>
|
||||
#include "northbridge/via/cx700/early_smbus.c"
|
||||
#include "lib/debug.c"
|
||||
|
@ -76,7 +77,6 @@ static void enable_shadow_ram(const struct mem_controller *ctrl)
|
|||
pci_write_config8(PCI_DEV(0, 0, 3), 0x83, shadowreg);
|
||||
}
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
/* Set statically so it should work with cx700 as well */
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <lib.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/lxdef.h>
|
||||
#include <southbridge/amd/cs5536/cs5536.h>
|
||||
#include <spd.h>
|
||||
|
@ -46,7 +47,6 @@ int spd_read_byte(unsigned int device, unsigned int address)
|
|||
#include "cpu/amd/geode_lx/syspreinit.c"
|
||||
#include "cpu/amd/geode_lx/msrinit.c"
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <lib.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/amd/gx2def.h>
|
||||
#include <spd.h>
|
||||
#include "southbridge/amd/cs5536/early_smbus.c"
|
||||
|
@ -43,7 +44,6 @@ static inline int spd_read_byte(unsigned int device, unsigned int address)
|
|||
#include "cpu/amd/geode_gx2/syspreinit.c"
|
||||
#include "cpu/amd/geode_lx/msrinit.c"
|
||||
|
||||
#include <cpu/intel/romstage.h>
|
||||
void main(unsigned long bist)
|
||||
{
|
||||
static const struct mem_controller memctrl [] = {
|
||||
|
|
Loading…
Reference in New Issue