From 9ec99342eb062ef4e4e34832adcce2e9db2414e7 Mon Sep 17 00:00:00 2001 From: rbokka Date: Tue, 4 Feb 2020 05:18:57 +0530 Subject: [PATCH] trogdor: Latch GPIO interrupt support Required for TPM IRQ. Change-Id: I8198213cf2808be5291620892185b1e534263e3f Signed-off-by: Ravi Kumar Bokka Reviewed-on: https://review.coreboot.org/c/coreboot/+/38714 Reviewed-by: Julius Werner Tested-by: build bot (Jenkins) --- src/mainboard/google/trogdor/chromeos.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 #include #include "board.h" +#include 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); +}