/* Read two bytes from the IFC hardware buffer read function for 16-bit buswith  */
static uint8_t fsl_ifc_read_byte16(struct mtd_info *mtd)
/* Read two bytes from the IFC hardware buffer read function for 16-bit buswith  */
static uint8_t fsl_ifc_read_byte16(struct mtd_info *mtd)
{
	struct nand_chip *chip = mtd_to_nand(mtd);
	struct fsl_ifc_mtd *priv = nand_get_controller_data(chip);
	struct fsl_ifc_ctrl *ctrl = priv->ctrl;
	uint16_t data;
	if (ctrl->index < ctrl->read_bytes) {
		data = ifc_in16(ctrl->addr + ctrl->index);
		ctrl->index += 2;
		return (uint8_t)data;
	}
	printf("%s beyond end of buffer\n", __func__);
	return ERR_BYTE;
}