coreboot/src
Sean Rhodes d64385f307 acpi: Fix incorrect TPM2 table generation for CRB_TPM
If CONFIG(CRB_TPM) is enabled but the TPM is inactive, and no other TPM
interface (SPI, I2C, Memory-Mapped) is configured, the function would
incorrectly fallback to generate a TPM2 table for FIFO mode.

This commit adds a check to ensure crb_tpm_is_active() is only
called if CONFIG(CRB_TPM) is enabled and no other TPM interface
is present. If the CRB TPM is inactive and no other TPMs are
available, the function now exits early to prevent generating
an invalid TPM2 table.

Test=boot `starlabs/starlite_adl` and check Linux doesn't probe for a
TPM when PTT is not active.

Change-Id: I153779aa1f3d84ffeb694543f9da1d09b120f98f
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86513
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
2025-02-25 09:03:43 +00:00
..
acpi acpi: Fix incorrect TPM2 table generation for CRB_TPM 2025-02-25 09:03:43 +00:00
arch arch/riscv: Add common FDT build 2025-02-14 17:11:19 +00:00
commonlib util/cbfstool/eventlog: Add low battery event type 2025-02-10 15:14:13 +00:00
console console/i2c_smbus: Allow to send data w/o register offset 2024-07-11 00:06:22 +00:00
cpu cpu/x86/smm: Fix smm_get_save_state() returning invalid pointer 2025-01-20 03:25:41 +00:00
device device/pci_rom: Move VBIOS checksum fix 2025-02-14 16:41:41 +00:00
drivers drivers/amd/opensil/memmap.c: Factor out common memmap code to driver 2025-02-21 14:11:43 +00:00
ec ec/google/chromeec: Implement early power off support 2025-02-15 18:59:44 +00:00
include lib: Introduce early power off support Kconfig option 2025-02-15 18:59:11 +00:00
lib Kconfig: Rework SYSTEM_TYPE_XX to better map to SMBIOS 2025-02-19 16:45:42 +00:00
mainboard mb/google/trulo: Update GPIO wake pins 2025-02-25 07:43:47 +00:00
northbridge nb/intel/i440bx: Drop self-specific debugging macros 2025-01-29 18:41:53 +00:00
sbom src, util: Clean up makefile.inc in text, help & comments 2024-01-26 20:15:18 +00:00
security drivers/pc80/tpm: Remove flag TPM_RDRESP_NEED_DELAY 2024-10-14 15:26:11 +00:00
soc soc/intel/common/block/cse: Drop unused symbols 2025-02-24 05:14:03 +00:00
southbridge sb/intel/bd82x6x: Apply EHCI mapping to xhci_overcurrent_mapping 2025-01-21 05:01:14 +00:00
superio superio/ite: Add support for IT8625E 2024-11-21 15:49:12 +00:00
vendorcode drivers/amd/opensil/memmap.c: Factor out common memmap code to driver 2025-02-21 14:11:43 +00:00
Kconfig Kconfig: Rework SYSTEM_TYPE_XX to better map to SMBIOS 2025-02-19 16:45:42 +00:00