public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [U-boot] [Patch v2 0/3] keystone: nand: add additional nand ecclayout
@ 2014-06-20 23:28 Ivan Khoronzhuk
  2014-06-20 23:28 ` [U-Boot] [U-boot] [Patch v2 1/3] mtd: nand: davinci: allow to change ecclayout by ecclayout command Ivan Khoronzhuk
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Ivan Khoronzhuk @ 2014-06-20 23:28 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-06-25 17:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-20 23:28 [U-Boot] [U-boot] [Patch v2 0/3] keystone: nand: add additional nand ecclayout Ivan Khoronzhuk
2014-06-20 23:28 ` [U-Boot] [U-boot] [Patch v2 1/3] mtd: nand: davinci: allow to change ecclayout by ecclayout command Ivan Khoronzhuk
2014-06-20 23:28 ` [U-Boot] [U-boot] [Patch v2 2/3] common: cmd_nand: add nand " Ivan Khoronzhuk
2014-06-20 23:28 ` [U-Boot] [U-boot] [Patch v2 3/3] k2hk: change default nand ecc layout Ivan Khoronzhuk
2014-06-20 23:40   ` Scott Wood
2014-06-23 15:26     ` Ivan Khoronzhuk
2014-06-24 23:25       ` Scott Wood
2014-06-25 15:42         ` Ivan Khoronzhuk
2014-06-25 17:15           ` Scott Wood
2014-06-25 17:37             ` Ivan Khoronzhuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox