/* 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 *mtd, 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 *mtd, uint8_t *buf, int len)
{
	struct ndfc_controller *ndfc = &ndfc_ctrl;
	uint32_t *p = (uint32_t *) buf;
	for(;len > 0; len -= 4)
		*p++ = in_be32(ndfc->ndfcbase + NDFC_DATA);
}