From 0746452a267c228d396a6a1faec3e9966e232e32 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 30 Oct 2015 14:46:18 -0500 Subject: southbridge/amd/sb700: Remove acpi_get_sleep_type for early CBMEM The acpi_get_sleep_type function in SB700 ramstage is only needed for boards / CPUs that require late CBMEM initialization. Providing this function in early CBMEM-compatible boards breaks building of the ACPI S3 code due to multiple definitions of acpi_get_sleep_type. Change-Id: Ieebc2640a586812e3e2bfd410987205d64147314 Signed-off-by: Timothy Pearson Reviewed-on: http://review.coreboot.org/12267 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Martin Roth --- src/southbridge/amd/sb700/lpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/southbridge/amd/sb700') diff --git a/src/southbridge/amd/sb700/lpc.c b/src/southbridge/amd/sb700/lpc.c index bc99c1c71a..a71fe1fcf8 100644 --- a/src/southbridge/amd/sb700/lpc.c +++ b/src/southbridge/amd/sb700/lpc.c @@ -83,13 +83,13 @@ static void lpc_init(device_t dev) cmos_check_update_date(); } +#if IS_ENABLED(CONFIG_LATE_CBMEM_INIT) int acpi_get_sleep_type(void) { u16 tmp = inw(ACPI_PM1_CNT_BLK); return ((tmp & (7 << 10)) >> 10); } -#if IS_ENABLED(CONFIG_LATE_CBMEM_INIT) void backup_top_of_ram(uint64_t ramtop) { u32 dword = (u32) ramtop; -- cgit v1.2.3