lib/bsp/standalone/src/microblaze/xil_misc_psreset_api.c
void XSlcr_SmcPsReset(void)
{
	u32 RegVal;
	/* Unlock the slcr register access lock */
	Xil_Out32(XSLCR_UNLOCK_ADDR, XSLCR_UNLOCK_CODE);
	/* Assert the reset */
	RegVal = Xil_In32(XSLCR_SMC_RST_CTRL_ADDR);
	RegVal |= XSLCR_SMC_RST_CTRL_VAL;
	Xil_Out32(XSLCR_SMC_RST_CTRL_ADDR, RegVal);
	/* Release the reset */
	RegVal = Xil_In32(XSLCR_SMC_RST_CTRL_ADDR);
	RegVal = RegVal & (u32)(~XSLCR_SMC_RST_CTRL_VAL);
	Xil_Out32(XSLCR_SMC_RST_CTRL_ADDR, RegVal);
}
/*****************************************************************************/
/**
* This function contains the implementation for SMC software reset from the slcr
*
* @return   N/A.
*
******************************************************************************/
This function contains the implementation for SMC software reset from the slcr
This function contains the implementation for SMC software reset from the slcr
void XSlcr_SmcPsReset(void)
{
	u32 RegVal;
	Xil_Out32(XSLCR_UNLOCK_ADDR, XSLCR_UNLOCK_CODE);
	RegVal = Xil_In32(XSLCR_SMC_RST_CTRL_ADDR);
	RegVal |= XSLCR_SMC_RST_CTRL_VAL;
	Xil_Out32(XSLCR_SMC_RST_CTRL_ADDR, RegVal);
	RegVal = Xil_In32(XSLCR_SMC_RST_CTRL_ADDR);
	RegVal = RegVal & (u32)(~XSLCR_SMC_RST_CTRL_VAL);
	Xil_Out32(XSLCR_SMC_RST_CTRL_ADDR, RegVal);
}
void XSlcr_SmcPsReset ( void ) { u32 RegVal ; Xil_Out32 ( XSLCR_UNLOCK_ADDR , XSLCR_UNLOCK_CODE ) ; RegVal = Xil_In32 ( XSLCR_SMC_RST_CTRL_ADDR ) ; RegVal |= XSLCR_SMC_RST_CTRL_VAL ; Xil_Out32 ( XSLCR_SMC_RST_CTRL_ADDR , RegVal ) ; RegVal = Xil_In32 ( XSLCR_SMC_RST_CTRL_ADDR ) ; RegVal = RegVal & ( u32 ) ( ~ XSLCR_SMC_RST_CTRL_VAL ) ; Xil_Out32 ( XSLCR_SMC_RST_CTRL_ADDR , RegVal ) ; }
This function contains the implementation for SMC software reset from the slcr
This function contains the implementation for SMC software reset from the slcr
/* Unlock the slcr register access lock */ /* Assert the reset */ /* Release the reset */