]> git.dujemihanovic.xyz Git - u-boot.git/commit
nand: mxs_nand: add API for switching different BCH layouts
authorIgor Opaniuk <igor.opaniuk@toradex.com>
Sun, 3 Nov 2019 15:49:43 +0000 (16:49 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 3 Nov 2019 20:49:19 +0000 (21:49 +0100)
commit9ab5f221a5e2b79ec98efa6b44f7e3d03c518bf8
tree0c75f061012bd82f9aeace81af571f41a41ac5b6
parent6e735248e3b62b60d98e58e75f62355286248b97
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>
Tested-by: Max Krummenacher <max.krummenacher@toradex.com>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
drivers/mtd/nand/raw/mxs_nand.c
include/mxs_nand.h