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 /scripts | |
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 'scripts')
-rw-r--r-- | scripts/config_whitelist.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index fc6fca8bb8f..51ee1f9eeb7 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -3307,6 +3307,7 @@ CONFIG_NAND_MPC5121_NFC CONFIG_NAND_MXC CONFIG_NAND_MXC_V1_1 CONFIG_NAND_MXS +CONFIG_NAND_MXS_BCH_LEGACY_GEO CONFIG_NAND_NDFC CONFIG_NAND_OMAP_ECCSCHEME CONFIG_NAND_OMAP_ELM |