]> git.dujemihanovic.xyz Git - u-boot.git/commit
MTD: nand: mxs_nand: Allow driver to auto setup ECC in SPL
authorAdam Ford <aford173@gmail.com>
Thu, 17 Jan 2019 13:16:39 +0000 (07:16 -0600)
committerStefano Babic <sbabic@denx.de>
Fri, 15 Feb 2019 11:42:13 +0000 (12:42 +0100)
commit04568bd0b6d673a325eed76bd857a9cbd0c556bc
tree01d1d274eb5238a20d6944825bde9689b6680283
parent8f1a5ac797baac5b40f93eac80a7810f0a771ecf
MTD: nand: mxs_nand: Allow driver to auto setup ECC in SPL

The initialization of the NAND in SPL hard-coded ecc.bytes,
ecc.size, and ecc.strength which may work for some NAND parts,
but it not appropriate for others.  With the pending patch
"mxs_nand: Fix BCH read timeout error on boards requiring ECC"
the driver can auto configure the ECC when these entries are
blank.  This patch has been tested in NAND flash with oob 64
and oob 128.

Signed-off-by: Adam Ford <aford173@gmail.com>
Tested-by: Jörg Krause <joerg.krause@embedded.rocks>
Acked-by: Tim Harvey <tharvey@gateworks.com>
Tested-by: Tim Harvey <tharvey@gateworks.com>
drivers/mtd/nand/raw/mxs_nand.c