public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Josh Wu <josh.wu@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCHv2] ARM: at91: atmel_nand: Support flash based BBT
Date: Wed, 25 Mar 2015 09:52:13 +0800	[thread overview]
Message-ID: <551214CD.2060005@atmel.com> (raw)
In-Reply-To: <1426845169-1531-1-git-send-email-davidcdueck@googlemail.com>

Hi, David

Thanks for the patch.

On 3/20/2015 5:52 PM, David Dueck wrote:
> Add support for on-flash bad block table. This makes U-Boot handle an existing
> BBT correctly.
>
> Signed-off-by: David Dueck <davidcdueck@googlemail.com>
> Reviewed-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
> CC: Boris BREZILLON <boris.brezillon@free-electrons.com>
> CC: Josh Wu <josh.wu@atmel.com>
> CC: Andreas Bie?mann <andreas.devel@googlemail.com>
> CC: Scott Wood <scottwood@freescale.com>
Acked-by: Josh Wu <josh.wu@atmel.com>

Best Regards,
Josh Wu

> ---
> Changes since v1:
> - improve commit message
> - add Reviewed-by tag
>
>   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)

  reply	other threads:[~2015-03-25  1:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-20  9:52 [U-Boot] [PATCHv2] ARM: at91: atmel_nand: Support flash based BBT David Dueck
2015-03-25  1:52 ` Josh Wu [this message]
2015-03-31 23:05 ` [U-Boot] [U-Boot,PATCHv2] " Andreas Bießmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=551214CD.2060005@atmel.com \
    --to=josh.wu@atmel.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox