XilinxProcessorIPLib/drivers/csi2txss/src/xcsi2txss.c
u32 XCsi2TxSs_CfgInitialize(XCsi2TxSs *InstancePtr, XCsi2TxSs_Config *CfgPtr,
				UINTPTR EffectiveAddr)
{
	u32 Status;

	/* Verify arguments */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(CfgPtr != NULL);
	Xil_AssertNonvoid(EffectiveAddr != 0);

	/* Setup the instance */
	InstancePtr->Config = *CfgPtr;
	InstancePtr->Config.BaseAddr = EffectiveAddr;

	/* Determine sub-cores included in provided instance of subsystem */
	Csi2TxSs_GetIncludedSubCores(InstancePtr);

	/* Initialize all included sub_cores */
	if (InstancePtr->CsiPtr) {
		Status = Csi2TxSs_SubCoreInitCsi(InstancePtr);
		if (Status != XST_SUCCESS) {
			return XST_FAILURE;
		}
	}

#if (XPAR_XDPHY_NUM_INSTANCES > 0)
	if (InstancePtr->Config.IsDphyRegIntfcPresent && InstancePtr->DphyPtr) {
		Status = Csi2TxSs_SubCoreInitDphy(InstancePtr);
		if (Status != XST_SUCCESS) {
			return XST_FAILURE;
		}
	}
#endif
	InstancePtr->IsReady = XIL_COMPONENT_IS_READY;
	return XST_SUCCESS;
}
/*****************************************************************************/
/**
* This function initializes the MIPI CSI subsystem and included sub-cores.
* This function must be called prior to using the subsystem. Initialization
* includes setting up the instance data for top level as well as all included
* sub-core therein, and ensuring the hardware is in a known stable state.
*
* @param	InstancePtr is a pointer to the Subsystem instance to be
		worked on.
* @param	CfgPtr points to the configuration structure associated
*		with the subsystem instance.
* @param	EffectiveAddr is the base address of the device. If address
*		translation is being used, then this parameter must reflect the
*		virtual base address. Otherwise, the physical address should be
*		used.
*
* @return
*		- XST_SUCCESS if initialization is successful
*		- XST_FAILURE, otherwise
*
* @note		None.
*
******************************************************************************/
This function initializes the MIPI CSI subsystem and included sub-cores.
This function must be called prior to using the subsystem. Initialization
includes setting up the instance data for top level as well as all included
sub-core therein, and ensuring the hardware is in a known stable state.
This function initializes the MIPI CSI subsystem and included sub - cores . This function must be called prior to using the subsystem . Initialization includes setting up the instance data for top level as well as all included sub - core therein and ensuring the hardware is in a known stable state .
u32 XCsi2TxSs_CfgInitialize(XCsi2TxSs *InstancePtr, XCsi2TxSs_Config *CfgPtr,
				UINTPTR EffectiveAddr)
{
	u32 Status;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(CfgPtr != NULL);
	Xil_AssertNonvoid(EffectiveAddr != 0);
	InstancePtr->Config = *CfgPtr;
	InstancePtr->Config.BaseAddr = EffectiveAddr;
	Csi2TxSs_GetIncludedSubCores(InstancePtr);
	if (InstancePtr->CsiPtr) {
		Status = Csi2TxSs_SubCoreInitCsi(InstancePtr);
		if (Status != XST_SUCCESS) {
			return XST_FAILURE;
		}
	}
#if (XPAR_XDPHY_NUM_INSTANCES > 0)
	if (InstancePtr->Config.IsDphyRegIntfcPresent && InstancePtr->DphyPtr) {
		Status = Csi2TxSs_SubCoreInitDphy(InstancePtr);
		if (Status != XST_SUCCESS) {
			return XST_FAILURE;
		}
	}
#endif
	InstancePtr->IsReady = XIL_COMPONENT_IS_READY;
	return XST_SUCCESS;
}
u32 XCsi2TxSs_CfgInitialize ( XCsi2TxSs * InstancePtr , XCsi2TxSs_Config * CfgPtr , UINTPTR EffectiveAddr ) { u32 Status ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( CfgPtr != NULL ) ; Xil_AssertNonvoid ( EffectiveAddr != 0 ) ; InstancePtr -> Config = * CfgPtr ; InstancePtr -> Config . BaseAddr = EffectiveAddr ; Csi2TxSs_GetIncludedSubCores ( InstancePtr ) ; if ( InstancePtr -> CsiPtr ) { Status = Csi2TxSs_SubCoreInitCsi ( InstancePtr ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } } #if ( XPAR_XDPHY_NUM_INSTANCES > 0 ) if ( InstancePtr -> Config . IsDphyRegIntfcPresent && InstancePtr -> DphyPtr ) { Status = Csi2TxSs_SubCoreInitDphy ( InstancePtr ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } } #endif InstancePtr -> IsReady = XIL_COMPONENT_IS_READY ; return XST_SUCCESS ; }
This function initializes the MIPI CSI subsystem and included sub-cores.
This function initializes the MIPI CSI subsystem and included sub - cores .
/* Verify arguments */ /* Setup the instance */ /* Determine sub-cores included in provided instance of subsystem */ /* Initialize all included sub_cores */