]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Mon, 12 Dec 2011 21:03:55 +0000 (23:03 +0200)
commit1f53e295c6ac076693391ffe6a22cc58b8a533dc
tree86fbf7025303de0568d48b5198c80e7a748e877c
parentaf64b37f63189cef7575fb3f8e670df767c3e15b
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>
drivers/mtd/nand/fsl_elbc_nand.c