lib/sw_apps/versal_psmfw/src/xpsmfw_dvsec.c
XStatus XPsmFw_DvsecEnable(u32 CpmPowerId, u32 CpmSlcrAddr)
{
	XStatus Status = XST_FAILURE;

	/* Initialize CPM power id and base address params */
	Status = XPsmFw_CpmInit(CpmPowerId, CpmSlcrAddr);

	/* Enable PSM GIC interrupts */
	if (Status == XST_SUCCESS) {
		XPsmFw_GicP2IrqEnable();
	}

	return Status;
}
/****************************************************************************/
/**
 * @brief	Enable DVSEC functionality in PSM
 *
 * @param	CpmPowerId	The PowerId of CPM domain
 * @param	CpmSlcrAddr	BaseAddress of CPM_SLCR module
 *
 * @return	XST_SUCCESS or error code
 *
 * @note	None
 *
 ****************************************************************************/
@brief       Enable DVSEC functionality in PSM
@param       CpmPowerId      The PowerId of CPM domain
@param       CpmSlcrAddr     BaseAddress of CPM_SLCR module

@return      XST_SUCCESS or error code

@note        None
@brief Enable DVSEC functionality in PSM @param CpmPowerId The PowerId of CPM domain @param CpmSlcrAddr BaseAddress of CPM_SLCR module @return XST_SUCCESS or error code @note None
XStatus XPsmFw_DvsecEnable(u32 CpmPowerId, u32 CpmSlcrAddr)
{
	XStatus Status = XST_FAILURE;
	Status = XPsmFw_CpmInit(CpmPowerId, CpmSlcrAddr);
	if (Status == XST_SUCCESS) {
		XPsmFw_GicP2IrqEnable();
	}
	return Status;
}
XStatus XPsmFw_DvsecEnable ( u32 CpmPowerId , u32 CpmSlcrAddr ) { XStatus Status = XST_FAILURE ; Status = XPsmFw_CpmInit ( CpmPowerId , CpmSlcrAddr ) ; if ( Status == XST_SUCCESS ) { XPsmFw_GicP2IrqEnable ( ) ; } return Status ; }
@brief       Enable DVSEC functionality in PSM
 @param       CpmPowerId      The PowerId of CPM domain
 @param       CpmSlcrAddr     BaseAddress of CPM_SLCR module
@brief Enable DVSEC functionality in PSM @param CpmPowerId The PowerId of CPM domain @param CpmSlcrAddr BaseAddress of CPM_SLCR module
/* Initialize CPM power id and base address params */ /* Enable PSM GIC interrupts */