commit | d0778b328bf2ac71afd251dc3332e8d3b2cc7958 | [log] [tgz] |
---|---|---|
author | Stefan Agner <stefan.agner@toradex.com> | Fri Jun 22 17:19:49 2018 +0200 |
committer | Stefano Babic <sbabic@denx.de> | Wed Jun 27 09:07:55 2018 +0200 |
tree | 4aa3288a245c124bf1a2c29e62914412aee01746 | |
parent | 95f376f1d03ec008d57c568d4ee715d2dbad5de4 [diff] |
mtd: nand: mxs_nand: use structure for BCH geometry Calculate BCH geometry at start and store the information in a structure. This avoids recalculation on every page access and allows to calculate ECC relevant information in one place. This patch does not change ECC layout or driver behavior in any way. The patch aligns the driver somewhat with the Linux GPMI NAND driver which drives the same IP. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>