/* socrates_nand_write_buf - write buffer to chip @mtd: MTD device structure @buf: data buffer @len: number of bytes to write  */
static void socrates_nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len)
/* socrates_nand_write_buf - write buffer to chip @mtd: MTD device structure @buf: data buffer @len: number of bytes to write  */
static void socrates_nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len)
{
	int i;
	struct nand_chip *this = mtd->priv;
	struct socrates_nand_host *host = this->priv;
	for (i = 0; i < len; i++) {
		out_be32(host->io_base, FPGA_NAND_ENABLE |
				FPGA_NAND_CMD_WRITE |
				(buf[i] << FPGA_NAND_DATA_SHIFT));
	}
}