Re: [U-Boot] [PATCH v2 5/5] ARM: at91: atmel_nand: add code to check the ONFI parameter ECC requirement

2013-06-25 Thread Scott Wood
On 06/25/2013 01:33:32 AM, Josh Wu wrote: Hi, Dear Scott On 6/21/2013 4:57 AM, Scott Wood wrote: On 06/17/2013 05:51:21 AM, Josh Wu wrote: +static int pmecc_choose_ecc(struct atmel_nand_host *host, +struct nand_chip *chip, +int *cap, int *sector_size) +{ +/* Get ECC require

Re: [U-Boot] [PATCH v2 5/5] ARM: at91: atmel_nand: add code to check the ONFI parameter ECC requirement

2013-06-24 Thread Josh Wu
Hi, Dear Scott On 6/21/2013 4:57 AM, Scott Wood wrote: On 06/17/2013 05:51:21 AM, Josh Wu wrote: +static int pmecc_choose_ecc(struct atmel_nand_host *host, +struct nand_chip *chip, +int *cap, int *sector_size) +{ +/* Get ECC requirement from ONFI parameters */ +*cap = *s

Re: [U-Boot] [PATCH v2 5/5] ARM: at91: atmel_nand: add code to check the ONFI parameter ECC requirement

2013-06-20 Thread Scott Wood
On 06/17/2013 05:51:21 AM, Josh Wu wrote: +static int pmecc_choose_ecc(struct atmel_nand_host *host, + struct nand_chip *chip, + int *cap, int *sector_size) +{ + /* Get ECC requirement from ONFI parameters */ + *cap = *sector_size = 0; + if (chip->onf

[U-Boot] [PATCH v2 5/5] ARM: at91: atmel_nand: add code to check the ONFI parameter ECC requirement

2013-06-17 Thread Josh Wu
1. if CONFIG_SYS_NAND_ONFI_DETECTION is defined, driver will check NAND flash's ecc minimum requirement in ONFI parameter. a) if CONFIG_PMECC_CAP, CONFIG_PMECC_SECTOR_SIZE are defined. then use it. Driver will display a WARNING if the values are different from ONFI parameters. b)