/* This function forces the software reset of the complete HWICAP device. All the registers will return to the default value and the FIFO is also flushed as a part of this software reset.  */
void fifo_icap_reset(struct hwicap_drvdata *drvdata)
/* This function forces the software reset of the complete HWICAP device. All the registers will return to the default value and the FIFO is also flushed as a part of this software reset.  */
void fifo_icap_reset(struct hwicap_drvdata *drvdata)
{
	u32 reg_data;
	reg_data = in_be32(drvdata->base_address + XHI_CR_OFFSET);
	out_be32(drvdata->base_address + XHI_CR_OFFSET,
				reg_data | XHI_CR_SW_RESET_MASK);
	out_be32(drvdata->base_address + XHI_CR_OFFSET,
				reg_data & (~XHI_CR_SW_RESET_MASK));
}