]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sunxi_nand_spl: Use kernel driver algorithm for determining ecc_mode / _off
authorHans de Goede <hdegoede@redhat.com>
Sat, 15 Aug 2015 10:41:09 +0000 (12:41 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 31 Aug 2015 06:43:41 +0000 (08:43 +0200)
commit008ac1dfe0815476cca819c16e06616c12c303b7
tree28aa28cf4e37f8f361f755c0aced74769838d17f
parent2a43973f64bce7dba1a5aabd18f2268f062aa0ef
sunxi_nand_spl: Use kernel driver algorithm for determining ecc_mode / _off

Sync the code for figuring out the ecc_mode and ecc_offset with the linux
kernel v4.1. Keeping this in sync seems like a good idea in general, and
it fixes / adds support for ecc strengths of 56, 60 and 64 bits.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
drivers/mtd/nand/sunxi_nand_spl.c