mtd: fsl_elbc_nand: set Nand flash page address to FBAR and FPAR correctly
authorLiu Shuo <b35362@freescale.com>
Fri, 9 Dec 2011 09:42:54 +0000 (17:42 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 9 Jan 2012 18:18:29 +0000 (18:18 +0000)
commit9ae84fe8c18cabc348b9c7cd1e98419cd0cbf481
tree28805967c5d4b64c30d3c8de01d1b067bba55ac1
parent556f063580db2953a7e53cd46b47724246320f60
mtd: fsl_elbc_nand: set Nand flash page address to FBAR and FPAR correctly

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 address as the
FPAR component, rather than considering the actual block size.

Signed-off-by: Liu Shuo <b35362@freescale.com>
Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
Signed-off-by: Tang Yuantian <b29983@freescale.com>
Signed-off-by: Li Yang <leoli@freescale.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/fsl_elbc_nand.c