mtd: atmel_nand: according to pmecc version to perform 0xff page correction
authorWu, Josh <Josh.wu@atmel.com>
Fri, 16 Jan 2015 03:54:46 +0000 (11:54 +0800)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Sat, 7 Feb 2015 22:42:57 +0000 (23:42 +0100)
commit0e48dc5e416f031c8eb05143f2dfab3111ec3b29
treec0a49ad6b3d6c9938fdde7dc8e1472c26d570f04
parentc6941e120386b06b21566b560cd51882b0d1a51a
mtd: atmel_nand: according to pmecc version to perform 0xff page correction

As the PMECC hardware has different version. In SAMA5D4 chip, the PMECC ip
can generate 0xff pmecc ECC value for all 0xff sector.

According to this, add PMECC version check, if it's SAMA5D4 then we always
let PMECC hardware to correct it.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Bo Shen <voice.shen@atmel.com>
Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
drivers/mtd/nand/atmel_nand.c
drivers/mtd/nand/atmel_nand_ecc.h