atmel_nand: Add 32 bit ecc support for sama5d2 chip
authorJosh Wu <josh.wu@atmel.com>
Tue, 24 Nov 2015 08:34:01 +0000 (16:34 +0800)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Tue, 2 Feb 2016 10:49:11 +0000 (11:49 +0100)
commit258b21fc69c93172d8e4afaeff3a7303740ce7c6
treee911cb055ffa4b9797d7fbee230e19512d348395
parentfa651f5d53372dd7a40fd2bcf701694d359820ce
atmel_nand: Add 32 bit ecc support for sama5d2 chip

Also if minimum ecc requirment is bigger then what we support, then just
use our maxium pmecc support.
But it is not safe, so we'll output a warning about this.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Reviewed-by: Andreas Bießmann <andreas.devel@googlemail.com>
drivers/mtd/nand/atmel_nand.c