]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
nand, atmel: remove udelay in spl_nand_erase_one()
authorHeiko Schocher <hs@denx.de>
Mon, 29 Jun 2015 07:10:47 +0000 (09:10 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 13 Aug 2015 00:47:27 +0000 (20:47 -0400)
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>
drivers/mtd/nand/atmel_nand.c

index a2016e7945d0f06a6c33bc9703e2bdb33665d998..0d4f327ed71e2196b01e88eeaab1486f7ae0229f 100644 (file)
@@ -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))
                ;