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>
This commit is contained in:
rbokka 2020-02-04 05:18:57 +05:30 committed by Julius Werner
parent 9bf0dd80a0
commit 9ec99342eb
1 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include <bootmode.h> #include <bootmode.h>
#include "board.h" #include "board.h"
#include <security/tpm/tis.h>
int get_write_protect_state(void) 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)); lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));
} }
int tis_plat_irq_status(void)
{
return gpio_irq_status(GPIO_H1_AP_INT);
}