]> git.sur5r.net Git - u-boot/commitdiff
spi: ti_qspi: Add delay for successful bulk erase.
authorPoddar, Sourav <sourav.poddar@ti.com>
Thu, 3 Apr 2014 11:52:54 +0000 (07:52 -0400)
committerTom Rini <trini@ti.com>
Thu, 17 Apr 2014 21:20:18 +0000 (17:20 -0400)
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>
drivers/spi/ti_qspi.c

index dfa5d0ca2165bf854782023da1389eeb64809b4b..c5d2245e4460bd8881d40f2e2bde2ffa990e3930 100644 (file)
@@ -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;