summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-dw.h
diff options
context:
space:
mode:
authorSerge Semin <Sergey.Semin@baikalelectronics.ru>2020-10-08 02:55:04 +0300
committerMark Brown <broonie@kernel.org>2020-10-08 23:00:18 +0100
commitcf75baeac72c7cb57a8cf781e90cfd8ea77f2d51 (patch)
tree0b30b3d60be5113cbe74f0793269948947d56f05 /drivers/spi/spi-dw.h
parent49d7d695ca4bb2f62290c7039c4165556f0ca1e4 (diff)
spi: dw: Move num-of retries parameter to the header file
The parameter will be needed for another wait-done method being added in the framework of the SPI memory operation modification in a further commit. Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru> Link: https://lore.kernel.org/r/20201007235511.4935-16-Sergey.Semin@baikalelectronics.ru Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-dw.h')
-rw-r--r--drivers/spi/spi-dw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi-dw.h b/drivers/spi/spi-dw.h
index 0cb1ce28b26a..fd4534f7de3d 100644
--- a/drivers/spi/spi-dw.h
+++ b/drivers/spi/spi-dw.h
@@ -100,6 +100,8 @@
#define SPI_DMA_RDMAE (1 << 0)
#define SPI_DMA_TDMAE (1 << 1)
+#define SPI_WAIT_RETRIES 5
+
enum dw_ssi_type {
SSI_MOTO_SPI = 0,
SSI_TI_SSP,