Skip to content

Commit

Permalink
mtd: nand: davinci_nand, 4-bit ECC for smallpage
Browse files Browse the repository at this point in the history
Minimal support for the 4-bit ECC engine found on DM355, DM365,
DA830/OMAP-L137, and similar recent DaVinci-family chips.

This is limited to small-page flash for now; there are some page
layout issues for large page chips.  Note that most boards using
this engine (like the DM355 EVM) include 2GiB large page chips.

Sanity tested on DM355 EVM after swapping the socketed NAND for
a small-page one.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Brownell authored and David Woodhouse committed Jun 5, 2009
1 parent 533a014 commit 6a4123e
Show file tree
Hide file tree
Showing 2 changed files with 297 additions and 15 deletions.
8 changes: 6 additions & 2 deletions arch/arm/mach-davinci/include/mach/nand.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,14 @@ struct davinci_nand_pdata { /* platform_data */

/* none == NAND_ECC_NONE (strongly *not* advised!!)
* soft == NAND_ECC_SOFT
* 1-bit == NAND_ECC_HW
* 4-bit == NAND_ECC_HW_SYNDROME (not on all chips)
* else == NAND_ECC_HW, according to ecc_bits
*
* All DaVinci-family chips support 1-bit hardware ECC.
* Newer ones also support 4-bit ECC, but are awkward
* using it with large page chips.
*/
nand_ecc_modes_t ecc_mode;
u8 ecc_bits;

/* e.g. NAND_BUSWIDTH_16 or NAND_USE_FLASH_BBT */
unsigned options;
Expand Down
Loading

0 comments on commit 6a4123e

Please sign in to comment.