From de8c8eccc46f20ff4703768318af141a1174d1c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=BBygowski?= Date: Sun, 21 Nov 2021 12:50:48 +0100 Subject: [PATCH] security/intel/txt: Use set_global_reset in txt_reset_platform if possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow to set global reset bits on other platforms which enable SOUTHBRIDGE_INTEL_COMMON_ME. In certain Intel TXT flows global reset instead of full power cycle reset is needed. Signed-off-by: Michał Żygowski Change-Id: I561458044860ee5a26f7d61bcff1c407fa1533f2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59517 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/security/intel/txt/common.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/security/intel/txt/common.c b/src/security/intel/txt/common.c index 18dbe06b1d..61ff0eb5eb 100644 --- a/src/security/intel/txt/common.c +++ b/src/security/intel/txt/common.c @@ -16,6 +16,9 @@ #if CONFIG(SOC_INTEL_COMMON_BLOCK_SA) #include #else +#if CONFIG(SOUTHBRIDGE_INTEL_COMMON_ME) +#include +#endif #include #endif @@ -29,6 +32,9 @@ static void __noreturn txt_reset_platform(void) #if CONFIG(SOC_INTEL_COMMON_BLOCK_SA) global_reset(); #else +#if CONFIG(SOUTHBRIDGE_INTEL_COMMON_ME) + set_global_reset(1); +#endif full_reset(); #endif }