summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPoddar, Sourav <sourav.poddar@ti.com>2014-04-03 07:52:54 -0400
committerTom Rini <trini@ti.com>2014-04-17 17:20:18 -0400
commitb545a98f5dc5635d55b5b3878cbb44142e863017 (patch)
treebe55533fa639334a33ff632a10b0b65c287630c7 /drivers
parentd3289aac64c5785d782b8a6e1ab2112e1e463b33 (diff)
downloadu-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')
-rw-r--r--drivers/spi/ti_qspi.c3
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;