summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2015-06-29 09:10:47 +0200
committerTom Rini <trini@konsulko.com>2015-08-12 20:47:27 -0400
commitc10ac540ea8d35917c3464761af1e0e50a607ada (patch)
tree08e4a553841fa2efda6c7c645ae3bfd34d8adf1a
parent80402f34f8e1f46134a0272ff4d34be64ff7380b (diff)
nand, atmel: remove udelay in spl_nand_erase_one()
remove unneeded udelay() in this function, as we use the dev_ready pin. Signed-off-by: Heiko Schocher <hs@denx.de> Acked-by: Scott Wood <scottwood@freescale.com>
-rw-r--r--drivers/mtd/nand/atmel_nand.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index a2016e7945..0d4f327ed7 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -1378,9 +1378,7 @@ int spl_nand_erase_one(int block, int page)
hwctrl(&mtd, (page_addr >> 16) & 0x0f,
NAND_CTRL_ALE | NAND_CTRL_CHANGE);
#endif
-
hwctrl(&mtd, NAND_CMD_ERASE2, NAND_CTRL_CLE | NAND_CTRL_CHANGE);
- udelay(2000);
while (!this->dev_ready(&mtd))
;