From 8ef30253e3f117275306a1f977fd42e0470f4f5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sun, 4 May 2014 07:24:43 +0300 Subject: AGESA fam14: Use common callouts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: http://review.coreboot.org/5658 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan Reviewed-by: Patrick Georgi --- src/mainboard/jetway/nf81-t56n-lf/agesawrapper.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/mainboard/jetway/nf81-t56n-lf/agesawrapper.c') diff --git a/src/mainboard/jetway/nf81-t56n-lf/agesawrapper.c b/src/mainboard/jetway/nf81-t56n-lf/agesawrapper.c index 89f3c01c46..21930e4304 100644 --- a/src/mainboard/jetway/nf81-t56n-lf/agesawrapper.c +++ b/src/mainboard/jetway/nf81-t56n-lf/agesawrapper.c @@ -23,9 +23,7 @@ #define __SIMPLE_DEVICE__ -#include #include -#include #include #include #include @@ -181,23 +179,6 @@ AGESA_STATUS agesawrapper_amdinitearly(void) return 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; -} - AGESA_STATUS agesawrapper_amdinitpost(void) { AGESA_STATUS status; -- cgit v1.2.3