summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbokka <rbokka@codeaurora.org>2020-02-04 05:18:57 +0530
committerJulius Werner <jwerner@chromium.org>2020-05-11 23:59:29 +0000
commit9ec99342eb062ef4e4e34832adcce2e9db2414e7 (patch)
treea7b9a45d40ecc6fce12f31acc90d19c854a71df9 /src
parent9bf0dd80a065b75976772c68f66c12b1978f7716 (diff)
trogdor: Latch GPIO interrupt support
Required for TPM IRQ. Change-Id: I8198213cf2808be5291620892185b1e534263e3f Signed-off-by: Ravi Kumar Bokka <rbokka@codeaurora.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38714 Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/trogdor/chromeos.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/trogdor/chromeos.c b/src/mainboard/google/trogdor/chromeos.c
index cb010919d9..985ba0f85e 100644
--- a/src/mainboard/google/trogdor/chromeos.c
+++ b/src/mainboard/google/trogdor/chromeos.c
@@ -3,6 +3,7 @@
#include <boot/coreboot_tables.h>
#include <bootmode.h>
#include "board.h"
+#include <security/tpm/tis.h>
int get_write_protect_state(void)
{
@@ -31,3 +32,8 @@ void fill_lb_gpios(struct lb_gpios *gpios)
lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));
}
+
+int tis_plat_irq_status(void)
+{
+ return gpio_irq_status(GPIO_H1_AP_INT);
+}