[U-Boot] [PATCH 2/4] nand, atmel: remove udelay in spl_nand_erase_one()

Scott Wood scottwood at freescale.com
Tue Jun 16 01:41:29 CEST 2015


On Mon, 2015-06-15 at 14:21 +0200, Heiko Schocher wrote:
> remove unneeded udelay() in this function, as we use
> the dev_ready pin.
> 
> Signed-off-by: Heiko Schocher <hs at denx.de>
> ---
> 
>  drivers/mtd/nand/atmel_nand.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/mtd/nand/atmel_nand.c 
> b/drivers/mtd/nand/atmel_nand.c
> index a2016e7..0d4f327 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))
>               ;

Acked-by: Scott Wood <scottwood at freescale.com>

-Scott



More information about the U-Boot mailing list