drivers: qspi: added operation timeout
Added Kconfig assignment of qspi timeout. Per nrfx v3.2 addition of qspi timeout in config struct. Signed-off-by: Kelly Helmut Lord <kellyhlord@gmail.com>
This commit is contained in:
parent
4c080d4de5
commit
abafe9bbe2
2 changed files with 10 additions and 0 deletions
|
|
@ -50,4 +50,13 @@ config NORDIC_QSPI_NOR_XIP
|
|||
QSPI NOR flash chip is executed until the driver has been setup.
|
||||
This will also disable power management for the QSPI NOR flash chip.
|
||||
|
||||
config NORDIC_QSPI_NOR_TIMEOUT_MS
|
||||
int "Timeout for QSPI operations (ms)"
|
||||
default 500
|
||||
help
|
||||
The QSPI peripheral operation timeout in milliseconds.
|
||||
Primarily intended for long running operations such as
|
||||
a flash sector erase. The 500 ms default allows for
|
||||
most typical NOR flash chips to erase a sector.
|
||||
|
||||
endif # NORDIC_QSPI_NOR
|
||||
|
|
|
|||
|
|
@ -1382,6 +1382,7 @@ static const struct qspi_nor_config qspi_nor_dev_config = {
|
|||
.sck_delay = DT_INST_PROP(0, sck_delay),
|
||||
.spi_mode = INST_0_SPI_MODE,
|
||||
},
|
||||
.nrfx_cfg.timeout = CONFIG_NORDIC_QSPI_NOR_TIMEOUT_MS,
|
||||
|
||||
.size = INST_0_BYTES,
|
||||
.id = DT_INST_PROP(0, jedec_id),
|
||||
|
|
|
|||
Loading…
Reference in a new issue