nand: mxs: Fix for calculating ecc strength on some types of NAND flash
Was tested on NAND with {writesize=4096, oobsize=224} and
{writesize=2048, oobsize=64}.

This patch will not break any NAND that was working
before. Implemented calculation way may be used for other NAND chips
with writesize == 2048 but oobsize != 64.

Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com>
Signed-off-by: Grigory Milev <g.milev@sam-solutions.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent c156800 commit 3676454f5cb571fe1370d3d8f9b67704c08cb9b3
@Dmitry Lavnikevich Dmitry Lavnikevich authored on 10 Mar 2014
Sascha Hauer committed on 12 Mar 2014
Showing 1 changed file
View
drivers/mtd/nand/nand_mxs.c