Re: [PATCH v11 2/5] mtd: nand: vf610_nfc: add hardware BCH-ECC support

2015-09-01 Thread Stefan Agner
On 2015-08-27 17:34, Stefan Agner wrote: > +static inline int vf610_nfc_correct_data(struct mtd_info *mtd, uint8_t *dat, > + uint8_t *oob, int page) > +{ > + struct vf610_nfc *nfc = mtd_to_nfc(mtd); > + u32 ecc_status_off = NFC_MAIN_AREA(0) +

Re: [PATCH v11 2/5] mtd: nand: vf610_nfc: add hardware BCH-ECC support

2015-09-01 Thread Stefan Agner
On 2015-08-27 17:34, Stefan Agner wrote: > +static inline int vf610_nfc_correct_data(struct mtd_info *mtd, uint8_t *dat, > + uint8_t *oob, int page) > +{ > + struct vf610_nfc *nfc = mtd_to_nfc(mtd); > + u32 ecc_status_off = NFC_MAIN_AREA(0) +

[PATCH v11 2/5] mtd: nand: vf610_nfc: add hardware BCH-ECC support

2015-08-27 Thread Stefan Agner
This adds hardware ECC support using the BCH encoder in the NFC IP. The ECC encoder supports up to 32-bit correction by using 60 error correction bytes. There is no sub-page ECC step, ECC is calculated always accross the whole page (up to 2k pages). Limitations: - HW ECC: Only 2K page with 64+

[PATCH v11 2/5] mtd: nand: vf610_nfc: add hardware BCH-ECC support

2015-08-27 Thread Stefan Agner
This adds hardware ECC support using the BCH encoder in the NFC IP. The ECC encoder supports up to 32-bit correction by using 60 error correction bytes. There is no sub-page ECC step, ECC is calculated always accross the whole page (up to 2k pages). Limitations: - HW ECC: Only 2K page with 64+