Martin Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/52950 )
Change subject: mb/google/mancomb: Implement tis_plat_irq_status ......................................................................
mb/google/mancomb: Implement tis_plat_irq_status
This patch was implemented on Guybrush at CB:52352
BUG=b:185397933 TEST=Build
Signed-off-by: Martin Roth martinroth@chromium.org Change-Id: I141a504a827f37724fab0aaed7498fd543e471d6 --- M src/mainboard/google/mancomb/variants/baseboard/Makefile.inc A src/mainboard/google/mancomb/variants/baseboard/tpm_tis.c 2 files changed, 14 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/50/52950/1
diff --git a/src/mainboard/google/mancomb/variants/baseboard/Makefile.inc b/src/mainboard/google/mancomb/variants/baseboard/Makefile.inc index 3b86b93..88aa1a4 100644 --- a/src/mainboard/google/mancomb/variants/baseboard/Makefile.inc +++ b/src/mainboard/google/mancomb/variants/baseboard/Makefile.inc @@ -1,7 +1,12 @@ bootblock-y += gpio.c +bootblock-y += helpers.c + +romstage-y += tpm_tis.c
ramstage-y += gpio.c +ramstage-y += tpm_tis.c
verstage-y += gpio.c +verstage-y += tpm_tis.c
smm-y += gpio.c diff --git a/src/mainboard/google/mancomb/variants/baseboard/tpm_tis.c b/src/mainboard/google/mancomb/variants/baseboard/tpm_tis.c new file mode 100644 index 0000000..4550728 --- /dev/null +++ b/src/mainboard/google/mancomb/variants/baseboard/tpm_tis.c @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <security/tpm/tis.h> +#include <soc/gpio.h> + +int tis_plat_irq_status(void) +{ + return gpio_interrupt_status(GPIO_3); +}