From 06c022f3a1c67fbe81be084f1a84f93f5be8842d Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Thu, 8 Oct 2020 16:36:25 +0200 Subject: soc/intel/common/block/smm: Fix compilation without intel uart code Allow to link the smihandler when not selecting SOC_INTEL_COMMON_BLOCK_UART. Change-Id: Iabca81c958d00c48e0616579cbba61d254c5eb68 Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/46224 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh Reviewed-by: Christian Walter --- src/soc/intel/common/block/smm/smihandler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/intel/common/block/smm/smihandler.c b/src/soc/intel/common/block/smm/smihandler.c index ab88a51118..270b1aa796 100644 --- a/src/soc/intel/common/block/smm/smihandler.c +++ b/src/soc/intel/common/block/smm/smihandler.c @@ -200,8 +200,8 @@ void smihandler_southbridge_sleep( break; case ACPI_S3: printk(BIOS_DEBUG, "SMI#: Entering S3 (Suspend-To-RAM)\n"); - - gnvs->uior = uart_is_controller_initialized(); + if (CONFIG(SOC_INTEL_COMMON_BLOCK_UART)) + gnvs->uior = uart_is_controller_initialized(); /* Invalidate the cache before going to S3 */ wbinvd(); -- cgit v1.2.3