AMD: Add common header file for CAR setup
Change-Id: I24b2cbd671ac3a463562d284f06258140a019a37 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/4683 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
cf7b498908
commit
2458f42b27
|
@ -5,6 +5,7 @@
|
||||||
#include <arch/stages.h>
|
#include <arch/stages.h>
|
||||||
#include <cpu/x86/mtrr.h>
|
#include <cpu/x86/mtrr.h>
|
||||||
#include <cpu/amd/mtrr.h>
|
#include <cpu/amd/mtrr.h>
|
||||||
|
#include <cpu/amd/car.h>
|
||||||
#include "cbmem.h"
|
#include "cbmem.h"
|
||||||
#include "cpu/amd/car/disable_cache_as_ram.c"
|
#include "cpu/amd/car/disable_cache_as_ram.c"
|
||||||
|
|
||||||
|
@ -75,8 +76,6 @@ static void vErrata343(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void cache_as_ram_switch_stack(void *resume_backup_memory);
|
|
||||||
|
|
||||||
void post_cache_as_ram(void)
|
void post_cache_as_ram(void)
|
||||||
{
|
{
|
||||||
void *resume_backup_memory = NULL;
|
void *resume_backup_memory = NULL;
|
||||||
|
@ -112,9 +111,6 @@ void post_cache_as_ram(void)
|
||||||
cache_as_ram_switch_stack(resume_backup_memory);
|
cache_as_ram_switch_stack(resume_backup_memory);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
cache_as_ram_new_stack (void *resume_backup_memory);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
cache_as_ram_new_stack (void *resume_backup_memory __attribute__ ((unused)))
|
cache_as_ram_new_stack (void *resume_backup_memory __attribute__ ((unused)))
|
||||||
{
|
{
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
#ifndef _CPU_AMD_CAR_H
|
||||||
|
#define _CPU_AMD_CAR_H
|
||||||
|
|
||||||
|
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);
|
||||||
|
|
||||||
|
void cache_as_ram_switch_stack(void *resume_backup_memory);
|
||||||
|
void cache_as_ram_new_stack(void *resume_backup_memory);
|
||||||
|
|
||||||
|
#if CONFIG_CPU_AMD_AGESA
|
||||||
|
void disable_cache_as_ram(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
|
@ -50,14 +50,6 @@ int checkstack(void *top_of_stack, int core);
|
||||||
extern unsigned char _estack[];
|
extern unsigned char _estack[];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Defined in romstage.c */
|
|
||||||
#if CONFIG_CPU_AMD_GEODE_LX
|
|
||||||
void cache_as_ram_main(void);
|
|
||||||
#else
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
|
|
||||||
#endif
|
|
||||||
void post_cache_as_ram(void);
|
|
||||||
|
|
||||||
/* Defined in src/lib/hexdump.c */
|
/* Defined in src/lib/hexdump.c */
|
||||||
void hexdump(const void *memory, size_t length);
|
void hexdump(const void *memory, size_t length);
|
||||||
void hexdump32(char LEVEL, const void *d, int len);
|
void hexdump32(char LEVEL, const void *d, int len);
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include <cpu/x86/lapic.h>
|
#include <cpu/x86/lapic.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <console/loglevel.h>
|
#include <console/loglevel.h>
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "superio/smsc/sch4037/sch4037_early_init.c"
|
#include "superio/smsc/sch4037/sch4037_early_init.c"
|
||||||
#include "superio/smsc/sio1036/sio1036_early_init.c"
|
#include "superio/smsc/sio1036/sio1036_early_init.c"
|
||||||
|
@ -40,8 +41,6 @@
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(CONFIG_SIO_PORT, SMSCSUPERIO_SP1)
|
#define SERIAL_DEV PNP_DEV(CONFIG_SIO_PORT, SMSCSUPERIO_SP1)
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
|
|
||||||
void disable_cache_as_ram(void);
|
|
||||||
|
|
||||||
u32 agesawrapper_amdinitmmio (void);
|
u32 agesawrapper_amdinitmmio (void);
|
||||||
u32 agesawrapper_amdinitreset (void);
|
u32 agesawrapper_amdinitreset (void);
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <console/loglevel.h>
|
#include <console/loglevel.h>
|
||||||
#include <cpu/x86/mtrr.h>
|
#include <cpu/x86/mtrr.h>
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "superio/smsc/kbc1100/kbc1100_early_init.c"
|
#include "superio/smsc/kbc1100/kbc1100_early_init.c"
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include <cpu/x86/lapic.h>
|
#include <cpu/x86/lapic.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <console/loglevel.h>
|
#include <console/loglevel.h>
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "cpu/x86/lapic.h"
|
#include "cpu/x86/lapic.h"
|
||||||
|
@ -37,8 +38,6 @@
|
||||||
#include "src/drivers/pc80/i8259.c"
|
#include "src/drivers/pc80/i8259.c"
|
||||||
#include "cbmem.h"
|
#include "cbmem.h"
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
|
|
||||||
void disable_cache_as_ram(void);
|
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include <cpu/x86/lapic.h>
|
#include <cpu/x86/lapic.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <console/loglevel.h>
|
#include <console/loglevel.h>
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "cpu/x86/lapic.h"
|
#include "cpu/x86/lapic.h"
|
||||||
|
@ -37,8 +38,6 @@
|
||||||
#include "src/drivers/pc80/i8259.c"
|
#include "src/drivers/pc80/i8259.c"
|
||||||
#include "cbmem.h"
|
#include "cbmem.h"
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
|
|
||||||
void disable_cache_as_ram(void);
|
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <console/loglevel.h>
|
#include <console/loglevel.h>
|
||||||
#include <cpu/x86/mtrr.h>
|
#include <cpu/x86/mtrr.h>
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include <superio/fintek/common/fintek.h>
|
#include <superio/fintek/common/fintek.h>
|
||||||
|
@ -43,8 +44,6 @@
|
||||||
#include "cpu/amd/mtrr.h"
|
#include "cpu/amd/mtrr.h"
|
||||||
#include "cpu/amd/agesa/s3_resume.h"
|
#include "cpu/amd/agesa/s3_resume.h"
|
||||||
|
|
||||||
void disable_cache_as_ram(void); /* cache_as_ram.inc */
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
|
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(0x4e, F81865F_SP1)
|
#define SERIAL_DEV PNP_DEV(0x4e, F81865F_SP1)
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <console/loglevel.h>
|
#include <console/loglevel.h>
|
||||||
#include <cpu/x86/mtrr.h>
|
#include <cpu/x86/mtrr.h>
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include <superio/fintek/common/fintek.h>
|
#include <superio/fintek/common/fintek.h>
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include <cpu/x86/lapic.h>
|
#include <cpu/x86/lapic.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <console/loglevel.h>
|
#include <console/loglevel.h>
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "cpu/x86/lapic.h"
|
#include "cpu/x86/lapic.h"
|
||||||
|
@ -40,8 +41,6 @@
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(0x2e, LPC47N217_SP1)
|
#define SERIAL_DEV PNP_DEV(0x2e, LPC47N217_SP1)
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
|
|
||||||
void disable_cache_as_ram(void);
|
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include <cpu/x86/lapic.h>
|
#include <cpu/x86/lapic.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <console/loglevel.h>
|
#include <console/loglevel.h>
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "superio/smsc/kbc1100/kbc1100_early_init.c"
|
#include "superio/smsc/kbc1100/kbc1100_early_init.c"
|
||||||
|
@ -38,7 +39,6 @@
|
||||||
#include <arch/cpu.h>
|
#include <arch/cpu.h>
|
||||||
#include "platform_cfg.h"
|
#include "platform_cfg.h"
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
|
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <console/loglevel.h>
|
#include <console/loglevel.h>
|
||||||
#include <cpu/x86/mtrr.h>
|
#include <cpu/x86/mtrr.h>
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "cpu/x86/lapic.h"
|
#include "cpu/x86/lapic.h"
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <console/loglevel.h>
|
#include <console/loglevel.h>
|
||||||
#include <cpu/x86/mtrr.h>
|
#include <cpu/x86/mtrr.h>
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "superio/winbond/w83627hf/early_serial.c"
|
#include "superio/winbond/w83627hf/early_serial.c"
|
||||||
|
@ -38,7 +39,6 @@
|
||||||
#include <sb_cimx.h>
|
#include <sb_cimx.h>
|
||||||
#include "SBPLATFORM.h"
|
#include "SBPLATFORM.h"
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
|
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(CONFIG_SIO_PORT, W83627HF_SP1)
|
#define SERIAL_DEV PNP_DEV(CONFIG_SIO_PORT, W83627HF_SP1)
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include <cpu/x86/lapic.h>
|
#include <cpu/x86/lapic.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <console/loglevel.h>
|
#include <console/loglevel.h>
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "cpu/x86/lapic.h"
|
#include "cpu/x86/lapic.h"
|
||||||
|
@ -40,8 +41,6 @@
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627UHG_SP1)
|
#define SERIAL_DEV PNP_DEV(0x2e, W83627UHG_SP1)
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
|
|
||||||
void disable_cache_as_ram(void);
|
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include <cbmem.h>
|
#include <cbmem.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <cpu/amd/agesa/s3_resume.h>
|
#include <cpu/amd/agesa/s3_resume.h>
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include <cpu/x86/bist.h>
|
#include <cpu/x86/bist.h>
|
||||||
#include <cpu/x86/lapic.h>
|
#include <cpu/x86/lapic.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
|
@ -40,9 +41,6 @@
|
||||||
#include <drivers/pc80/i8259.c>
|
#include <drivers/pc80/i8259.c>
|
||||||
#include <superio/ite/it8712f/early_serial.c>
|
#include <superio/ite/it8712f/early_serial.c>
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
|
|
||||||
void disable_cache_as_ram(void);
|
|
||||||
|
|
||||||
#define MMIO_NON_POSTED_START 0xfed00000
|
#define MMIO_NON_POSTED_START 0xfed00000
|
||||||
#define MMIO_NON_POSTED_END 0xfedfffff
|
#define MMIO_NON_POSTED_END 0xfedfffff
|
||||||
#define SB_MMIO 0xFED80000
|
#define SB_MMIO 0xFED80000
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "cpu/x86/msr.h"
|
#include "cpu/x86/msr.h"
|
||||||
#include <cpu/amd/lxdef.h>
|
#include <cpu/amd/lxdef.h>
|
||||||
|
#include <cpu/amd/car.h>
|
||||||
#include "southbridge/amd/cs5536/cs5536.h"
|
#include "southbridge/amd/cs5536/cs5536.h"
|
||||||
#include <spd.h>
|
#include <spd.h>
|
||||||
#include "southbridge/amd/cs5536/early_smbus.c"
|
#include "southbridge/amd/cs5536/early_smbus.c"
|
||||||
|
@ -75,6 +76,5 @@ void main(unsigned long bist)
|
||||||
/* we are finding the return does not work on this board. Explicitly call the label that is
|
/* we are finding the return does not work on this board. Explicitly call the label that is
|
||||||
* after the call to us. This is gross, but sometimes at this level it is the only way out
|
* after the call to us. This is gross, but sometimes at this level it is the only way out
|
||||||
*/
|
*/
|
||||||
void done_cache_as_ram_main(void);
|
|
||||||
done_cache_as_ram_main();
|
done_cache_as_ram_main();
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <console/loglevel.h>
|
#include <console/loglevel.h>
|
||||||
#include <cpu/x86/mtrr.h>
|
#include <cpu/x86/mtrr.h>
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "drivers/pc80/i8254.c"
|
#include "drivers/pc80/i8254.c"
|
||||||
|
@ -45,8 +46,6 @@
|
||||||
#define MSR_MTRR_VARIABLE_MASK6 0x020D
|
#define MSR_MTRR_VARIABLE_MASK6 0x020D
|
||||||
#define MSR_PSTATE_CONTROL 0xC0010062
|
#define MSR_PSTATE_CONTROL 0xC0010062
|
||||||
|
|
||||||
void disable_cache_as_ram(void); /* cache_as_ram.inc */
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
|
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include <cpu/amd/agesa/s3_resume.h>
|
#include <cpu/amd/agesa/s3_resume.h>
|
||||||
#include <cpu/x86/bist.h>
|
#include <cpu/x86/bist.h>
|
||||||
#include <cpu/x86/lapic.h>
|
#include <cpu/x86/lapic.h>
|
||||||
|
#include <cpu/amd/car.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -36,10 +37,6 @@
|
||||||
#include "src/drivers/pc80/i8254.c"
|
#include "src/drivers/pc80/i8254.c"
|
||||||
#include "src/drivers/pc80/i8259.c"
|
#include "src/drivers/pc80/i8259.c"
|
||||||
|
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
|
|
||||||
void disable_cache_as_ram(void);
|
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||||
{
|
{
|
||||||
u32 val;
|
u32 val;
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
#include <cpu/x86/mtrr.h>
|
#include <cpu/x86/mtrr.h>
|
||||||
#include <cpu/x86/cache.h>
|
#include <cpu/x86/cache.h>
|
||||||
#include <cpu/amd/mtrr.h>
|
#include <cpu/amd/mtrr.h>
|
||||||
|
#include <cpu/amd/car.h>
|
||||||
#include <sb_cimx.h>
|
#include <sb_cimx.h>
|
||||||
#include <southbridge/amd/cimx/sb800/SBPLATFORM.h>
|
#include <southbridge/amd/cimx/sb800/SBPLATFORM.h>
|
||||||
#include <superio/fintek/common/fintek.h>
|
#include <superio/fintek/common/fintek.h>
|
||||||
|
@ -47,9 +48,6 @@
|
||||||
#include "drivers/pc80/i8254.c"
|
#include "drivers/pc80/i8254.c"
|
||||||
#include "drivers/pc80/i8259.c"
|
#include "drivers/pc80/i8259.c"
|
||||||
|
|
||||||
void disable_cache_as_ram(void); /* cache_as_ram.inc */
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
|
|
||||||
|
|
||||||
/* Ensure Super I/O config address (i.e., 0x2e or 0x4e) matches that of devicetree.cb */
|
/* Ensure Super I/O config address (i.e., 0x2e or 0x4e) matches that of devicetree.cb */
|
||||||
#define SERIAL_DEV PNP_DEV(0x2e, F71869AD_SP1)
|
#define SERIAL_DEV PNP_DEV(0x2e, F71869AD_SP1)
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <console/loglevel.h>
|
#include <console/loglevel.h>
|
||||||
#include <cpu/x86/mtrr.h>
|
#include <cpu/x86/mtrr.h>
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "superio/smsc/smscsuperio/early_serial.c"
|
#include "superio/smsc/smscsuperio/early_serial.c"
|
||||||
|
@ -42,8 +43,6 @@
|
||||||
#include "cpu/amd/mtrr.h"
|
#include "cpu/amd/mtrr.h"
|
||||||
#include "cpu/amd/agesa/s3_resume.h"
|
#include "cpu/amd/agesa/s3_resume.h"
|
||||||
|
|
||||||
void disable_cache_as_ram(void); /* cache_as_ram.inc */
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
|
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(0x4e, SMSCSUPERIO_SP1)
|
#define SERIAL_DEV PNP_DEV(0x4e, SMSCSUPERIO_SP1)
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <console/loglevel.h>
|
#include <console/loglevel.h>
|
||||||
#include <cpu/x86/mtrr.h>
|
#include <cpu/x86/mtrr.h>
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "superio/winbond/w83627dhg/w83627dhg.h"
|
#include "superio/winbond/w83627dhg/w83627dhg.h"
|
||||||
|
@ -42,8 +43,6 @@
|
||||||
#include "cpu/amd/mtrr.h"
|
#include "cpu/amd/mtrr.h"
|
||||||
#include "cpu/amd/agesa/s3_resume.h"
|
#include "cpu/amd/agesa/s3_resume.h"
|
||||||
|
|
||||||
void disable_cache_as_ram(void); /* cache_as_ram.inc */
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx);
|
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(0x4e, W83627DHG_SP1)
|
#define SERIAL_DEV PNP_DEV(0x4e, W83627DHG_SP1)
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "cpu/x86/msr.h"
|
#include "cpu/x86/msr.h"
|
||||||
#include <cpu/amd/lxdef.h>
|
#include <cpu/amd/lxdef.h>
|
||||||
|
#include <cpu/amd/car.h>
|
||||||
#include "southbridge/amd/cs5536/cs5536.h"
|
#include "southbridge/amd/cs5536/cs5536.h"
|
||||||
#include "northbridge/amd/lx/raminit.h"
|
#include "northbridge/amd/lx/raminit.h"
|
||||||
|
|
||||||
|
@ -162,6 +163,5 @@ void main(unsigned long bist)
|
||||||
* call the label that is after the call to us. This is gross, but
|
* call the label that is after the call to us. This is gross, but
|
||||||
* sometimes at this level it is the only way out.
|
* sometimes at this level it is the only way out.
|
||||||
*/
|
*/
|
||||||
void done_cache_as_ram_main(void);
|
|
||||||
done_cache_as_ram_main();
|
done_cache_as_ram_main();
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "cpu/x86/msr.h"
|
#include "cpu/x86/msr.h"
|
||||||
#include <cpu/amd/lxdef.h>
|
#include <cpu/amd/lxdef.h>
|
||||||
|
#include <cpu/amd/car.h>
|
||||||
#include "southbridge/amd/cs5536/cs5536.h"
|
#include "southbridge/amd/cs5536/cs5536.h"
|
||||||
#include "northbridge/amd/lx/raminit.h"
|
#include "northbridge/amd/lx/raminit.h"
|
||||||
|
|
||||||
|
@ -186,6 +187,5 @@ void main(unsigned long bist)
|
||||||
* call the label that is after the call to us. This is gross, but
|
* call the label that is after the call to us. This is gross, but
|
||||||
* sometimes at this level it is the only way out.
|
* sometimes at this level it is the only way out.
|
||||||
*/
|
*/
|
||||||
void done_cache_as_ram_main(void);
|
|
||||||
done_cache_as_ram_main();
|
done_cache_as_ram_main();
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include <arch/stages.h>
|
#include <arch/stages.h>
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "cpu/x86/lapic.h"
|
#include "cpu/x86/lapic.h"
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
#include "northbridge/amd/agesa/family10/reset_test.h"
|
#include "northbridge/amd/agesa/family10/reset_test.h"
|
||||||
#include <nb_cimx.h>
|
#include <nb_cimx.h>
|
||||||
|
@ -33,7 +34,6 @@
|
||||||
#include "superio/nuvoton/wpcm450/wpcm450.h"
|
#include "superio/nuvoton/wpcm450/wpcm450.h"
|
||||||
#include "superio/winbond/w83627dhg/w83627dhg.h"
|
#include "superio/winbond/w83627dhg/w83627dhg.h"
|
||||||
|
|
||||||
extern void disable_cache_as_ram(void); /* cache_as_ram.inc */
|
|
||||||
|
|
||||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include <arch/stages.h>
|
#include <arch/stages.h>
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "cpu/x86/lapic.h"
|
#include "cpu/x86/lapic.h"
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
#include "northbridge/amd/agesa/family10/reset_test.h"
|
#include "northbridge/amd/agesa/family10/reset_test.h"
|
||||||
#include <nb_cimx.h>
|
#include <nb_cimx.h>
|
||||||
|
@ -35,7 +36,6 @@
|
||||||
#include "superio/nuvoton/wpcm450/wpcm450.h"
|
#include "superio/nuvoton/wpcm450/wpcm450.h"
|
||||||
#include "superio/winbond/w83627dhg/w83627dhg.h"
|
#include "superio/winbond/w83627dhg/w83627dhg.h"
|
||||||
|
|
||||||
extern void disable_cache_as_ram(void); /* cache_as_ram.inc */
|
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627DHG_SP1)
|
#define SERIAL_DEV PNP_DEV(0x2e, W83627DHG_SP1)
|
||||||
#define DUMMY_DEV PNP_DEV(0x2e, 0)
|
#define DUMMY_DEV PNP_DEV(0x2e, 0)
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include <arch/stages.h>
|
#include <arch/stages.h>
|
||||||
#include "cpu/x86/bist.h"
|
#include "cpu/x86/bist.h"
|
||||||
#include "cpu/x86/lapic.h"
|
#include "cpu/x86/lapic.h"
|
||||||
|
#include "cpu/amd/car.h"
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
#include "northbridge/amd/agesa/family10/reset_test.h"
|
#include "northbridge/amd/agesa/family10/reset_test.h"
|
||||||
#include <nb_cimx.h>
|
#include <nb_cimx.h>
|
||||||
|
@ -35,7 +36,6 @@
|
||||||
#include "src/drivers/pc80/i8254.c"
|
#include "src/drivers/pc80/i8254.c"
|
||||||
#include "src/drivers/pc80/i8259.c"
|
#include "src/drivers/pc80/i8259.c"
|
||||||
|
|
||||||
extern void disable_cache_as_ram(void); /* cache_as_ram.inc */
|
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627DHG_SP1)
|
#define SERIAL_DEV PNP_DEV(0x2e, W83627DHG_SP1)
|
||||||
#define DUMMY_DEV PNP_DEV(0x2e, 0)
|
#define DUMMY_DEV PNP_DEV(0x2e, 0)
|
||||||
|
|
Loading…
Reference in New Issue