diff options
author | Alexandre Coffignal <acoffignal@geral.com> | 2015-01-08 17:14:42 +0100 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-01-19 09:10:52 +0100 |
commit | ca6dc4f81ce5a0d514cdeafd1823c92305368809 (patch) | |
tree | fa20924d22f668f88c36a03bd2d811fc274929c1 | |
parent | 5d6050fdb8b0aaf3d3c43b3cad68d6b8f5037f9a (diff) | |
download | u-boot-imx-ca6dc4f81ce5a0d514cdeafd1823c92305368809.zip u-boot-imx-ca6dc4f81ce5a0d514cdeafd1823c92305368809.tar.gz u-boot-imx-ca6dc4f81ce5a0d514cdeafd1823c92305368809.tar.bz2 |
mxsboot : Support of 224-bytes OOB area length
Add support for the NAND Flash chip with page size of 4096+224-bytes OOB area length
For example Micron MT29F4G08 NAND flash device defines a OOB area which is
224 bytes long (oobsize).
Signed-off-by: Alexandre Coffignal <acoffignal@geral.com>
-rw-r--r-- | tools/mxsboot.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/mxsboot.c b/tools/mxsboot.c index 90b2173..6d48cfb 100644 --- a/tools/mxsboot.c +++ b/tools/mxsboot.c @@ -142,6 +142,9 @@ static inline uint32_t mx28_nand_get_ecc_strength(uint32_t page_data_size, if (page_oob_size == 218) return 16; + + if (page_oob_size == 224) + return 16; } return 0; @@ -269,6 +272,9 @@ static struct mx28_nand_fcb *mx28_nand_get_fcb(uint32_t size) } else if (nand_oobsize == 218) { fcb->ecc_block_n_ecc_type = 8; fcb->ecc_block_0_ecc_type = 8; + } else if (nand_oobsize == 224) { + fcb->ecc_block_n_ecc_type = 8; + fcb->ecc_block_0_ecc_type = 8; } } |