[PATCH v3] mtd: atmel_nand: make PMECC lookup table and offset property optional
Brian Norris
computersforpeace at gmail.com
Wed Nov 5 14:44:47 PST 2014
On Sat, Oct 11, 2014 at 06:01:50PM +0800, Josh Wu wrote:
> From: Josh Wu <Josh.wu at atmel.com>
>
> If there is no PMECC lookup table stored in ROM, or lookup table offset is
> not specified, PMECC driver should build it in DDR by itself.
>
> That make the PMECC driver work for some board which doesn't has PMECC
> lookup table in ROM.
>
> The PMECC use the BCH algorithm, so based on the build_gf_tables()
> function in lib/bch.c, we can build the Galois Field lookup table.
>
> For more information can refer to section 5.4 of PMECC controller
> application note:
> http://www.atmel.com/images/doc11127.pdf
>
> Signed-off-by: Josh Wu <josh.wu at atmel.com>
> Cc: devicetree at vger.kernel.org
Applied to l2-mtd.git.
Brian
More information about the linux-mtd
mailing list