mtd: nand: ifc: update bufnum mask for ver >= 2.0.0
authorJagdish Gediya <jagdish.gediya@nxp.com>
Thu, 23 Nov 2017 11:34:31 +0000 (17:04 +0530)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 30 Nov 2017 21:32:49 +0000 (22:32 +0100)
commitbccb06c353af3764ca86d9da47652458e6c2eb41
tree3c2044bdfef77d5f23937699cd28fa50e5ec92ba
parentd822401d1c6898a4a4ee03977b78b8cec402e88a
mtd: nand: ifc: update bufnum mask for ver >= 2.0.0

Bufnum mask is used to calculate page position in the internal SRAM.

As IFC version 2.0.0 has 16KB of internal SRAM as compared to older
versions which had 8KB. Hence bufnum mask needs to be updated.

Signed-off-by: Jagdish Gediya <jagdish.gediya@nxp.com>
Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/fsl_ifc_nand.c