
This series adds a nand ecclayout command to davinci nand that allows the ecclayout of the current nand device to be changed during run time. This feature is useful when using u-boot to write something to nand flash that will be read by other applications, such as ROM bootloader, that expects a different ECC layout. In that case, change the current nand device ecclayout using the "nand ecclayout set" command before writing the data to nand flash.
Based on u-boot.git/master
WingMan Kwok (2): common: cmd_nand: add nand ecclayout command mtd: nand: davinci: allow to change ecclayout by ecclayout command
common/cmd_nand.c | 115 +++++++++++++++++++++++++++++++++++++++- drivers/mtd/nand/davinci_nand.c | 101 +++++++++++++++++++++++++++++++++++ include/nand.h | 10 ++++ 3 files changed, 225 insertions(+), 1 deletion(-)