diff options
author | pekon gupta <pekon@ti.com> | 2014-03-24 12:20:05 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-05-21 02:52:15 +0200 |
commit | 9748fff96484cfc8bb382ef1436823aefe065c9c (patch) | |
tree | d036ed4f1f6b0cd564fbf7276201d4e89e60413a /Documentation/devicetree/bindings/mtd/gpmc-nand.txt | |
parent | mtd: nand: omap: add support for BCH16_ECC - ELM driver updates (diff) | |
download | linux-9748fff96484cfc8bb382ef1436823aefe065c9c.tar.xz linux-9748fff96484cfc8bb382ef1436823aefe065c9c.zip |
mtd: nand: omap: add support for BCH16_ECC - NAND driver updates
This patch add support for BCH16 ecc-scheme in OMAP NAND driver, by extending
following functions:
- omap_enable_hwecc (nand_chip->ecc.hwctl): configure GPMC controller
- omap_calculate_ecc_bch (nand_chip->ecc.calculate): fetch ECC signature from GPMC controller
- omap_elm_correct_data (nand_chip->ecc.correct): detect and correct ECC errors using ELM
(a) BCH16 ecc-scheme can detect and correct 16 bit-flips per 512Bytes of data.
(b) BCH16 ecc-scheme generates 26-bytes of ECC syndrome / 512B.
Due to (b) this scheme can only be used with NAND devices which have enough
OOB to satisfy the relation: "OOBsize per page >= 26 * (page-size / 512)"
Signed-off-by: Pekon Gupta <pekon@ti.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/mtd/gpmc-nand.txt')
0 files changed, 0 insertions, 0 deletions