Skip to content
Snippets Groups Projects
Commit ca6dc4f8 authored by Alexandre Coffignal's avatar Alexandre Coffignal Committed by Stefano Babic
Browse files

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: default avatarAlexandre Coffignal <acoffignal@geral.com>
parent 5d6050fd
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment