security/intel/txt: Use set_global_reset in txt_reset_platform if possible

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 <michal.zygowski@3mdeb.com>
Change-Id: I561458044860ee5a26f7d61bcff1c407fa1533f2
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59517
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Michał Żygowski 2021-11-21 12:50:48 +01:00
parent 7480e87d76
commit de8c8eccc4
1 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,9 @@
#if CONFIG(SOC_INTEL_COMMON_BLOCK_SA) #if CONFIG(SOC_INTEL_COMMON_BLOCK_SA)
#include <soc/intel/common/reset.h> #include <soc/intel/common/reset.h>
#else #else
#if CONFIG(SOUTHBRIDGE_INTEL_COMMON_ME)
#include <southbridge/intel/common/me.h>
#endif
#include <cf9_reset.h> #include <cf9_reset.h>
#endif #endif
@ -29,6 +32,9 @@ static void __noreturn txt_reset_platform(void)
#if CONFIG(SOC_INTEL_COMMON_BLOCK_SA) #if CONFIG(SOC_INTEL_COMMON_BLOCK_SA)
global_reset(); global_reset();
#else #else
#if CONFIG(SOUTHBRIDGE_INTEL_COMMON_ME)
set_global_reset(1);
#endif
full_reset(); full_reset();
#endif #endif
} }