summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/common/block/smm
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2020-10-08 16:36:25 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-10-12 08:48:17 +0000
commit06c022f3a1c67fbe81be084f1a84f93f5be8842d (patch)
tree0b837ab06e1573f3ae30f9aece6269d7d5924788 /src/soc/intel/common/block/smm
parentcce822840d0514ae03fad029340202964bb1c59f (diff)
downloadcoreboot-06c022f3a1c67fbe81be084f1a84f93f5be8842d.tar.gz
coreboot-06c022f3a1c67fbe81be084f1a84f93f5be8842d.tar.bz2
coreboot-06c022f3a1c67fbe81be084f1a84f93f5be8842d.zip
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 <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46224 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Christian Walter <christian.walter@9elements.com>
Diffstat (limited to 'src/soc/intel/common/block/smm')
-rw-r--r--src/soc/intel/common/block/smm/smihandler.c4
1 files 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 ab88a5111851..270b1aa7963f 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();