From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Date: Thu, 22 Aug 2013 17:01:03 +0200 Subject: [U-Boot] =?utf-8?q?=5BU-Boot=2C_resend=2C_v3=2C_5/5=5D_ARM=3A_at9?= =?utf-8?q?1=3A_atmel=5Fnand=3A_add_code_to_check_the_ONFI_paramete?= =?utf-8?q?r_ECC_requirement?= In-Reply-To: <1372923383-25102-1-git-send-email-josh.wu@atmel.com> from Josh Wu on Thu, 4 Jul 2013 15:36:23 +0800 References: <1372923383-25102-1-git-send-email-josh.wu@atmel.com> Message-ID: <1377183663-4111-1-git-send-email-andreas.devel@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Josh Wu, Josh Wu writes: >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) if CONFIG_PMECC_CAP, CONFIG_PMECC_SECTOR_SIZE are not defined, then use > the value from ONFI parameters. > * If ONFI ECC parameters are in ONFI extended parameter page, since we > are not support it, so assume the minimum ecc requirement is 2 bits > in 512 bytes. > * For non-ONFI support nand flash, also assume the minimum ecc > requirement is 2 bits in 512 bytes. > >2. if CONFIG_SYS_NAND_ONFI_DETECTION is not defined, just use CONFIG_PMECC_CAP > and CONFIG_PMECC_SECTOR_SIZE. > >Signed-off-by: Josh Wu >Acked-by: Scott Wood >--- >resend: > use braces around muti-line if/loop body. > >v2 --> v3: > use dev_err/info(host->dev) instead of dev_err/info(NULL). > use MTDDEBUG() instead of pr_debug(). > >v1 --> v2: > use dev_err/info to replace printk. > fix typo mistake, that should use <= instead of use <. > > drivers/mtd/nand/atmel_nand.c | 130 ++++++++++++++++++++++++++++++++++++++++- > 1 file changed, 128 insertions(+), 2 deletions(-) applied to u-boot-atmel/master, thanks! Best regards, Andreas Bie?mann