]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd_nand: add nand write.trimffs command
authorBen Gardiner <bengardiner@nanometrics.ca>
Tue, 14 Jun 2011 20:35:07 +0000 (16:35 -0400)
committerScott Wood <scottwood@freescale.com>
Fri, 1 Jul 2011 20:56:51 +0000 (15:56 -0500)
commitc9494866df835bcee68e17339aec1090faa704da
treea1c782909c323bf839403dc3c0abb124567a99e2
parent169d54d8b33b4d06d6f215e2b312a0b18f7909dc
cmd_nand: add nand write.trimffs command

Add another nand write. variant, trimffs. This command will request of
nand_write_skip_bad() that all trailing all-0xff pages will be
dropped from eraseblocks when they are written to flash as-per the
reccommended behaviour of the UBI FAQ [1].

The function that implements this timming is the drop_ffs() function
by Artem Bityutskiy, ported from the mtd-utils tree.

[1] http://www.linux-mtd.infradead.org/doc/ubi.html#L_flasher_algo

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
CC: Artem Bityutskiy <dedekind1@gmail.com>
CC: Detlev Zundel <dzu@denx.de>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
common/cmd_nand.c
doc/README.nand