]> git.baikalelectronics.ru Git - uboot.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)
commit6644617f13b15752f91ee8595dbbcb70db04e5ab
tree0c75f061012bd82f9aeace81af571f41a41ac5b6
parent7bee927807508e904ed01ce8544f35b554efc274
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