soc/intel/common/block: Add max SPI transaction time-out as 5 sec
Earlier 15ms time-out was kept for SPI transactions which was not enough for SPI Erase transactions. Increase the max time-out time to 5 secs which was present in SKL before common code. This increase in time-out won't disturb other SPI transactions like Read, Write or Read Status, since, for those it will come out of the loop once FDONE bit or FCERR bit is set. BUG=b:63959637 BRANCH=none TEST=Built and booted poppy and all SPI transactions succeeded. Change-Id: I1c015d80b33677de11755fb2097373631d1fa8c4 Signed-off-by: Barnali Sarkar <barnali.sarkar@intel.com> Reviewed-on: https://review.coreboot.org/20738 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
695576799b
commit
130f266c6e
|
@ -150,7 +150,7 @@
|
|||
/* Programmable values of Bit0(SSMS) of Set STRAP MSG Control (0xF4) Register*/
|
||||
#define SPIBAR_RESET_CTRL_SSMC 1 /* Set_Strap Mux Select(SSMS) Bit=1*/
|
||||
|
||||
#define SPIBAR_HWSEQ_XFER_TIMEOUT 15 /* 15ms*/
|
||||
#define SPIBAR_HWSEQ_XFER_TIMEOUT 5000 /* max 5s*/
|
||||
|
||||
void *fast_spi_get_bar(void);
|
||||
|
||||
|
|
Loading…
Reference in New Issue