[PATCH 2/3] mtd/nand : set correct length to FBCR for a non-full-page write

2011-11-23 Thread b35362
From: Liu Shuo When we do a non-full-page write, the length be set to FBCR should not be 'elbc_fcm_ctrl->index', it should be 'elbc_fcm_ctrl->index - elbc_fcm_ctrl->column'. Signed-off-by: Liu Shuo Signed-off-by: Li Yang --- drivers/mtd/nand/fsl_elbc_nand.c |3 ++- 1 files changed, 2 inse

[PATCH 3/3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-11-23 Thread b35362
From: Liu Shuo Freescale FCM controller has a 2K size limitation of buffer RAM. In order to support the Nand flash chip whose page size is larger than 2K bytes, we read/write 2k data repeatedly by issuing FIR_OP_RB/FIR_OP_WB and save them to a large buffer. Signed-off-by: Liu Shuo Signed-off-by

[PATCH 1/3] mtd/nand : use elbc_fcm_ctrl->oob to set FPAR_MS bit of FPAR

2011-11-23 Thread b35362
From: Liu Shuo On both of large-page chip and small-page chip, we always should use 'elbc_fcm_ctrl->oob' to set the FPAR_LP_MS/FPAR_SP_MS bit of FPAR, don't use a overflowed 'column' to set it. Signed-off-by: Liu Shuo Signed-off-by: Li Yang --- drivers/mtd/nand/fsl_elbc_nand.c | 18

[PATCH 1/3] mtd/nand: fix coding style issue in drivers/mtd/nand/fsl_elbc.c

2011-11-15 Thread b35362
From: Liu Shuo fix whitespaces,tabs coding style issue and use #include instead of in drivers/mtd/nand/fsl_elbc.c. Signed-off-by: Liu Shuo Signed-off-by: Li Yang --- drivers/mtd/nand/fsl_elbc_nand.c | 194 +++--- 1 files changed, 97 insertions(+), 97 deleti

[PATCH 2/3] mtd/nand : set Nand flash page address to FBAR and FPAR correctly

2011-11-15 Thread b35362
From: Liu Shuo If we use the Nand flash chip whose number of pages in a block is greater than 64(for large page), we must treat the low bit of FBAR as being the high bit of the page address due to the limitation of FCM, it simply uses the low 6-bits (for large page) of the combined block/page add

[PATCH v3 3/3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-11-15 Thread b35362
From: Liu Shuo Freescale FCM controller has a 2K size limitation of buffer RAM. In order to support the Nand flash chip whose page size is larger than 2K bytes, we read/write 2k data repeatedly by issuing FIR_OP_RB/FIR_OP_WB and save them to a large buffer. Signed-off-by: Liu Shuo Signed-off-by

[PATCH 2/2] NAND Machine support for Integrated Flash Controller

2011-10-31 Thread b35362
From: Liu Shuo Integrated Flash Controller(IFC) can be used to hook NAND Flash chips using NAND Flash Machine available on it. Signed-off-by: Scott Wood Signed-off-by: Li Yang Signed-off-by: Liu Shuo --- drivers/mtd/nand/Kconfig| 10 + drivers/mtd/nand/Makefile |1 + driv

[PATCH v2] Integrated Flash Controller support

2011-10-31 Thread b35362
From: Liu Shuo Integrated Flash Controller supports various flashes like NOR, NAND and other devices using NOR, NAND and GPCM Machine available on it. IFC supports four chip selects. Signed-off-by: Dipen Dudhat Signed-off-by: Scott Wood Signed-off-by: Li Yang Signed-off-by: Liu Shuo --- arc

[PATCH] mtd/nand : set Nand flash page address to FBAR and FPAR correctly

2011-10-31 Thread b35362
From: Liu Shuo If we use the Nand flash chip whose number of pages in a block is greater than 64(for large page), we must treat the low bit of FBAR as being the high bit of the page address due to the limitation of FCM, it simply uses the low 6-bits (for large page) of the combined block/page add

[PATCH v3] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-08-17 Thread b35362
From: Liu Shuo Freescale FCM controller has a 2K size limitation of buffer RAM. In order to support the Nand flash chip whose page size is larger than 2K bytes, we divide a page into multi-2K pages for MTD layer driver. In that case, we force to set the page size to 2K bytes. We convert the page

[PATCH] mtd-utils: fix corrupt cleanmarker with flash_erase -j command

2011-08-02 Thread b35362
From: Liu Shuo Flash_erase -j should fill discrete freeoob areas with required bytes of JFFS2 cleanmarker in jffs2_check_nand_cleanmarker(). Not just fill the first freeoob area. Signed-off-by: Liu Shuo Signed-off-by: Li Yang --- flash_erase.c | 41 +++--

[PATCH v2] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-07-11 Thread b35362
From: Liu Shuo Freescale FCM controller has a 2K size limitation of buffer RAM. In order to support the Nand flash chip whose page size is larger than 2K bytes, we divide a page into multi-2K pages for MTD layer driver. In that case, we force to set the page size to 2K bytes. We convert the page

[PATCH 2/2] mtd/nand : workaround for Freescale FCM to support large-page Nand chip

2011-06-27 Thread b35362
From: Liu Shuo Freescale FCM controller has a 2K size limitation of buffer RAM. In order to support the Nand flash chip whose page size is larger than 2K bytes, we divide a page into multi-2K pages for MTD layer driver. In that case, we force to set the page size to 2K bytes. We convert the page

[PATCH 1/2] mtd/nand : don't free the global data fsl_lbc_ctrl_dev->nand in fsl_elbc_chip_remove()

2011-06-27 Thread b35362
From: Liu Shuo The global data fsl_lbc_ctrl_dev->nand don't have to be freed in fsl_elbc_chip_remove(). The right place to do that is in fsl_elbc_nand_remove() if elbc_fcm_ctrl->counter is zero. Signed-off-by: Liu Shuo --- drivers/mtd/nand/fsl_elbc_nand.c |1 - 1 files changed, 0 insertion