summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2021-04-14 14:11:06 -0600
committerPatrick Georgi <pgeorgi@google.com>2021-04-16 06:39:35 +0000
commit46ca25d8c9099d3ef32f8cb76ba2d45be60fc24e (patch)
treeda9268bfd73bd371c7cb9135ffde4519eeb50dab
parent06d1e4d001cdce40fb770037cbce838c44c2a569 (diff)
mb/google/guybrush: Implement tis_plat_irq_status
BUG=b:185397933 TEST=boot guybrush and no longer see tis_plat_irq_status warnings Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: I9b67cb59221d4e355df8e8a2205e03ead7dba51f Reviewed-on: https://review.coreboot.org/c/coreboot/+/52352 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
-rw-r--r--src/mainboard/google/guybrush/variants/baseboard/Makefile.inc4
-rw-r--r--src/mainboard/google/guybrush/variants/baseboard/tpm_tis.c9
2 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/google/guybrush/variants/baseboard/Makefile.inc b/src/mainboard/google/guybrush/variants/baseboard/Makefile.inc
index 3b86b93aba..908a885965 100644
--- a/src/mainboard/google/guybrush/variants/baseboard/Makefile.inc
+++ b/src/mainboard/google/guybrush/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/guybrush/variants/baseboard/tpm_tis.c b/src/mainboard/google/guybrush/variants/baseboard/tpm_tis.c
new file mode 100644
index 0000000000..4550728afb
--- /dev/null
+++ b/src/mainboard/google/guybrush/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);
+}