/* Don't use these speedup functions in NAND boot image, since the image has to fit into 4kByte.  */
static void ndfc_write_buf(struct mtd_info *mtdinfo, const uint8_t *buf, int len)
/* Don't use these speedup functions in NAND boot image, since the image has to fit into 4kByte.  */
static void ndfc_write_buf(struct mtd_info *mtdinfo, const 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)
		out_be32((u32 *)(base + NDFC_DATA), *p++);
}