[U-Boot] mtd: nand: add new enum for storing ECC algorithm

Tom Rini trini at konsulko.com
Tue Jul 24 12:39:01 UTC 2018


On Tue, Jul 10, 2018 at 11:48:08AM +0200, Philippe Reynes wrote:

> From: Rafał Miłecki <zajec5 at gmail.com>
> 
> 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 at gmail.com>
> Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
> [Linux commit: b0fcd8ab7b3c89b5da7fff5224d06ed73e7a33cc]
> [Philippe Reynes: adapt code to u-boot]
> Signed-off-by: Philippe Reynes <philippe.reynes at softathome.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180724/58d138fe/attachment.sig>


More information about the U-Boot mailing list