[U-Boot] [PATCH v7 3/5] mtd: nand: omap: optimize chip->ecc.calculate() for H/W ECC schemes

2013-09-30 Thread Pekon Gupta
chip->ecc.calculate() is used for calculating and fetching of ECC syndrome by processing the data passed during Read/Write accesses. All H/W based ECC schemes use GPMC controller to calculate ECC syndrome. But each BCHx_ECC scheme has its own implemetation of post-processing and fetching ECC syndr

Re: [U-Boot] [PATCH v7 3/5] mtd: nand: omap: optimize chip->ecc.calculate() for H/W ECC schemes

2013-10-08 Thread Scott Wood
On Mon, 2013-09-30 at 19:43 +0530, Pekon Gupta wrote: > + /* ECC scheme specific syndrome customizations */ > + switch (bch->ecc_scheme) { > + case OMAP_ECC_HAM1_CODE_HW: > + break; > + case OMAP_ECC_BCH8_CODE_HW_DETECTION_SW: > +#ifdef CONFIG_BCH > + for (i