lib/bsp/standalone/src/microblaze/xil_misc_psreset_api.c
void XDdr_ResetHw(void)
{
	u32 RegVal;

	/* Unlock the slcr register access lock */
	 Xil_Out32(XSLCR_UNLOCK_ADDR, XSLCR_UNLOCK_CODE);
	/* Assert and deassert the ddr softreset bit */
     RegVal = 	Xil_In32(XDDRC_CTRL_BASEADDR);
	 RegVal &= (u32)(~XDDRPS_CTRL_RESET_MASK);
	 Xil_Out32(XDDRC_CTRL_BASEADDR,RegVal);
	 RegVal |= XDDRPS_CTRL_RESET_MASK;
	 Xil_Out32(XDDRC_CTRL_BASEADDR,RegVal);

}
/*****************************************************************************/
/**
* This function contains the implementation for ddr reset.
*
* @return   N/A.
*
******************************************************************************/
This function contains the implementation for ddr reset.
This function contains the implementation for ddr reset .
void XDdr_ResetHw(void)
{
	u32 RegVal;
	 Xil_Out32(XSLCR_UNLOCK_ADDR, XSLCR_UNLOCK_CODE);
     RegVal = 	Xil_In32(XDDRC_CTRL_BASEADDR);
	 RegVal &= (u32)(~XDDRPS_CTRL_RESET_MASK);
	 Xil_Out32(XDDRC_CTRL_BASEADDR,RegVal);
	 RegVal |= XDDRPS_CTRL_RESET_MASK;
	 Xil_Out32(XDDRC_CTRL_BASEADDR,RegVal);
}
void XDdr_ResetHw ( void ) { u32 RegVal ; Xil_Out32 ( XSLCR_UNLOCK_ADDR , XSLCR_UNLOCK_CODE ) ; RegVal = Xil_In32 ( XDDRC_CTRL_BASEADDR ) ; RegVal &= ( u32 ) ( ~ XDDRPS_CTRL_RESET_MASK ) ; Xil_Out32 ( XDDRC_CTRL_BASEADDR , RegVal ) ; RegVal |= XDDRPS_CTRL_RESET_MASK ; Xil_Out32 ( XDDRC_CTRL_BASEADDR , RegVal ) ; }
This function contains the implementation for ddr reset.
This function contains the implementation for ddr reset .
/* Unlock the slcr register access lock */ /* Assert and deassert the ddr softreset bit */