From f0f8a5fda830f9fc160cc1682f3805c9d5ee926e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=BBygowski?= Date: Sat, 23 Apr 2022 00:22:20 +0200 Subject: [PATCH] mainboard/msi/ms7d25: Enable PTT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original firmware ships with PTT enabled by default on poweron. PTT takes priority over SPI/LPC TPM so enable the CRB interface until coreboot implements a way to select the interface and adapt the API to handle any TPM detection. TEST=Boot the board and see PTT is detected by Windows and Linux Signed-off-by: Michał Żygowski Change-Id: I74dc2c4245388a9f134b27e313ef26124b952594 Reviewed-on: https://review.coreboot.org/c/coreboot/+/63834 Reviewed-by: Krystian Hebel Tested-by: build bot (Jenkins) --- configs/config.msi_ms7d25 | 2 ++ src/mainboard/msi/ms7d25/Kconfig | 2 ++ src/mainboard/msi/ms7d25/devicetree.cb | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/configs/config.msi_ms7d25 b/configs/config.msi_ms7d25 index ed042f5b8a..1952307ffd 100644 --- a/configs/config.msi_ms7d25 +++ b/configs/config.msi_ms7d25 @@ -15,3 +15,5 @@ CONFIG_TIANOCORE_TAG_OR_REV="origin/dasharo" CONFIG_TIANOCORE_CBMEM_LOGGING=y CONFIG_TIANOCORE_FOLLOW_BGRT_SPEC=y CONFIG_TIANOCORE_SD_MMC_TIMEOUT=1000 +CONFIG_TPM2=y +CONFIG_TPM_MEASURED_BOOT=y diff --git a/src/mainboard/msi/ms7d25/Kconfig b/src/mainboard/msi/ms7d25/Kconfig index db32b17655..0bfdc7d590 100644 --- a/src/mainboard/msi/ms7d25/Kconfig +++ b/src/mainboard/msi/ms7d25/Kconfig @@ -11,6 +11,8 @@ config BOARD_MSI_MS7D25 select HAVE_ACPI_RESUME select HAVE_ACPI_TABLES select INTEL_GMA_HAVE_VBT + select CRB_TPM + select HAVE_INTEL_PTT if BOARD_MSI_MS7D25 diff --git a/src/mainboard/msi/ms7d25/devicetree.cb b/src/mainboard/msi/ms7d25/devicetree.cb index b2cc6b1a7e..770923f02e 100644 --- a/src/mainboard/msi/ms7d25/devicetree.cb +++ b/src/mainboard/msi/ms7d25/devicetree.cb @@ -225,5 +225,9 @@ chip soc/intel/alderlake register "pch_hda_idisp_codec_enable" = "true" end device ref smbus on end + + chip drivers/crb + device mmio 0xfed40000 on end + end end end