]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: pxa3xx: Add support for 2048 bytes page size devices
authorRodolfo Giometti <giometti@linux.it>
Mon, 13 Jan 2014 14:35:38 +0000 (15:35 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 20 Jan 2014 19:20:47 +0000 (11:20 -0800)
commitc469c639f04960585db2ec6ca0d66c4abe435e33
treeb1f4cb327da0a1c109b545ce606958fa19f305e1
parent811aa90c0767c5960c5f615e8701040fe6aa7d38
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>
drivers/mtd/nand/pxa3xx_nand.c