]> 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)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 10:19:13 +0000 (12:19 +0200)
commitb215722ff28b793bf13f1dd6de1b977a64ab9f92
tree32c306860869a344ab0c68489058ece408ac8f32
parent8ef8c06ea90b2b437d37376daedb1f45e0d53e80
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