XilinxProcessorIPLib/drivers/cfupmc/src/xcfupmc.c
void XCfupmc_GlblSeqInit(const XCfupmc *InstancePtr)
{
	Xil_AssertVoid(InstancePtr != NULL);

	XCfupmc_Printf( "PL Global Sequence: Init \n\r");

	/* Remove CFU Protection */
	XCfupmc_WriteReg(CFU_APB_CFU_PROTECT, CFUPMC_PROT_DISABLE);

	/* Assert GRESTORE */
	XCfupmc_MaskRegWrite(InstancePtr, CFU_APB_CFU_FGCR,
		CFU_APB_CFU_FGCR_GRESTORE_MASK, CFU_APB_CFU_FGCR_GRESTORE_MASK);

	usleep(10U);
	/* De Assert GRESTORE */
	XCfupmc_MaskRegWrite(InstancePtr, CFU_APB_CFU_FGCR,
		CFU_APB_CFU_FGCR_GRESTORE_MASK, CFU_APB_CFU_FGCR_GRESTORE_CLEAR);
	/* Assert InitComplete */
	XCfupmc_MaskRegWrite(InstancePtr, CFU_APB_CFU_FGCR,
			CFU_APB_CFU_FGCR_INIT_COMPLETE_MASK,
			CFU_APB_CFU_FGCR_INIT_COMPLETE_MASK);

	/* Enable CFU Protection */
	XCfupmc_WriteReg(CFU_APB_CFU_PROTECT, CFUPMC_PROT_ENABLE);

	return;
}
/*****************************************************************************/
/**
 * This function inits the global events to needs to be done before
 * loading the CFI data
 *
 * @param	InstancePtr is a pointer to the XCfupmc instance.
 *
 * @return	None
 *
 ******************************************************************************/
This function inits the global events to needs to be done before
loading the CFI data

@param       InstancePtr is a pointer to the XCfupmc instance.

@return      None
This function inits the global events to needs to be done before loading the CFI data @param InstancePtr is a pointer to the XCfupmc instance . @return None
void XCfupmc_GlblSeqInit(const XCfupmc *InstancePtr)
{
	Xil_AssertVoid(InstancePtr != NULL);
	XCfupmc_Printf( "PL Global Sequence: Init \n\r");
	XCfupmc_WriteReg(CFU_APB_CFU_PROTECT, CFUPMC_PROT_DISABLE);
	XCfupmc_MaskRegWrite(InstancePtr, CFU_APB_CFU_FGCR,
		CFU_APB_CFU_FGCR_GRESTORE_MASK, CFU_APB_CFU_FGCR_GRESTORE_MASK);
	usleep(10U);
	XCfupmc_MaskRegWrite(InstancePtr, CFU_APB_CFU_FGCR,
		CFU_APB_CFU_FGCR_GRESTORE_MASK, CFU_APB_CFU_FGCR_GRESTORE_CLEAR);
	XCfupmc_MaskRegWrite(InstancePtr, CFU_APB_CFU_FGCR,
			CFU_APB_CFU_FGCR_INIT_COMPLETE_MASK,
			CFU_APB_CFU_FGCR_INIT_COMPLETE_MASK);
	XCfupmc_WriteReg(CFU_APB_CFU_PROTECT, CFUPMC_PROT_ENABLE);
	return;
}
void XCfupmc_GlblSeqInit ( const XCfupmc * InstancePtr ) { Xil_AssertVoid ( InstancePtr != NULL ) ; XCfupmc_Printf ( " \n \r " ) ; XCfupmc_WriteReg ( CFU_APB_CFU_PROTECT , CFUPMC_PROT_DISABLE ) ; XCfupmc_MaskRegWrite ( InstancePtr , CFU_APB_CFU_FGCR , CFU_APB_CFU_FGCR_GRESTORE_MASK , CFU_APB_CFU_FGCR_GRESTORE_MASK ) ; usleep ( 10U ) ; XCfupmc_MaskRegWrite ( InstancePtr , CFU_APB_CFU_FGCR , CFU_APB_CFU_FGCR_GRESTORE_MASK , CFU_APB_CFU_FGCR_GRESTORE_CLEAR ) ; XCfupmc_MaskRegWrite ( InstancePtr , CFU_APB_CFU_FGCR , CFU_APB_CFU_FGCR_INIT_COMPLETE_MASK , CFU_APB_CFU_FGCR_INIT_COMPLETE_MASK ) ; XCfupmc_WriteReg ( CFU_APB_CFU_PROTECT , CFUPMC_PROT_ENABLE ) ; return ; }
This function inits the global events to needs to be done before
 loading the CFI data
This function inits the global events to needs to be done before loading the CFI data
/* Remove CFU Protection */ /* Assert GRESTORE */ /* De Assert GRESTORE */ /* Assert InitComplete */ /* Enable CFU Protection */