mtd: nand: pxa3xx: Consolidate ECC initialization
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Wed, 18 Dec 2013 21:44:10 +0000 (18:44 -0300)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 3 Jan 2014 19:22:27 +0000 (11:22 -0800)
commit30b2afc8471ea06a6d18b9f6bc183dafb99de1f9
treee4ebd601b7044bae7f3e68b3d04a971b01aa626d
parent5cbbdc6a9f8830737e099aca12794eb907f96882
mtd: nand: pxa3xx: Consolidate ECC initialization

In order to avoid code duplication, let's consolidate the ECC setting
for all SoC variants. Such decision is based on page size and ECC
strength requirements.

Also, provide a default value for the case where such ECC information
is not provided (non-ONFI devices).

Tested-by: Arnaud Ebalard <arno@natisbad.org>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/pxa3xx_nand.c