mtd: nand: sunxi: implement ->read_oob()/->write_oob()
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 2 Sep 2015 13:05:52 +0000 (15:05 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:39 +0000 (22:05 +0200)
commit1c1bdd6f866e08b2a34318ce089b678200e8de85
treebf0680c61b0aaa69f5aa296be3fd7f4f4caa886d
parent9d02fc2a5129449581c3108c260e96377cf35f7e
mtd: nand: sunxi: implement ->read_oob()/->write_oob()

Allwinner's ECC engine is capable of protecting a few bytes of the OOB
area. Implement specific OOB functions to benefit from this capability.

Also, when in raw mode, the randomizer is disabled, which means you'll
only be able to retrieve randomized data, which is not really useful
for most applications.

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