/* The upper layer software is responsible for re-configuring (if necessary) and restarting the QSPI device after the reset. */
void XQspiPs_Reset(XQspiPs *InstancePtr)
/* The upper layer software is responsible for re-configuring (if necessary) and restarting the QSPI device after the reset. */
void XQspiPs_Reset(XQspiPs *InstancePtr)
{
	u32 ConfigReg;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	XQspiPs_Abort(InstancePtr);
	ConfigReg = XQspiPs_ReadReg(InstancePtr->Config.BaseAddress,
			 XQSPIPS_CR_OFFSET);
	ConfigReg |= XQSPIPS_CR_RESET_MASK_SET;
	ConfigReg &= ~XQSPIPS_CR_RESET_MASK_CLR;
	XQspiPs_WriteReg(InstancePtr->Config.BaseAddress, XQSPIPS_CR_OFFSET,
			  ConfigReg);
}