• Pekon Gupta's avatar
    mtd: nand: omap: ecc.calculate: merge omap3_calculate_ecc_bch8 in omap_calculate_ecc_bch · 7bcd1dca
    Pekon Gupta authored
    merge omap3_calculate_ecc_bch8() into omap_calculate_ecc_bch() so that
    common callback can be used for both OMAP_ECC_BCH8_CODE_HW and
    OMAP_ECC_BCH8_CODE_HW_DETECTION_SW
    +---------------------+-------------------------------------------------------+
    |ecc-scheme           | nand_chip->calculate() after this patch               |
    +---------------------+-------------------------------------------------------+
    |HAM1_ECC             | omap_calculate_ecc()                                  |
    +---------------------+-------------------------------------------------------+
    |BCH4_HW_DETECTION_SW | omap_calculate_ecc_bch()                              |
    |BCH4_HW              | omap_calculate_ecc_bch()                              |
    |BCH8_HW_DETECTION_SW | omap3_calculate_ecc_bch8() -> omap_calculate_ecc_bch()|
    |BCH8_HW              | omap_calculate_ecc_bch()                              |
    +---------------------+-------------------------------------------------------+
    Tested-by: default avatarStefan Roese <sr@denx.de>
    Signed-off-by: default avatarPekon Gupta <pekon@ti.com>
    Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
    7bcd1dca
omap2.c 55.3 KB