diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2017-04-20 14:14:10 -0700 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2017-06-05 16:29:24 -0700 |
commit | 1fcfe88d75dc9f8b92726afead68d43544d3e7d6 (patch) | |
tree | c5307aa4e05dece0c74632456aad902c55b7a554 /board | |
parent | 7beb109423728c5ddab88852584c39b79b4f501e (diff) |
mtd: nand: mxs_nand: fix ECC strength calculation for old geometry
The old geometry used to round down the ECC strength. This allows to
compile a U-Boot which has the same ECC format used in current Linux
kernels by adding this line to the board configuration header file:
#define CONFIG_NAND_MXS_BCH_LEGACY_GEO
Note that this leads to 14 bit ECC per 512 byte block, which requires
2149 bytes overall. The SoC's boot ROM is only able to handle pages
up to 2112 bytes, hence this format cannot be used for the boot/flash
configuration block (BCB/FCB).
Note that upstream Linux can also calculate ECC using JEDEC/ONFI
NAND chip parameters by using the fsl,use-minimum-ecc device tree
property.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Brandon Shibley <brandon.shibley@toradex.com>
Diffstat (limited to 'board')
0 files changed, 0 insertions, 0 deletions