diff options
author | Pekon Gupta <pekon@ti.com> | 2014-02-26 15:53:12 +0530 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-03-20 02:30:27 -0700 |
commit | f5dc06fb71ae10c4f205a08f5ef26fd90fc122fc (patch) | |
tree | 24547188b4066545021652471bcc695c8b1ecdb9 /scripts | |
parent | a4c7ca004d984306c33df6d89c76ccd232317c21 (diff) | |
download | op-kernel-dev-f5dc06fb71ae10c4f205a08f5ef26fd90fc122fc.zip op-kernel-dev-f5dc06fb71ae10c4f205a08f5ef26fd90fc122fc.tar.gz |
mtd: nand: omap: ecc.calculate: refactor omap_calculate_ecc_bch for BCHx_HW ecc-scheme
OMAP NAND driver supports multiple flavours of BCH4 and BCH8 ECC algorithms.
+------+------------------------------------+---------------+---------------+
| Algo | ECC scheme |ECC calculation|Error detection|
+------+------------------------------------+---------------+---------------+
| |OMAP_ECC_BCH4_CODE_HW_DETECTION_SW |H/W (GPMC) |S/W |
| BCH4 |OMAP_ECC_BCH4_CODE_HW |H/W (GPMC) |H/W (ELM) |
+------+------------------------------------+---------------+---------------+
| |OMAP_ECC_BCH8_CODE_HW_DETECTION_SW |H/W (GPMC) |S/W |
| BCH8 |OMAP_ECC_BCH8_CODE_HW |H/W (GPMC) |H/W (ELM) |
+------+------------------------------------+---------------+---------------+
This patch refactors omap_calculate_ecc_bch() so that
- separate out ecc-scheme specific code so that common-code can be reused
between different implementations of same ECC algorithm.
- new ecc-schemes can be added with ease in future.
Tested-by: Stefan Roese <sr@denx.de>
Signed-off-by: Pekon Gupta <pekon@ti.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions