mtd: atmel_nand: Support 32-bit ECC strength
authorRomain Izard <romain.izard.pro@gmail.com>
Wed, 10 Feb 2016 09:56:26 +0000 (10:56 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 12 Feb 2016 18:27:48 +0000 (10:27 -0800)
commit94248462f066ec19b9c184ff66300e6e71977609
treeb6be548a1606bbb705625afa6733cb695e318dcb
parent5575075612cadd504dd8c8e1b8c66fa5d48b7042
mtd: atmel_nand: Support 32-bit ECC strength

As the SAMA5D2 controller supports the 32-bit ECC strength, accept it
as a valid setting when required by the device tree or the NAND
parameter page.

Then configure the controller to use this new setting.

For the binding:
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Tested-by: Wenyou Yang <wenyou.yang@atmel.com>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Documentation/devicetree/bindings/mtd/atmel-nand.txt
drivers/mtd/nand/atmel_nand.c
drivers/mtd/nand/atmel_nand_ecc.h