]> git.baikalelectronics.ru Git - uboot.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)
commita7f79ad34cb42fd81f3da4fc23ebbfcc99a0f0fa
tree73efc9966be76585343913bfdb14c428885d121d
parent4719f8948ff1d46f6d6b559edbd16bb67b3bb3e6
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