diff options
Diffstat (limited to 'drivers/nand/nand_imx.c')
-rw-r--r-- | drivers/nand/nand_imx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/nand/nand_imx.c b/drivers/nand/nand_imx.c index 1a708e9527..edd7cdf39f 100644 --- a/drivers/nand/nand_imx.c +++ b/drivers/nand/nand_imx.c @@ -932,6 +932,7 @@ static int __init imxnd_probe(struct device_d *dev) if (pdata->width == 2) { this->options |= NAND_BUSWIDTH_16; this->ecc.layout = &nandv1_hw_eccoob_smallpage; + imx_nand_set_layout(0, 16); } if (pdata->flash_bbt) { @@ -947,6 +948,8 @@ static int __init imxnd_probe(struct device_d *dev) goto escan; } + imx_nand_set_layout(mtd->writesize, pdata->width == 2 ? 16 : 8); + if (mtd->writesize == 2048) { this->ecc.layout = oob_largepage; host->pagesize_2k = 1; |