binaryPI boards: Drop any ACPI S3 support
None of the boards currently have HAVE_ACPI_RESUME and and ACPI S3 support calls should not appear under board directories anyways. Change-Id: I1abd40ddba64be25b823abf801988863950c1eb5 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/18500 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
This commit is contained in:
parent
3444a9d716
commit
1b183aa6ce
|
@ -84,9 +84,6 @@ static void bettong_enable(device_t dev)
|
||||||
{
|
{
|
||||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||||
|
|
||||||
if (acpi_is_wakeup_s3())
|
|
||||||
agesawrapper_fchs3earlyrestore();
|
|
||||||
|
|
||||||
/* Initialize the PIRQ data structures for consumption */
|
/* Initialize the PIRQ data structures for consumption */
|
||||||
pirq_setup();
|
pirq_setup();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#include <cpu/x86/lapic.h>
|
#include <cpu/x86/lapic.h>
|
||||||
#include <cpu/x86/bist.h>
|
#include <cpu/x86/bist.h>
|
||||||
#include <cpu/amd/car.h>
|
#include <cpu/amd/car.h>
|
||||||
#include <cpu/amd/pi/s3_resume.h>
|
|
||||||
#include <northbridge/amd/pi/agesawrapper.h>
|
#include <northbridge/amd/pi/agesawrapper.h>
|
||||||
#include <northbridge/amd/pi/agesawrapper_call.h>
|
#include <northbridge/amd/pi/agesawrapper_call.h>
|
||||||
#include <southbridge/amd/pi/hudson/hudson.h>
|
#include <southbridge/amd/pi/hudson/hudson.h>
|
||||||
|
@ -28,9 +27,6 @@
|
||||||
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;
|
||||||
#if CONFIG_HAVE_ACPI_RESUME
|
|
||||||
void *resume_backup_memory;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Must come first to enable PCI MMCONF. */
|
/* Must come first to enable PCI MMCONF. */
|
||||||
amd_initmmio();
|
amd_initmmio();
|
||||||
|
@ -63,27 +59,15 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||||
|
|
||||||
post_code(0x39);
|
post_code(0x39);
|
||||||
AGESAWRAPPER(amdinitearly);
|
AGESAWRAPPER(amdinitearly);
|
||||||
int s3resume = acpi_is_wakeup_s3();
|
|
||||||
if (!s3resume) {
|
|
||||||
post_code(0x40);
|
|
||||||
AGESAWRAPPER(amdinitpost);
|
|
||||||
post_code(0x41);
|
|
||||||
AGESAWRAPPER(amdinitenv);
|
|
||||||
/* TODO: Disable cache is not ok. */
|
|
||||||
disable_cache_as_ram();
|
|
||||||
} else { /* S3 detect */
|
|
||||||
printk(BIOS_INFO, "S3 detected\n");
|
|
||||||
|
|
||||||
post_code(0x60);
|
post_code(0x40);
|
||||||
AGESAWRAPPER(amdinitresume);
|
AGESAWRAPPER(amdinitpost);
|
||||||
|
post_code(0x41);
|
||||||
|
AGESAWRAPPER(amdinitenv);
|
||||||
|
/* TODO: Disable cache is not ok. */
|
||||||
|
disable_cache_as_ram();
|
||||||
|
|
||||||
AGESAWRAPPER(amds3laterestore);
|
if (acpi_is_wakeup_s4()) {
|
||||||
|
|
||||||
post_code(0x61);
|
|
||||||
prepare_for_resume();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (s3resume || acpi_is_wakeup_s4()) {
|
|
||||||
outb(0xEE, PM_INDEX);
|
outb(0xEE, PM_INDEX);
|
||||||
outb(0x8, PM_DATA);
|
outb(0x8, PM_DATA);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include <arch/acpi.h>
|
#include <arch/acpi.h>
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <cpu/amd/pi/s3_resume.h>
|
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
|
@ -125,9 +124,6 @@ static void mainboard_enable(device_t dev)
|
||||||
{
|
{
|
||||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||||
|
|
||||||
if (acpi_is_wakeup_s3())
|
|
||||||
agesawrapper_fchs3earlyrestore();
|
|
||||||
|
|
||||||
/* Initialize the PIRQ data structures for consumption */
|
/* Initialize the PIRQ data structures for consumption */
|
||||||
pirq_setup();
|
pirq_setup();
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <arch/acpi.h>
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <arch/stages.h>
|
#include <arch/stages.h>
|
||||||
#include <device/pnp_def.h>
|
#include <device/pnp_def.h>
|
||||||
|
@ -31,7 +30,6 @@
|
||||||
#include <cpu/x86/bist.h>
|
#include <cpu/x86/bist.h>
|
||||||
#include <cpu/x86/lapic.h>
|
#include <cpu/x86/lapic.h>
|
||||||
#include <southbridge/amd/pi/hudson/hudson.h>
|
#include <southbridge/amd/pi/hudson/hudson.h>
|
||||||
#include <cpu/amd/pi/s3_resume.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)
|
||||||
{
|
{
|
||||||
|
@ -77,28 +75,16 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||||
|
|
||||||
post_code(0x39);
|
post_code(0x39);
|
||||||
AGESAWRAPPER(amdinitearly);
|
AGESAWRAPPER(amdinitearly);
|
||||||
int s3resume = acpi_is_wakeup_s3();
|
|
||||||
if (!s3resume) {
|
|
||||||
post_code(0x40);
|
|
||||||
AGESAWRAPPER(amdinitpost);
|
|
||||||
|
|
||||||
post_code(0x41);
|
post_code(0x40);
|
||||||
AGESAWRAPPER(amdinitenv);
|
AGESAWRAPPER(amdinitpost);
|
||||||
/*
|
|
||||||
If code hangs here, please check cahaltasm.S
|
|
||||||
*/
|
|
||||||
disable_cache_as_ram();
|
|
||||||
} else { /* S3 detect */
|
|
||||||
printk(BIOS_INFO, "S3 detected\n");
|
|
||||||
|
|
||||||
post_code(0x60);
|
post_code(0x41);
|
||||||
AGESAWRAPPER(amdinitresume);
|
AGESAWRAPPER(amdinitenv);
|
||||||
|
/*
|
||||||
AGESAWRAPPER(amds3laterestore);
|
If code hangs here, please check cahaltasm.S
|
||||||
|
*/
|
||||||
post_code(0x61);
|
disable_cache_as_ram();
|
||||||
prepare_for_resume();
|
|
||||||
}
|
|
||||||
|
|
||||||
outb(0xEA, 0xCD6);
|
outb(0xEA, 0xCD6);
|
||||||
outb(0x1, 0xcd7);
|
outb(0x1, 0xcd7);
|
||||||
|
|
|
@ -84,9 +84,6 @@ static void gardenia_enable(device_t dev)
|
||||||
{
|
{
|
||||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||||
|
|
||||||
if (acpi_is_wakeup_s3())
|
|
||||||
agesawrapper_fchs3earlyrestore();
|
|
||||||
|
|
||||||
/* Initialize the PIRQ data structures for consumption */
|
/* Initialize the PIRQ data structures for consumption */
|
||||||
pirq_setup();
|
pirq_setup();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#include <cpu/x86/lapic.h>
|
#include <cpu/x86/lapic.h>
|
||||||
#include <cpu/x86/bist.h>
|
#include <cpu/x86/bist.h>
|
||||||
#include <cpu/amd/car.h>
|
#include <cpu/amd/car.h>
|
||||||
#include <cpu/amd/pi/s3_resume.h>
|
|
||||||
#include <northbridge/amd/pi/agesawrapper.h>
|
#include <northbridge/amd/pi/agesawrapper.h>
|
||||||
#include <northbridge/amd/pi/agesawrapper_call.h>
|
#include <northbridge/amd/pi/agesawrapper_call.h>
|
||||||
#include <southbridge/amd/pi/hudson/hudson.h>
|
#include <southbridge/amd/pi/hudson/hudson.h>
|
||||||
|
@ -28,9 +27,6 @@
|
||||||
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;
|
||||||
#if CONFIG_HAVE_ACPI_RESUME
|
|
||||||
void *resume_backup_memory;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
amd_initmmio();
|
amd_initmmio();
|
||||||
hudson_lpc_port80();
|
hudson_lpc_port80();
|
||||||
|
@ -62,27 +58,15 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||||
|
|
||||||
post_code(0x39);
|
post_code(0x39);
|
||||||
AGESAWRAPPER(amdinitearly);
|
AGESAWRAPPER(amdinitearly);
|
||||||
int s3resume = acpi_is_wakeup_s3();
|
|
||||||
if (!s3resume) {
|
|
||||||
post_code(0x40);
|
|
||||||
AGESAWRAPPER(amdinitpost);
|
|
||||||
post_code(0x41);
|
|
||||||
AGESAWRAPPER(amdinitenv);
|
|
||||||
/* TODO: Disable cache is not ok. */
|
|
||||||
disable_cache_as_ram();
|
|
||||||
} else { /* S3 detect */
|
|
||||||
printk(BIOS_INFO, "S3 detected\n");
|
|
||||||
|
|
||||||
post_code(0x60);
|
post_code(0x40);
|
||||||
AGESAWRAPPER(amdinitresume);
|
AGESAWRAPPER(amdinitpost);
|
||||||
|
post_code(0x41);
|
||||||
|
AGESAWRAPPER(amdinitenv);
|
||||||
|
/* TODO: Disable cache is not ok. */
|
||||||
|
disable_cache_as_ram();
|
||||||
|
|
||||||
AGESAWRAPPER(amds3laterestore);
|
if (acpi_is_wakeup_s4()) {
|
||||||
|
|
||||||
post_code(0x61);
|
|
||||||
prepare_for_resume();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (s3resume || acpi_is_wakeup_s4()) {
|
|
||||||
outb(0xEE, PM_INDEX);
|
outb(0xEE, PM_INDEX);
|
||||||
outb(0x8, PM_DATA);
|
outb(0x8, PM_DATA);
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <arch/acpi.h>
|
#include <arch/acpi.h>
|
||||||
#include <northbridge/amd/pi/BiosCallOuts.h>
|
#include <northbridge/amd/pi/BiosCallOuts.h>
|
||||||
#include <cpu/amd/pi/s3_resume.h>
|
|
||||||
#include <northbridge/amd/pi/agesawrapper.h>
|
#include <northbridge/amd/pi/agesawrapper.h>
|
||||||
#include <cpu/x86/msr.h>
|
#include <cpu/x86/msr.h>
|
||||||
#include <cpu/amd/mtrr.h>
|
#include <cpu/amd/mtrr.h>
|
||||||
|
@ -147,12 +146,6 @@ static void pirq_setup(void)
|
||||||
static void mainboard_enable(device_t dev)
|
static void mainboard_enable(device_t dev)
|
||||||
{
|
{
|
||||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||||
/*
|
|
||||||
* The mainboard is the first place that we get control in ramstage. Check
|
|
||||||
* for S3 resume and call the approriate AGESA/CIMx resume functions.
|
|
||||||
*/
|
|
||||||
if (acpi_is_wakeup_s3())
|
|
||||||
agesawrapper_fchs3earlyrestore();
|
|
||||||
|
|
||||||
/* Initialize the PIRQ data structures for consumption */
|
/* Initialize the PIRQ data structures for consumption */
|
||||||
pirq_setup();
|
pirq_setup();
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <arch/acpi.h>
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <arch/stages.h>
|
#include <arch/stages.h>
|
||||||
#include <device/pnp_def.h>
|
#include <device/pnp_def.h>
|
||||||
|
@ -32,7 +31,6 @@
|
||||||
#include <cpu/x86/lapic.h>
|
#include <cpu/x86/lapic.h>
|
||||||
#include <southbridge/amd/common/amd_defs.h>
|
#include <southbridge/amd/common/amd_defs.h>
|
||||||
#include <southbridge/amd/pi/hudson/hudson.h>
|
#include <southbridge/amd/pi/hudson/hudson.h>
|
||||||
#include <cpu/amd/pi/s3_resume.h>
|
|
||||||
#include "cbmem.h"
|
#include "cbmem.h"
|
||||||
#include "superio/fintek/f81216h/f81216h.h"
|
#include "superio/fintek/f81216h/f81216h.h"
|
||||||
|
|
||||||
|
@ -88,29 +86,16 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||||
|
|
||||||
post_code(0x39);
|
post_code(0x39);
|
||||||
AGESAWRAPPER(amdinitearly);
|
AGESAWRAPPER(amdinitearly);
|
||||||
int s3resume = acpi_is_wakeup_s3();
|
|
||||||
if (!s3resume) {
|
|
||||||
post_code(0x40);
|
|
||||||
AGESAWRAPPER(amdinitpost);
|
|
||||||
|
|
||||||
post_code(0x41);
|
post_code(0x40);
|
||||||
AGESAWRAPPER(amdinitenv);
|
AGESAWRAPPER(amdinitpost);
|
||||||
/*
|
|
||||||
If code hangs here, please check cahaltasm.S
|
|
||||||
*/
|
|
||||||
disable_cache_as_ram();
|
|
||||||
}
|
|
||||||
else if (IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)) { /* S3 detect */
|
|
||||||
printk(BIOS_INFO, "S3 detected\n");
|
|
||||||
|
|
||||||
post_code(0x60);
|
post_code(0x41);
|
||||||
AGESAWRAPPER(amdinitresume);
|
AGESAWRAPPER(amdinitenv);
|
||||||
|
/*
|
||||||
AGESAWRAPPER(amds3laterestore);
|
If code hangs here, please check cahaltasm.S
|
||||||
|
*/
|
||||||
post_code(0x61);
|
disable_cache_as_ram();
|
||||||
prepare_for_resume();
|
|
||||||
}
|
|
||||||
|
|
||||||
post_code(0x50);
|
post_code(0x50);
|
||||||
copy_and_run();
|
copy_and_run();
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <arch/acpi.h>
|
#include <arch/acpi.h>
|
||||||
#include <northbridge/amd/pi/BiosCallOuts.h>
|
#include <northbridge/amd/pi/BiosCallOuts.h>
|
||||||
#include <cpu/amd/pi/s3_resume.h>
|
|
||||||
#include <northbridge/amd/pi/agesawrapper.h>
|
#include <northbridge/amd/pi/agesawrapper.h>
|
||||||
#include <cpu/x86/msr.h>
|
#include <cpu/x86/msr.h>
|
||||||
#include <cpu/amd/mtrr.h>
|
#include <cpu/amd/mtrr.h>
|
||||||
|
@ -31,9 +30,6 @@
|
||||||
static void mainboard_enable(device_t dev)
|
static void mainboard_enable(device_t dev)
|
||||||
{
|
{
|
||||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||||
|
|
||||||
if (acpi_is_wakeup_s3())
|
|
||||||
agesawrapper_fchs3earlyrestore();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct chip_operations mainboard_ops = {
|
struct chip_operations mainboard_ops = {
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <arch/acpi.h>
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <arch/stages.h>
|
#include <arch/stages.h>
|
||||||
#include <device/pnp_def.h>
|
#include <device/pnp_def.h>
|
||||||
|
@ -31,7 +30,6 @@
|
||||||
#include <cpu/x86/bist.h>
|
#include <cpu/x86/bist.h>
|
||||||
#include <cpu/x86/lapic.h>
|
#include <cpu/x86/lapic.h>
|
||||||
#include <southbridge/amd/pi/hudson/hudson.h>
|
#include <southbridge/amd/pi/hudson/hudson.h>
|
||||||
#include <cpu/amd/pi/s3_resume.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)
|
||||||
{
|
{
|
||||||
|
@ -87,29 +85,17 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||||
|
|
||||||
post_code(0x39);
|
post_code(0x39);
|
||||||
AGESAWRAPPER(amdinitearly);
|
AGESAWRAPPER(amdinitearly);
|
||||||
int s3resume = acpi_is_wakeup_s3();
|
|
||||||
if (!s3resume) {
|
|
||||||
post_code(0x40);
|
|
||||||
AGESAWRAPPER(amdinitpost);
|
|
||||||
|
|
||||||
//PspMboxBiosCmdDramInfo();
|
post_code(0x40);
|
||||||
post_code(0x41);
|
AGESAWRAPPER(amdinitpost);
|
||||||
AGESAWRAPPER(amdinitenv);
|
|
||||||
/*
|
|
||||||
If code hangs here, please check cahaltasm.S
|
|
||||||
*/
|
|
||||||
disable_cache_as_ram();
|
|
||||||
} else { /* S3 detect */
|
|
||||||
printk(BIOS_INFO, "S3 detected\n");
|
|
||||||
|
|
||||||
post_code(0x60);
|
//PspMboxBiosCmdDramInfo();
|
||||||
AGESAWRAPPER(amdinitresume);
|
post_code(0x41);
|
||||||
|
AGESAWRAPPER(amdinitenv);
|
||||||
AGESAWRAPPER(amds3laterestore);
|
/*
|
||||||
|
If code hangs here, please check cahaltasm.S
|
||||||
post_code(0x61);
|
*/
|
||||||
prepare_for_resume();
|
disable_cache_as_ram();
|
||||||
}
|
|
||||||
|
|
||||||
outb(0xEA, 0xCD6);
|
outb(0xEA, 0xCD6);
|
||||||
outb(0x1, 0xcd7);
|
outb(0x1, 0xcd7);
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <arch/acpi.h>
|
#include <arch/acpi.h>
|
||||||
#include <northbridge/amd/pi/BiosCallOuts.h>
|
#include <northbridge/amd/pi/BiosCallOuts.h>
|
||||||
#include <cpu/amd/pi/s3_resume.h>
|
|
||||||
#include <northbridge/amd/pi/agesawrapper.h>
|
#include <northbridge/amd/pi/agesawrapper.h>
|
||||||
#include <cpu/x86/msr.h>
|
#include <cpu/x86/msr.h>
|
||||||
#include <cpu/amd/mtrr.h>
|
#include <cpu/amd/mtrr.h>
|
||||||
|
@ -31,9 +30,6 @@
|
||||||
static void mainboard_enable(device_t dev)
|
static void mainboard_enable(device_t dev)
|
||||||
{
|
{
|
||||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||||
|
|
||||||
if (acpi_is_wakeup_s3())
|
|
||||||
agesawrapper_fchs3earlyrestore();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct chip_operations mainboard_ops = {
|
struct chip_operations mainboard_ops = {
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <arch/acpi.h>
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <arch/stages.h>
|
#include <arch/stages.h>
|
||||||
#include <device/pnp_def.h>
|
#include <device/pnp_def.h>
|
||||||
|
@ -31,7 +30,6 @@
|
||||||
#include <cpu/x86/bist.h>
|
#include <cpu/x86/bist.h>
|
||||||
#include <cpu/x86/lapic.h>
|
#include <cpu/x86/lapic.h>
|
||||||
#include <southbridge/amd/pi/hudson/hudson.h>
|
#include <southbridge/amd/pi/hudson/hudson.h>
|
||||||
#include <cpu/amd/pi/s3_resume.h>
|
|
||||||
#include <superio/fintek/common/fintek.h>
|
#include <superio/fintek/common/fintek.h>
|
||||||
#include <superio/fintek/f81866d/f81866d.h>
|
#include <superio/fintek/f81866d/f81866d.h>
|
||||||
|
|
||||||
|
@ -81,29 +79,17 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||||
|
|
||||||
post_code(0x39);
|
post_code(0x39);
|
||||||
AGESAWRAPPER(amdinitearly);
|
AGESAWRAPPER(amdinitearly);
|
||||||
int s3resume = acpi_is_wakeup_s3();
|
|
||||||
if (!s3resume) {
|
|
||||||
post_code(0x40);
|
|
||||||
AGESAWRAPPER(amdinitpost);
|
|
||||||
|
|
||||||
//PspMboxBiosCmdDramInfo();
|
post_code(0x40);
|
||||||
post_code(0x41);
|
AGESAWRAPPER(amdinitpost);
|
||||||
AGESAWRAPPER(amdinitenv);
|
|
||||||
/*
|
|
||||||
If code hangs here, please check cahaltasm.S
|
|
||||||
*/
|
|
||||||
disable_cache_as_ram();
|
|
||||||
} else { /* S3 detect */
|
|
||||||
printk(BIOS_INFO, "S3 detected\n");
|
|
||||||
|
|
||||||
post_code(0x60);
|
//PspMboxBiosCmdDramInfo();
|
||||||
AGESAWRAPPER(amdinitresume);
|
post_code(0x41);
|
||||||
|
AGESAWRAPPER(amdinitenv);
|
||||||
AGESAWRAPPER(amds3laterestore);
|
/*
|
||||||
|
If code hangs here, please check cahaltasm.S
|
||||||
post_code(0x61);
|
*/
|
||||||
prepare_for_resume();
|
disable_cache_as_ram();
|
||||||
}
|
|
||||||
|
|
||||||
outb(0xEA, 0xCD6);
|
outb(0xEA, 0xCD6);
|
||||||
outb(0x1, 0xcd7);
|
outb(0x1, 0xcd7);
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
#include <arch/acpi.h>
|
#include <arch/acpi.h>
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <cpu/amd/pi/s3_resume.h>
|
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
|
@ -183,9 +182,6 @@ static void mainboard_enable(device_t dev)
|
||||||
//
|
//
|
||||||
pm_write16 ( PM_S_STATE_CONTROL, pm_read16( PM_S_STATE_CONTROL ) | (1 << 14));
|
pm_write16 ( PM_S_STATE_CONTROL, pm_read16( PM_S_STATE_CONTROL ) | (1 << 14));
|
||||||
|
|
||||||
if (acpi_is_wakeup_s3())
|
|
||||||
agesawrapper_fchs3earlyrestore();
|
|
||||||
|
|
||||||
/* Initialize the PIRQ data structures for consumption */
|
/* Initialize the PIRQ data structures for consumption */
|
||||||
pirq_setup();
|
pirq_setup();
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <arch/acpi.h>
|
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <arch/stages.h>
|
#include <arch/stages.h>
|
||||||
#include <device/pnp_def.h>
|
#include <device/pnp_def.h>
|
||||||
|
@ -31,7 +30,6 @@
|
||||||
#include <cpu/x86/bist.h>
|
#include <cpu/x86/bist.h>
|
||||||
#include <cpu/x86/lapic.h>
|
#include <cpu/x86/lapic.h>
|
||||||
#include <southbridge/amd/pi/hudson/hudson.h>
|
#include <southbridge/amd/pi/hudson/hudson.h>
|
||||||
#include <cpu/amd/pi/s3_resume.h>
|
|
||||||
#include <Fch/Fch.h>
|
#include <Fch/Fch.h>
|
||||||
#include "gpio_ftns.h"
|
#include "gpio_ftns.h"
|
||||||
|
|
||||||
|
@ -82,29 +80,17 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||||
|
|
||||||
post_code(0x39);
|
post_code(0x39);
|
||||||
AGESAWRAPPER(amdinitearly);
|
AGESAWRAPPER(amdinitearly);
|
||||||
int s3resume = acpi_is_wakeup_s3();
|
|
||||||
if (!s3resume) {
|
|
||||||
post_code(0x40);
|
|
||||||
AGESAWRAPPER(amdinitpost);
|
|
||||||
|
|
||||||
//PspMboxBiosCmdDramInfo();
|
post_code(0x40);
|
||||||
post_code(0x41);
|
AGESAWRAPPER(amdinitpost);
|
||||||
AGESAWRAPPER(amdinitenv);
|
|
||||||
/*
|
|
||||||
If code hangs here, please check cahaltasm.S
|
|
||||||
*/
|
|
||||||
disable_cache_as_ram();
|
|
||||||
} else { /* S3 detect */
|
|
||||||
printk(BIOS_INFO, "S3 detected\n");
|
|
||||||
|
|
||||||
post_code(0x60);
|
//PspMboxBiosCmdDramInfo();
|
||||||
AGESAWRAPPER(amdinitresume);
|
post_code(0x41);
|
||||||
|
AGESAWRAPPER(amdinitenv);
|
||||||
AGESAWRAPPER(amds3laterestore);
|
/*
|
||||||
|
If code hangs here, please check cahaltasm.S
|
||||||
post_code(0x61);
|
*/
|
||||||
prepare_for_resume();
|
disable_cache_as_ram();
|
||||||
}
|
|
||||||
|
|
||||||
outb(0xEA, 0xCD6);
|
outb(0xEA, 0xCD6);
|
||||||
outb(0x1, 0xcd7);
|
outb(0x1, 0xcd7);
|
||||||
|
|
Loading…
Reference in New Issue