lib/sw_apps/versal_plm/src/xplm_main.c
static int XPlm_Init(void)
{
	int Status = XST_FAILURE;
	u8 PmcVersion = (u8)(XPlmi_In32(PMC_TAP_VERSION) &
			PMC_TAP_VERSION_PMC_VERSION_MASK);

	/**
	 * Disable CFRAME isolation for VCCRAM for ES1 Silicon
	 */
	if (PmcVersion == XPLMI_SILICON_ES1_VAL) {
		XPlmi_UtilRMW(PMC_GLOBAL_DOMAIN_ISO_CNTRL,
		 PMC_GLOBAL_DOMAIN_ISO_CNTRL_PMC_PL_CFRAME_MASK, 0U);
	}

	/**
	 * Reset the wakeup signal set by ROM
	 * Otherwise MB will always wakeup, irrespective of the sleep state
	 */
	XPlmi_PpuWakeUpDis();

	/* Initialize debug log structure */
	XPlmi_InitDebugLogBuffer();

	/** Initialize the processor, enable exceptions */
	Status = XPlm_InitProc();
	if (Status != XST_SUCCESS) {
		goto END;
	}

	/* Initializes the DMA pointers */
	Status = XPlmi_DmaInit();
	if (Status != XST_SUCCESS) {
		goto END;
	}

	Status = XPlmi_RunTimeConfigInit();
	if (Status != XST_SUCCESS) {
		goto END;
	}

#ifdef DEBUG_UART_MDM
	/** If MDM UART, banner can be printed before any initialization */
	XPlmi_InitUart();
#endif

	/** Do Internal POR if any specific case */
	XPlm_PerformInternalPOR();

	/** Initialize the tasks lists */
	XPlmi_TaskInit();

END:
	return Status;
}
/*****************************************************************************/
/**
 * @brief This function initializes DMA, Run Time Config area, the processor
 * 		and task list structures.
 *
 * @return	Status as defined in xplmi_status.h
 *
 *****************************************************************************/
@brief This function initializes DMA, Run Time Config area, the processor
and task list structures.

@return      Status as defined in xplmi_status.h
@brief This function initializes DMA Run Time Config area the processor and task list structures . @return Status as defined in xplmi_status . h
static int XPlm_Init(void)
{
	int Status = XST_FAILURE;
	u8 PmcVersion = (u8)(XPlmi_In32(PMC_TAP_VERSION) &
			PMC_TAP_VERSION_PMC_VERSION_MASK);
	if (PmcVersion == XPLMI_SILICON_ES1_VAL) {
		XPlmi_UtilRMW(PMC_GLOBAL_DOMAIN_ISO_CNTRL,
		 PMC_GLOBAL_DOMAIN_ISO_CNTRL_PMC_PL_CFRAME_MASK, 0U);
	}
	XPlmi_PpuWakeUpDis();
	XPlmi_InitDebugLogBuffer();
	Status = XPlm_InitProc();
	if (Status != XST_SUCCESS) {
		goto END;
	}
	Status = XPlmi_DmaInit();
	if (Status != XST_SUCCESS) {
		goto END;
	}
	Status = XPlmi_RunTimeConfigInit();
	if (Status != XST_SUCCESS) {
		goto END;
	}
#ifdef DEBUG_UART_MDM
	XPlmi_InitUart();
#endif
	XPlm_PerformInternalPOR();
	XPlmi_TaskInit();
END:
	return Status;
}
static int XPlm_Init ( void ) { int Status = XST_FAILURE ; u8 PmcVersion = ( u8 ) ( XPlmi_In32 ( PMC_TAP_VERSION ) & PMC_TAP_VERSION_PMC_VERSION_MASK ) ; if ( PmcVersion == XPLMI_SILICON_ES1_VAL ) { XPlmi_UtilRMW ( PMC_GLOBAL_DOMAIN_ISO_CNTRL , PMC_GLOBAL_DOMAIN_ISO_CNTRL_PMC_PL_CFRAME_MASK , 0U ) ; } XPlmi_PpuWakeUpDis ( ) ; XPlmi_InitDebugLogBuffer ( ) ; Status = XPlm_InitProc ( ) ; if ( Status != XST_SUCCESS ) { goto END ; } Status = XPlmi_DmaInit ( ) ; if ( Status != XST_SUCCESS ) { goto END ; } Status = XPlmi_RunTimeConfigInit ( ) ; if ( Status != XST_SUCCESS ) { goto END ; } #ifdef DEBUG_UART_MDM XPlmi_InitUart ( ) ; #endif XPlm_PerformInternalPOR ( ) ; XPlmi_TaskInit ( ) ; END : return Status ; }
@brief This function initializes DMA, Run Time Config area, the processor
              and task list structures.
@brief This function initializes DMA Run Time Config area the processor and task list structures .
/**
	 * Disable CFRAME isolation for VCCRAM for ES1 Silicon
	 */ /**
	 * Reset the wakeup signal set by ROM
	 * Otherwise MB will always wakeup, irrespective of the sleep state
	 */ /* Initialize debug log structure */ /** Initialize the processor, enable exceptions */ /* Initializes the DMA pointers */ /** If MDM UART, banner can be printed before any initialization */ /** Do Internal POR if any specific case */ /** Initialize the tasks lists */