mtd: nand: sunxi: add randomizer support
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Wed, 2 Dec 2015 11:01:07 +0000 (12:01 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Sat, 23 Jan 2016 00:36:55 +0000 (16:36 -0800)
commit4be4e03efc7f45ec002e8eddc83c22f80fed392c
tree642b563e4b6b3cf9ae83023bd4792a71e7239fb5
parent8ebc5637154dc58378c85ea7d0047fbc72cfc2d7
mtd: nand: sunxi: add randomizer support

Add support for the randomizer engine available in Allwinner's NFC IP.

Randomization is useful to support modern NAND chips which are sensitive to
repeated patterns. On such NANDs you might experience an unexpectedly high
number of bitflips when you repeat the same pattern all over a given NAND
block.
Randomizing input data mitigate this problem by avoiding such repeated
patterns.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/sunxi_nand.c