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

	/* Unlock the slcr register access lock */
	Xil_Out32(XSLCR_UNLOCK_ADDR, XSLCR_UNLOCK_CODE);
	/* Map the ocm region to postbootrom state */
	RegVal = Xil_In32(XSLCR_OCM_CFG_ADDR);
	RegVal = (RegVal & (u32)(~XSLCR_OCM_CFG_HIADDR_MASK)) | (u32)XSLCR_OCM_CFG_RESETVAL;
	Xil_Out32(XSLCR_OCM_CFG_ADDR, RegVal);
}
/*****************************************************************************/
/**
* This function contains the implementation for remapping the ocm memory region
* to postbootrom state.
*
* @return   N/A.
*
******************************************************************************/
This function contains the implementation for remapping the ocm memory region
to postbootrom state.
This function contains the implementation for remapping the ocm memory region to postbootrom state .
void XOcm_Remap(void)
{
	u32 RegVal;
	Xil_Out32(XSLCR_UNLOCK_ADDR, XSLCR_UNLOCK_CODE);
	RegVal = Xil_In32(XSLCR_OCM_CFG_ADDR);
	RegVal = (RegVal & (u32)(~XSLCR_OCM_CFG_HIADDR_MASK)) | (u32)XSLCR_OCM_CFG_RESETVAL;
	Xil_Out32(XSLCR_OCM_CFG_ADDR, RegVal);
}
void XOcm_Remap ( void ) { u32 RegVal ; Xil_Out32 ( XSLCR_UNLOCK_ADDR , XSLCR_UNLOCK_CODE ) ; RegVal = Xil_In32 ( XSLCR_OCM_CFG_ADDR ) ; RegVal = ( RegVal & ( u32 ) ( ~ XSLCR_OCM_CFG_HIADDR_MASK ) ) | ( u32 ) XSLCR_OCM_CFG_RESETVAL ; Xil_Out32 ( XSLCR_OCM_CFG_ADDR , RegVal ) ; }
This function contains the implementation for remapping the ocm memory region
to postbootrom state.
This function contains the implementation for remapping the ocm memory region to postbootrom state .
/* Unlock the slcr register access lock */ /* Map the ocm region to postbootrom state */