[U-Boot] [PATCH] ARM: at91: atmel_nand: Support flash based BBT

Boris Brezillon boris.brezillon at free-electrons.com
Fri Mar 20 10:07:29 CET 2015


Hi David,

On Fri, 20 Mar 2015 08:27:23 +0100
David Dueck <davidcdueck at googlemail.com> wrote:

Can you add a short commit message ?

Apart from that, you have my

Reviewed-by: Boris Brezillon <boris.brezillon at free-electrons.com>

> Signed-off-by: David Dueck <davidcdueck at googlemail.com>
> CC: Boris BREZILLON <boris.brezillon at free-electrons.com>
> CC: Josh Wu <josh.wu at atmel.com>
> CC: Andreas Bießmann <andreas.devel at googlemail.com>
> CC: Scott Wood <scottwood at freescale.com>
> ---
>  drivers/mtd/nand/atmel_nand.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
> index b16e3aa..a2016e7 100644
> --- a/drivers/mtd/nand/atmel_nand.c
> +++ b/drivers/mtd/nand/atmel_nand.c
> @@ -1456,6 +1456,9 @@ int board_nand_init(struct nand_chip *nand)
>  	nand->dev_ready = at91_nand_wait_ready;
>  #endif
>  	nand->chip_delay = 20;
> +#ifdef CONFIG_SYS_NAND_USE_FLASH_BBT
> +	nand->bbt_options |= NAND_BBT_USE_FLASH;
> +#endif
>  
>  #ifdef CONFIG_ATMEL_NAND_HWECC
>  #ifdef CONFIG_ATMEL_NAND_HW_PMECC
> @@ -1522,6 +1525,9 @@ int atmel_nand_chip_init(int devnum, ulong base_addr)
>  	nand->dev_ready = at91_nand_ready;
>  #endif
>  	nand->chip_delay = 75;
> +#ifdef CONFIG_SYS_NAND_USE_FLASH_BBT
> +	nand->bbt_options |= NAND_BBT_USE_FLASH;
> +#endif
>  
>  	ret = nand_scan_ident(mtd, CONFIG_SYS_NAND_MAX_CHIPS, NULL);
>  	if (ret)



-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the U-Boot mailing list