summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/cherry/chromeos.c
diff options
context:
space:
mode:
authorYidi Lin <yidi.lin@mediatek.com>2021-04-06 14:10:53 +0800
committerHung-Te Lin <hungte@chromium.org>2021-05-10 05:28:19 +0000
commit4b97a134857f98c4c0378ab0118b75b5b6a482dc (patch)
treefb8c9695cbe0c96eae506a35c70177bf5266168c /src/mainboard/google/cherry/chromeos.c
parent19a1bad42597c939dbd0ce9eabe8d610d3f7e2c2 (diff)
downloadcoreboot-4b97a134857f98c4c0378ab0118b75b5b6a482dc.tar.gz
coreboot-4b97a134857f98c4c0378ab0118b75b5b6a482dc.tar.bz2
coreboot-4b97a134857f98c4c0378ab0118b75b5b6a482dc.zip
mb/google/cherry: Configure TPM
Change-Id: I1d6ecdb31eef65d2e96d9251348390aa8598be6c Signed-off-by: Yidi Lin <yidi.lin@mediatek.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/53900 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/mainboard/google/cherry/chromeos.c')
-rw-r--r--src/mainboard/google/cherry/chromeos.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/cherry/chromeos.c b/src/mainboard/google/cherry/chromeos.c
index 1a869a3fe079..03e44d5ac220 100644
--- a/src/mainboard/google/cherry/chromeos.c
+++ b/src/mainboard/google/cherry/chromeos.c
@@ -3,6 +3,7 @@
#include <bootmode.h>
#include <boot/coreboot_tables.h>
#include <gpio.h>
+#include <security/tpm/tis.h>
#include "gpio.h"
@@ -28,3 +29,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_eint_poll(GPIO_GSC_AP_INT);
+}