* Writing a subpage separately is not supported, because
* the controller only does ECC on full-page accesses.
*/
- nand->options = NAND_NO_SUBPAGE_WRITE;
nand->ecc.size = 512;
nand->ecc.bytes = 7;
if (ret)
return ret;
+ if (mtd->writesize == 2048)
+ nand->options |= NAND_NO_SUBPAGE_WRITE;
+
if (nand->ecc.mode == NAND_ECC_HW) {
ret = ar934x_nfc_setup_hwecc(nfc);
if (ret)