summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nand_base.c
diff options
context:
space:
mode:
authorRodolfo Giometti2014-01-13 15:35:38 +0100
committerBrian Norris2014-01-20 20:20:47 +0100
commit3db227b64841383b0e3c00d02e7c84d363494281 (patch)
treeb1f4cb327da0a1c109b545ce606958fa19f305e1 /drivers/mtd/nand/nand_base.c
parentmtd: m25p80: Use OPCODE_QUAD_READ_4B for 4-byte addressing (diff)
downloadkernel-qcow2-linux-3db227b64841383b0e3c00d02e7c84d363494281.tar.gz
kernel-qcow2-linux-3db227b64841383b0e3c00d02e7c84d363494281.tar.xz
kernel-qcow2-linux-3db227b64841383b0e3c00d02e7c84d363494281.zip
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 <giometti@linux.it> [Brian: updated with Ezequiel's patch description] Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/nand_base.c')
0 files changed, 0 insertions, 0 deletions