mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
tpm: spi: cr50: try to wake cr50 if it is asleep
BUG=b:35775002 TEST=boot from bob Change-Id: I6324f3c02da55a8527f085ba463cbb1f4fb5dc2e Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> Reviewed-on: https://chromium-review.googlesource.com/452283 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
eabb1c209e
commit
9407c1fbc0
1 changed files with 6 additions and 0 deletions
|
@ -121,6 +121,12 @@ static int start_transaction(int read_write, size_t bytes, unsigned addr)
|
|||
*/
|
||||
mdelay(10);
|
||||
|
||||
/* Try to wake cr50 if it is asleep. */
|
||||
tpm_if.cs_assert(tpm_if.slave);
|
||||
udelay(1);
|
||||
tpm_if.cs_deassert(tpm_if.slave);
|
||||
udelay(100);
|
||||
|
||||
/*
|
||||
* The first byte of the frame header encodes the transaction type
|
||||
* (read or write) and transfer size (set to lentgh - 1), limited to
|
||||
|
|
Loading…
Add table
Reference in a new issue