mtd: gpmi: rewrite the gpmi_ecc_write_oob() to support the jffs2
authorHuang Shijie <b32955@freescale.com>
Wed, 25 Sep 2013 06:58:15 +0000 (14:58 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Sun, 27 Oct 2013 23:27:06 +0000 (16:27 -0700)
commit7a2b89acf8edbff462fa6e1fc6100c5dc85364ed
tree650dd1538d24932cab3b9dd1e386f58521bf9088
parent3723e93c6499d74041c9768aeb921b36490b9585
mtd: gpmi: rewrite the gpmi_ecc_write_oob() to support the jffs2

When we use the ECC info which is get from the nand chip's datasheet,
we may have some freed oob area now.

This patch rewrites the gpmi_ecc_write_oob() to implement the ecc.write_oob().
We also update the comment for gpmi_hw_ecclayout.

Yes! We can support the JFFS2 for the SLC nand now.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/gpmi-nand/gpmi-nand.c