From 19e3d335bddb480a53e30242e72195dd5ae8e056 Mon Sep 17 00:00:00 2001 From: Jeffy Chen Date: Fri, 3 Mar 2017 18:24:02 +0800 Subject: drivers/spi/tpm: using tpm irq to sync tpm transaction BUG=b:35647967 TEST=boot from bob Change-Id: Ib64107b17fb6e93dbe626ce92f3bc9da8b84784e Signed-off-by: Jeffy Chen Reviewed-on: https://chromium-review.googlesource.com/452284 Commit-Ready: Caesar Wang Tested-by: Caesar Wang Reviewed-by: Julius Werner Reviewed-on: https://review.coreboot.org/19113 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/include/tpm.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/include/tpm.h') diff --git a/src/include/tpm.h b/src/include/tpm.h index b15ca6e76f..bd85b43844 100644 --- a/src/include/tpm.h +++ b/src/include/tpm.h @@ -64,4 +64,13 @@ int tis_sendrecv(const u8 *sendbuf, size_t send_size, u8 *recvbuf, void init_tpm(int s3resume); +/* + * tis_plat_irq_status() + * + * Check tpm irq and clear it. + * + * Returns 1 when irq pending or 0 when not. + */ +int tis_plat_irq_status(void); + #endif /* TPM_H_ */ -- cgit v1.2.3