From fd7f51546e26828022dedcd877b8190d18f387bb Mon Sep 17 00:00:00 2001 From: Jon Murphy Date: Thu, 6 Apr 2023 23:15:03 -0600 Subject: mb/google/myst: Enable tis_plat_irq_status This will fix: > [INFO ] Probing TPM I2C: tis_plat_irq_status() not implemented, wasting 20ms to wait on Cr50! BUG=b:277297687 TEST=builds Change-Id: I611a2855d94167748d0f82a478687fe2cdf5846a Signed-off-by: Jon Murphy Reviewed-on: https://review.coreboot.org/c/coreboot/+/74286 Reviewed-by: Eric Lai Reviewed-by: Tim Van Patten Reviewed-by: Karthik Ramasubramanian Tested-by: build bot (Jenkins) --- src/mainboard/google/myst/variants/baseboard/Makefile.inc | 4 ++++ src/mainboard/google/myst/variants/baseboard/tpm_tis.c | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/mainboard/google/myst/variants/baseboard/tpm_tis.c (limited to 'src/mainboard/google/myst/variants') diff --git a/src/mainboard/google/myst/variants/baseboard/Makefile.inc b/src/mainboard/google/myst/variants/baseboard/Makefile.inc index 40a41dfeed..ffa462ab8f 100644 --- a/src/mainboard/google/myst/variants/baseboard/Makefile.inc +++ b/src/mainboard/google/myst/variants/baseboard/Makefile.inc @@ -1,7 +1,11 @@ bootblock-y += gpio.c ramstage-y += gpio.c +ramstage-y += tpm_tis.c romstage-y += gpio.c +romstage-y += tpm_tis.c + +verstage-y += tpm_tis.c smm-y += smihandler.c diff --git a/src/mainboard/google/myst/variants/baseboard/tpm_tis.c b/src/mainboard/google/myst/variants/baseboard/tpm_tis.c new file mode 100644 index 0000000000..d03158db81 --- /dev/null +++ b/src/mainboard/google/myst/variants/baseboard/tpm_tis.c @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include +#include + +int tis_plat_irq_status(void) +{ + return gpio_interrupt_status(GPIO_84); +} -- cgit v1.2.3