return NULL;
}
-#define NOTALIGNED(x) ((x & (chip->subpagesize - 1)) != 0)
-
/**
* nand_do_write_ops - [Internal] NAND write with ECC
* @mtd: MTD device structure
*/
int nand_scan_tail(struct mtd_info *mtd)
{
+ uint32_t dev_width;
int i;
struct nand_chip *chip = mtd->priv;
/* Set the internal oob buffer location, just after the page data */
chip->oob_poi = chip->buffers->databuf + mtd->writesize;
+ dev_width = (chip->options & NAND_BUSWIDTH_16) >> 1;
+
/*
* If no default placement scheme is given, select an appropriate one
*/