AGESA: Add guard for acpi_get_sleep_type()
With EARLY_CBMEM_INIT, this is defined from ACPI layer instead for ENV_RAMSTAGE. Change-Id: Ia9c1be4d3acaa0fa8827350558e6578c39b71602 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/20595 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
5df9df55b7
commit
8a303b7865
|
@ -19,6 +19,8 @@
|
|||
#include <cbmem.h>
|
||||
#include "hudson.h"
|
||||
|
||||
#if !ENV_RAMSTAGE || IS_ENABLED(CONFIG_LATE_CBMEM_INIT)
|
||||
|
||||
int acpi_get_sleep_type(void)
|
||||
{
|
||||
u16 tmp = inw(ACPI_PM1_CNT_BLK);
|
||||
|
@ -26,6 +28,8 @@ int acpi_get_sleep_type(void)
|
|||
return (int)tmp;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void backup_top_of_low_cacheable(uintptr_t ramtop)
|
||||
{
|
||||
u32 dword = ramtop;
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
#include <cbmem.h>
|
||||
#include "SBPLATFORM.h"
|
||||
|
||||
#if !ENV_RAMSTAGE || IS_ENABLED(CONFIG_LATE_CBMEM_INIT)
|
||||
|
||||
int acpi_get_sleep_type(void)
|
||||
{
|
||||
u16 tmp = inw(PM1_CNT_BLK_ADDRESS);
|
||||
|
@ -26,6 +28,8 @@ int acpi_get_sleep_type(void)
|
|||
return (int)tmp;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void backup_top_of_low_cacheable(uintptr_t ramtop)
|
||||
{
|
||||
u32 dword = ramtop;
|
||||
|
|
Loading…
Reference in New Issue