Skip to content
Snippets Groups Projects
Commit f9cfe17b authored by Marek Vasut's avatar Marek Vasut Committed by Stefano Babic
Browse files

mtd: nand: mxs: Add ECC geometry for 2048b/112b NAND


Add ECC geometry for NAND which has 2048b pagesize and 112b OOB
size. This is for example Macronix MX30LF2G28AB chip.

Signed-off-by: default avatarMarek Vasut <marex@denx.de>
parent 9c56936e
No related branches found
No related tags found
No related merge requests found
...@@ -146,8 +146,13 @@ static uint32_t mxs_nand_aux_status_offset(void) ...@@ -146,8 +146,13 @@ static uint32_t mxs_nand_aux_status_offset(void)
static inline uint32_t mxs_nand_get_ecc_strength(uint32_t page_data_size, static inline uint32_t mxs_nand_get_ecc_strength(uint32_t page_data_size,
uint32_t page_oob_size) uint32_t page_oob_size)
{ {
if (page_data_size == 2048) if (page_data_size == 2048) {
return 8; if (page_oob_size == 64)
return 8;
if (page_oob_size == 112)
return 14;
}
if (page_data_size == 4096) { if (page_data_size == 4096) {
if (page_oob_size == 128) if (page_oob_size == 128)
......
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