diff options
author | Martin Roth <martinroth@chromium.org> | 2021-05-05 13:00:56 -0600 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-05-06 23:40:56 +0000 |
commit | d233b1a8310ff79f9d4d1ce0cd9285b1a668846d (patch) | |
tree | 76be1ed655f1fac8db322a695fde6b7e1c52f8ba | |
parent | 804382343e28560253ef43a599e23dcd63c2d28c (diff) |
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
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52950
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
-rw-r--r-- | src/mainboard/google/mancomb/variants/baseboard/Makefile.inc | 4 | ||||
-rw-r--r-- | src/mainboard/google/mancomb/variants/baseboard/tpm_tis.c | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/google/mancomb/variants/baseboard/Makefile.inc b/src/mainboard/google/mancomb/variants/baseboard/Makefile.inc index 3b86b93aba..908a885965 100644 --- a/src/mainboard/google/mancomb/variants/baseboard/Makefile.inc +++ b/src/mainboard/google/mancomb/variants/baseboard/Makefile.inc @@ -1,7 +1,11 @@ bootblock-y += gpio.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 0000000000..4550728afb --- /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); +} |