/* NDFC allows 32bit read/write of data. So we can speed up the buffer functions. No further checking, as nand_base will always read/write page aligned.  */
static void ndfc_read_buf(struct mtd_info *mtdinfo, uint8_t *buf, int len)
/* NDFC allows 32bit read/write of data. So we can speed up the buffer functions. No further checking, as nand_base will always read/write page aligned.  */
static void ndfc_read_buf(struct mtd_info *mtdinfo, uint8_t *buf, int len)
{
	struct nand_chip *this = mtdinfo->priv;
	ulong base = (ulong) this->IO_ADDR_W & 0xffffff00;
	uint32_t *p = (uint32_t *) buf;
	for (;len > 0; len -= 4)
		*p++ = in_be32((u32 *)(base + NDFC_DATA));
}