Rafał Miłecki b0fcd8ab7b mtd: nand: add new enum for storing ECC algorithm
Our nand_ecc_modes_t is already a bit abused by value NAND_ECC_SOFT_BCH.
This enum should store ECC mode only and putting algorithm details there
is a bad idea. It would result in too many values impossible to support
in a sane way.

To solve this problem let's add a new enum. We'll have to modify all
drivers to set it properly but once it's done it'll be possible to drop
NAND_ECC_SOFT_BCH. That will result in a cleaner design and more
possibilities like setting ECC algorithm for hardware ECC mode.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
2016-04-19 22:02:32 +02:00
..
2015-05-27 12:42:16 -07:00
2013-08-05 20:48:49 +01:00
2016-01-26 10:27:33 -08:00
2016-02-12 11:09:32 -08:00
2014-01-20 11:55:23 -08:00
2016-01-26 10:27:34 -08:00
2014-05-28 00:05:23 -07:00
2013-04-05 13:02:40 +01:00
2013-04-05 13:02:33 +01:00
2014-04-18 16:40:08 -07:00