Declare acpi_is_wakeup_early() only once
Change-Id: I5314d76168c40a6327d4a9ac3b4f4fb05497d6fc Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/4525 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
parent
206f37043e
commit
207880cd11
|
@ -560,6 +560,8 @@ extern u8 acpi_slp_type;
|
||||||
|
|
||||||
int acpi_is_wakeup(void);
|
int acpi_is_wakeup(void);
|
||||||
int acpi_is_wakeup_s3(void);
|
int acpi_is_wakeup_s3(void);
|
||||||
|
int acpi_is_wakeup_early(void);
|
||||||
|
|
||||||
void acpi_fail_wakeup(void);
|
void acpi_fail_wakeup(void);
|
||||||
void acpi_resume(void *wake_vec);
|
void acpi_resume(void *wake_vec);
|
||||||
void __attribute__((weak)) mainboard_suspend_resume(void);
|
void __attribute__((weak)) mainboard_suspend_resume(void);
|
||||||
|
@ -591,6 +593,7 @@ static inline int acpi_s3_resume_allowed(void)
|
||||||
#define acpi_slp_type 0
|
#define acpi_slp_type 0
|
||||||
static inline int acpi_is_wakeup(void) { return 0; }
|
static inline int acpi_is_wakeup(void) { return 0; }
|
||||||
static inline int acpi_is_wakeup_s3(void) { return 0; }
|
static inline int acpi_is_wakeup_s3(void) { return 0; }
|
||||||
|
static inline int acpi_is_wakeup_early(void) { return 0; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __ASM_ACPI_H */
|
#endif /* __ASM_ACPI_H */
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
#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 <cpu/amd/car.h>
|
||||||
|
#include <arch/acpi.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"
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#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>
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#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>
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#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>
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#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>
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#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>
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
|
|
||||||
|
#include <arch/acpi.h>
|
||||||
#include <arch/cpu.h>
|
#include <arch/cpu.h>
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <arch/stages.h>
|
#include <arch/stages.h>
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#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>
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
|
|
||||||
|
#include <arch/acpi.h>
|
||||||
#include <arch/cpu.h>
|
#include <arch/cpu.h>
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <arch/stages.h>
|
#include <arch/stages.h>
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
#include "agesawrapper.h"
|
#include "agesawrapper.h"
|
||||||
|
|
||||||
|
#include <arch/acpi.h>
|
||||||
#include <arch/cpu.h>
|
#include <arch/cpu.h>
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <arch/stages.h>
|
#include <arch/stages.h>
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#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>
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#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>
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.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 <device/pnp_def.h>
|
#include <device/pnp_def.h>
|
||||||
#include <arch/hlt.h>
|
#include <arch/hlt.h>
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include <cpu/x86/mtrr.h>
|
#include <cpu/x86/mtrr.h>
|
||||||
#include <cpu/amd/mtrr.h>
|
#include <cpu/amd/mtrr.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <arch/acpi.h>
|
||||||
#include <reset.h>
|
#include <reset.h>
|
||||||
#include "raminit.h"
|
#include "raminit.h"
|
||||||
#include "amdk8.h"
|
#include "amdk8.h"
|
||||||
|
|
|
@ -70,8 +70,6 @@ void hudson_clk_output_48Mhz(void);
|
||||||
int s3_save_nvram_early(u32 dword, int size, int nvram_pos);
|
int s3_save_nvram_early(u32 dword, int size, int nvram_pos);
|
||||||
int s3_load_nvram_early(int size, u32 *old_dword, int nvram_pos);
|
int s3_load_nvram_early(int size, u32 *old_dword, int nvram_pos);
|
||||||
|
|
||||||
int acpi_is_wakeup_early(void);
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
void hudson_enable(device_t dev);
|
void hudson_enable(device_t dev);
|
||||||
void __attribute__((weak)) hudson_setup_sata_phys(struct device *dev);
|
void __attribute__((weak)) hudson_setup_sata_phys(struct device *dev);
|
||||||
|
|
|
@ -32,8 +32,6 @@ void sb_Late_Post(void);
|
||||||
void sb_Before_Pci_Restore_Init(void);
|
void sb_Before_Pci_Restore_Init(void);
|
||||||
void sb_After_Pci_Restore_Init(void);
|
void sb_After_Pci_Restore_Init(void);
|
||||||
|
|
||||||
int acpi_is_wakeup_early(void);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CIMX not set the clock to 48Mhz until sbBeforePciInit,
|
* CIMX not set the clock to 48Mhz until sbBeforePciInit,
|
||||||
* coreboot may need to set this even more earlier
|
* coreboot may need to set this even more earlier
|
||||||
|
|
|
@ -21,13 +21,13 @@
|
||||||
#define _SB700_EARLY_SETUP_C_
|
#define _SB700_EARLY_SETUP_C_
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <arch/acpi.h>
|
||||||
#include <arch/cpu.h>
|
#include <arch/cpu.h>
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <cpu/x86/msr.h>
|
#include <cpu/x86/msr.h>
|
||||||
|
|
||||||
#include <reset.h>
|
#include <reset.h>
|
||||||
#include <arch/cpu.h>
|
|
||||||
#include <cbmem.h>
|
#include <cbmem.h>
|
||||||
#include "sb700.h"
|
#include "sb700.h"
|
||||||
#include "smbus.h"
|
#include "smbus.h"
|
||||||
|
|
|
@ -75,10 +75,6 @@ void sb7xx_51xx_setup_sata_phys(struct device *dev);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_HAVE_ACPI_RESUME
|
|
||||||
int acpi_is_wakeup_early(void);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int s3_save_nvram_early(u32 dword, int size, int nvram_pos);
|
int s3_save_nvram_early(u32 dword, int size, int nvram_pos);
|
||||||
int s3_load_nvram_early(int size, u32 *old_dword, int nvram_pos);
|
int s3_load_nvram_early(int size, u32 *old_dword, int nvram_pos);
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#define _SB800_EARLY_SETUP_C_
|
#define _SB800_EARLY_SETUP_C_
|
||||||
|
|
||||||
#include <reset.h>
|
#include <reset.h>
|
||||||
|
#include <arch/acpi.h>
|
||||||
#include <arch/cpu.h>
|
#include <arch/cpu.h>
|
||||||
#include <cbmem.h>
|
#include <cbmem.h>
|
||||||
#include "sb800.h"
|
#include "sb800.h"
|
||||||
|
@ -666,7 +667,7 @@ int s3_load_nvram_early(int size, u32 *old_dword, int nvram_pos)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_HAVE_ACPI_RESUME
|
#if CONFIG_HAVE_ACPI_RESUME
|
||||||
static int acpi_is_wakeup_early(void)
|
int acpi_is_wakeup_early(void)
|
||||||
{
|
{
|
||||||
u16 tmp;
|
u16 tmp;
|
||||||
tmp = inw(ACPI_PM1_CNT_BLK);
|
tmp = inw(ACPI_PM1_CNT_BLK);
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__ROMCC__)
|
||||||
|
#include <arch/acpi.h>
|
||||||
|
#endif
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <spd.h>
|
#include <spd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -328,7 +331,8 @@ void enable_rom_decode(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_HAVE_ACPI_RESUME
|
#if CONFIG_HAVE_ACPI_RESUME
|
||||||
static int acpi_is_wakeup_early(void) {
|
int acpi_is_wakeup_early(void)
|
||||||
|
{
|
||||||
device_t dev;
|
device_t dev;
|
||||||
u16 tmp;
|
u16 tmp;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue