]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: davinci: set ECC algorithm explicitly for HW based ECC
authorAlexander Couzens <lynxis@fe80.eu>
Tue, 2 May 2017 09:47:36 +0000 (11:47 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 15 May 2017 10:00:46 +0000 (12:00 +0200)
commit19d8ccc42b148d75284a3809f1eb1eba13a81677
tree542d197b3b62436ab90b0015821f3573e53abdf5
parent0b2f93dc0099e3b8a739b8918eeb995e12520940
mtd: nand: davinci: set ECC algorithm explicitly for HW based ECC

If ECC strength is 4bits/512bytes the algorithm of the ECC engine is
BCH, otherwise (1bit/512bytes) Hamming is used.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/davinci_nand.c