Skip to content
Snippets Groups Projects
  • pekon gupta's avatar
    71a7f956
    mtd: nand: omap: optimize chip->ecc.calculate() for H/W ECC schemes · 71a7f956
    pekon gupta authored
    
    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 syndrome from GPMC controller.
    
    This patch updates OMAP_ECC_BCH8_CODE_HW ECC scheme in following way:
    - merges multiple chip->calculate API for different ECC schemes
      omap_calculate_ecc() + omap_calculate_ecc_bch() + omap_calculate_ecc_bch_sw()
    				==> omap_calculate_ecc()
    - removes omap_ecc_disable() and instead uses it as inline.
    
    Signed-off-by: default avatarPekon Gupta <pekon@ti.com>
    71a7f956
    History
    mtd: nand: omap: optimize chip->ecc.calculate() for H/W ECC schemes
    pekon gupta authored
    
    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 syndrome from GPMC controller.
    
    This patch updates OMAP_ECC_BCH8_CODE_HW ECC scheme in following way:
    - merges multiple chip->calculate API for different ECC schemes
      omap_calculate_ecc() + omap_calculate_ecc_bch() + omap_calculate_ecc_bch_sw()
    				==> omap_calculate_ecc()
    - removes omap_ecc_disable() and instead uses it as inline.
    
    Signed-off-by: default avatarPekon Gupta <pekon@ti.com>