[U-Boot] [U-boot] [Patch v2 0/3] keystone: nand: add additional nand ecclayout
Ivan Khoronzhuk
ivan.khoronzhuk at ti.com
Sat Jun 21 01:28:46 CEST 2014
For keystyone k2hk board the default nand layout is different
from davinci. So swich ecc layout at init in board file.
To do this the 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 git://git.denx.de/u-boot-ti.git master
v2..v1:
k2hk: change default nand ecc layout
- new patch
mtd: nand: davinci: allow to change ecclayout by ecclayout command
- aligned pattern.
- used ARRAY_SIZE instead of definition of size
- added some comments
- rename board_nand_ecclayout_get_layout() to shorter name
- don't change default ecc layout at init
common: cmd_nand: add nand ecclayout command
- impove format of ecc layout printing
- improve description of nand ecclayout command
- add description of CONFIG_CMD_NAND_ECCLAYOUT config
- move some code stuff to board_nand_ecclayout_set()
- don't wrap user-visible string
- remove #ifdef of function prototypes
Ivan Khoronzhuk (1):
k2hk: change default nand ecc layout
WingMan Kwok (2):
mtd: nand: davinci: allow to change ecclayout by ecclayout command
common: cmd_nand: add nand ecclayout command
arch/arm/include/asm/ti-common/davinci_nand.h | 4 ++
board/ti/k2hk_evm/board.c | 11 ++++
common/cmd_nand.c | 91 ++++++++++++++++++++++++++
doc/README.nand | 12 ++++
drivers/mtd/nand/davinci_nand.c | 94 +++++++++++++++++++++++++++
include/nand.h | 7 ++
6 files changed, 219 insertions(+)
--
1.8.3.2
More information about the U-Boot
mailing list