diff options
author | Poddar, Sourav <sourav.poddar@ti.com> | 2014-04-03 07:52:54 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-04-17 17:20:18 -0400 |
commit | b545a98f5dc5635d55b5b3878cbb44142e863017 (patch) | |
tree | be55533fa639334a33ff632a10b0b65c287630c7 /drivers/spi/ti_qspi.c | |
parent | d3289aac64c5785d782b8a6e1ab2112e1e463b33 (diff) | |
download | u-boot-imx-b545a98f5dc5635d55b5b3878cbb44142e863017.zip u-boot-imx-b545a98f5dc5635d55b5b3878cbb44142e863017.tar.gz u-boot-imx-b545a98f5dc5635d55b5b3878cbb44142e863017.tar.bz2 |
spi: ti_qspi: Add delay for successful bulk erase.
Bulk erase is not happening properly on dra7 due to erase timing constraints,
add a delay so that erase timing constraints are properly met.
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Tested-by: Yebio Mesfin <ymesfin@ti.com>
Diffstat (limited to 'drivers/spi/ti_qspi.c')
-rw-r--r-- | drivers/spi/ti_qspi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index dfa5d0c..c5d2245 100644 --- a/drivers/spi/ti_qspi.c +++ b/drivers/spi/ti_qspi.c @@ -314,6 +314,9 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, qslave->cmd |= QSPI_RD_SNGL; debug("rx cmd %08x dc %08x\n", qslave->cmd, qslave->dc); + #ifdef CONFIG_DRA7XX + udelay(500); + #endif writel(qslave->cmd, &qslave->base->cmd); status = readl(&qslave->base->status); timeout = QSPI_TIMEOUT; |