Commit 822cf89e authored by Sergei Poselenov's avatar Sergei Poselenov

RT #96360. Disable ECC on the first page of the erase block for

compatibility with the Linux driver.
parent f9154b28
......@@ -333,6 +333,16 @@ fsl_nfc_command(struct mtd_info *mtd, unsigned command,
get_id = 0;
get_status = 0;
nfc_set_field(mtd, NFC_FLASH_CONFIG,
CONFIG_ECC_MODE_MASK,
CONFIG_ECC_MODE_SHIFT, ECC_45_BYTE);
if (!(page % 0x40)) {
nfc_set_field(mtd, NFC_FLASH_CONFIG,
CONFIG_ECC_MODE_MASK,
CONFIG_ECC_MODE_SHIFT, ECC_BYPASS);
}
switch (command) {
case NAND_CMD_PAGEPROG:
fsl_nfc_send_cmd(mtd,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment