]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: nand: mxs_nand: add support for specific ECC strength
authorStefan Agner <stefan.agner@toradex.com>
Fri, 22 Jun 2018 16:06:18 +0000 (18:06 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 27 Jun 2018 07:07:55 +0000 (09:07 +0200)
commit627544506f5709bb2d14f0db66661a27cd78ec0a
tree73efc9966be76585343913bfdb14c428885d121d
parentf75e83bfae2bcf36197e25b8b3d539b0652b83fa
mtd: nand: mxs_nand: add support for specific ECC strength

Add support for specified ECC strength/size using device tree
properties nand-ecc-strength/nand-ecc-step-size.

This aligns behavior with the mainline driver, such that:
- If fsl,use-minimal-ecc is requested it will use data from
  data sheet/ONFI. If this is not available the driver will fail.
- If nand-ecc-strength/nand-ecc-step-size are specified those
  value will be used.
- By default maximum possible ECC strength is used

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
drivers/mtd/nand/mxs_nand.c