AnsweredAssumed Answered

Why does Vybrid NAND driver skip ECC check for 1st page in every erase block?

Question asked by Dmitry Konyshev on Sep 17, 2014
Latest reply on Sep 25, 2014 by Edward Karpicz

Hi All,


I noticed that the U-Boot and Linux drivers for Vybrid disable hardware ECC calculation for the 1st page of an erase block. Here is a related excerpt from drivers/mtd/nand/fsl_nfc.c:


        switch (command) {

        case NAND_CMD_PAGEPROG:

                if (!(prv->page%0x40) && !prv->pg_boot)

                        nfc_set_field(mtd, NFC_FLASH_CONFIG,


                                CONFIG_ECC_MODE_SHIFT, ECC_BYPASS);


Can someone please explain the purpose of this?