tpm: spi: cr50: using tpm irq to sync tpm transaction
BUG=b:35647967 TEST=boot from bob Change-Id: Ib64107b17fb6e93dbe626ce92f3bc9da8b84784e Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> Reviewed-on: https://chromium-review.googlesource.com/452284 Commit-Ready: Caesar Wang <wxt@rock-chips.com> Tested-by: Caesar Wang <wxt@rock-chips.com> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
parent
9407c1fbc0
commit
abe212ffb0
2 changed files with 49 additions and 5 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue