[PATCH 2/2] mtd/nand_imx: add support for page size of 4k

Baruch Siach baruch at tkos.co.il
Thu Mar 17 09:23:17 EDT 2011


Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
 drivers/mtd/nand/nand_imx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/nand_imx.c b/drivers/mtd/nand/nand_imx.c
index 48841dc..aff636a 100644
--- a/drivers/mtd/nand/nand_imx.c
+++ b/drivers/mtd/nand/nand_imx.c
@@ -1013,7 +1013,7 @@ static int __init imxnd_probe(struct device_d *dev)
 
 	imx_nand_set_layout(mtd->writesize, pdata->width == 2 ? 16 : 8);
 
-	if (mtd->writesize == 2048) {
+	if (mtd->writesize >= 2048) {
 		this->ecc.layout = oob_largepage;
 		host->pagesize_2k = 1;
 		if (nfc_is_v21()) {
-- 
1.7.2.3




More information about the barebox mailing list