summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorpekon gupta <pekon@ti.com>2014-03-24 11:20:05 (GMT)
committerBrian Norris <computersforpeace@gmail.com>2014-05-21 00:52:15 (GMT)
commit9748fff96484cfc8bb382ef1436823aefe065c9c (patch)
treed036ed4f1f6b0cd564fbf7276201d4e89e60413a /Documentation
parent2be589e4b28457f148640dc6addf6da24af64b7f (diff)
downloadlinux-9748fff96484cfc8bb382ef1436823aefe065c9c.tar.xz
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')
0 files changed, 0 insertions, 0 deletions