/* onenand_sync_read_bufferram -  Read the bufferram area with Sync. Burst mode  */
static int onenand_sync_read_bufferram(struct mtd_info *mtd, loff_t addr, int area, unsigned char *buffer, int offset, size_t count)
/* onenand_sync_read_bufferram -  Read the bufferram area with Sync. Burst mode  */
static int onenand_sync_read_bufferram(struct mtd_info *mtd, loff_t addr, int area, unsigned char *buffer, int offset, size_t count)
{
	struct onenand_chip *this = mtd->priv;
	void __iomem *bufferram;
	bufferram = this->base + area;
	bufferram += onenand_bufferram_offset(mtd, area);
	this->mmcontrol(mtd, ONENAND_SYS_CFG1_SYNC_READ);
	memcpy_16(buffer, bufferram + offset, count);
	this->mmcontrol(mtd, 0);
	return 0;
}