]> git.dujemihanovic.xyz Git - u-boot.git/commit
nand: Add torture feature
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
Fri, 16 Nov 2012 19:20:54 +0000 (20:20 +0100)
committerScott Wood <scottwood@freescale.com>
Mon, 26 Nov 2012 21:41:29 +0000 (15:41 -0600)
commit3287f6d3858faee768a7c47515bd21914ad591a2
tree389079aae420c3b0b05a64b7c7dc2fb557334744
parent8156f732ee49fc4d91aef1ce09fb6679b3a23c0c
nand: Add torture feature

This patch adds a NAND Flash torture feature, which is useful as a block stress
test to determine if a block is still good and reliable (or should be marked as
bad), e.g. after a write error.

This code is ported from mtd-utils' lib/libmtd.c.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Scott Wood <scottwood@freescale.com>
[scottwood@freescale.com: removed unnec. ifdef and unwrapped error strings]
Signed-off-by: Scott Wood <scottwood@freescale.com>
common/cmd_nand.c
doc/README.nand
drivers/mtd/nand/nand_util.c
include/nand.h