MLK-22444-2: nand: mxs_nand: add API for switching different BCH layouts
authorIgor Opaniuk <igor.opaniuk@toradex.com>
Mon, 16 Sep 2019 10:41:18 +0000 (13:41 +0300)
committerYe Li <ye.li@nxp.com>
Sun, 29 Sep 2019 08:33:24 +0000 (01:33 -0700)
commit77ac4a3e3f166383e8d97c979e25c8da6d85af3e
tree9ad6431f56f2c6e678ac8376fea615284df1be30
parentf79eb544a2e5e516eb780fb0b0d0e11e66b71a54
MLK-22444-2: nand: mxs_nand: add API for switching different BCH layouts

On i.MX7 in a sake of reducing the disturbances caused by a neighboring
cells in the FCB page in the NAND chip, a randomizer is enabled when
reading the FCB page by ROM bootloader.

Add API for setting BCH to specific layout (and restoring it back) used by
ROM bootloader to be able to burn it in a proper way to NAND using
nandbcb command.

Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Signed-off-by: Anti Sullin <anti.sullin@artecdesign.ee>
Signed-off-by: Alice Guo <alice.guo@nxp.com>
(cherry picked from commit eaba02830252ed044e319571a7f3ebed412ae93b)
drivers/mtd/nand/raw/mxs_nand.c
include/mxs_nand.h