From: Rodolfo Giometti Date: Mon, 13 Jan 2014 14:35:38 +0000 (+0100) Subject: mtd: nand: pxa3xx: Add support for 2048 bytes page size devices X-Git-Tag: v3.14-rc1~65^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3db227b64841383b0e3c00d02e7c84d363494281;p=pandora-kernel.git mtd: nand: pxa3xx: Add support for 2048 bytes page size devices This commit adds support for devices with 2048B page sizes and 4-bit ECC strength requirements. This is achieved by enabling the BCH ECC engine, which provides a higher strength: 16-bit over 2048 bytes. Additionally, add a proper ECC layout to model the controller's view of the device (where 'U' means unused and 'B' is the bad block marker): ---------------------------------------------------- | 2048B data | B | B | 30B spare | 30B ECC | U | U | ---------------------------------------------------- Signed-off-by: Rodolfo Giometti [Brian: updated with Ezequiel's patch description] Acked-by: Ezequiel Garcia Signed-off-by: Brian Norris --- Reading git-diff-tree failed