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
cpu
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
security
soc soc/intel/common/block/cse: Drop unused symbols 2025-02-24 05:14:03 +00:00
southbridge
superio
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