[U-Boot] [PATCH v4 1/5] mtd: nand: omap: enable BCH ECC scheme using ELM for generic platform

Scott Wood scottwood at freescale.com
Mon Sep 16 23:16:50 CEST 2013


On Mon, 2013-09-16 at 11:19 +0000, Gupta, Pekon wrote:
> Instead, should I make it more generic for all SoC ? like
> CONFIG_SYS_NAND_ECCSCHEME can take in following strings defining
> ECC scheme used by NAND driver in SPL boot:
> "ham1" - 1 bit hamming code
> "bch4"  - 4-bit BCH ecc code
> "bch8"  - 8-bit BCH ecc code
> "bch16"  - 16-bit BCH ecc code

Most drivers would probably prefer symbolically-defined numbers rather
than strings.  Plus, there could be more subtle variations such as
layout differences.  Best to keep it OMAP-specific.

-Scott





More information about the U-Boot mailing list