summaryrefslogtreecommitdiff
path: root/src/mainboard/lippert/frontrunner-af/agesawrapper.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2014-05-04 07:24:43 +0300
committerPatrick Georgi <patrick@georgi-clan.de>2014-05-05 08:53:45 +0200
commit8ef30253e3f117275306a1f977fd42e0470f4f5a (patch)
tree2f51f09c8f2fe5d1890136a5da672fbb9897cc0f /src/mainboard/lippert/frontrunner-af/agesawrapper.c
parent5601922130485ee7af96189e843114f58a58b4fd (diff)
AGESA fam14: Use common callouts
Backported from fam15tn and fam16kb. This also implements GetHeapBase() to satisfy some requirements of HAVE_ACPI_RESUME for the following boards: amd/inagua amd/south_station amd/union_station asrock/e350m1 Change-Id: I488d063d4eabf4bf45bcbabd1e8f13b88b2ef401 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5658 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/mainboard/lippert/frontrunner-af/agesawrapper.c')
-rw-r--r--src/mainboard/lippert/frontrunner-af/agesawrapper.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/mainboard/lippert/frontrunner-af/agesawrapper.c b/src/mainboard/lippert/frontrunner-af/agesawrapper.c
index cf8534ed95..de9d16edcf 100644
--- a/src/mainboard/lippert/frontrunner-af/agesawrapper.c
+++ b/src/mainboard/lippert/frontrunner-af/agesawrapper.c
@@ -23,9 +23,7 @@
#define __SIMPLE_DEVICE__
-#include <arch/acpi.h>
#include <arch/io.h>
-#include <cbmem.h>
#include <cpu/x86/msr.h>
#include <cpu/x86/mtrr.h>
#include <stdint.h>
@@ -224,23 +222,6 @@ agesawrapper_amdinitearly (
return (UINT32)status;
}
-UINT32 GetHeapBase(
- AMD_CONFIG_PARAMS *StdHeader
- )
-{
- UINT32 heap;
-
-#if CONFIG_HAVE_ACPI_RESUME
- /* Both romstage and ramstage has this S3 detect. */
- if (acpi_get_sleep_type() == 3)
- heap = (UINT32)cbmem_find(CBMEM_ID_RESUME_SCRATCH) + (CONFIG_HIGH_SCRATCH_MEMORY_SIZE - BIOS_HEAP_SIZE); /* himem_heap_base + high_stack_size */
- else
-#endif
- heap = BIOS_HEAP_START_ADDRESS; /* low mem */
-
- return heap;
-}
-
UINT32
agesawrapper_amdinitpost (
VOID