XilinxProcessorIPLib/drivers/dp14rxss/src/xdprxss_mcdp6000.c
int XDpRxSs_MCDP6000_IbertInit(XDpRxSs *DpRxSsPtr, u8 I2CSlaveAddress)
{

	unsigned int Result = XST_FAILURE;

	/* Verify argument.*/
	Xil_AssertNonvoid(DpRxSsPtr != NULL);

	if (MCDP6000_IC_Rev == 0x2100) {
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0504, 0x0000704E);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x278C, 0x00000190);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x010C, 0x0F0F2D24);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x01A0, 0xCC884444);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x01D0, 0x0000B360);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0504, 0x0000714E);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0504, 0x0000704E);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x01C0, 0x2C00A81E);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0178, 0x13471480);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0604, 0x0000F004);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x067C, 0x00000002);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0630, 0x0000041E);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0350, 0x0000001F);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0150, 0x00180000);
	}
	return Result;
}
/*****************************************************************************/
/**
*
* This function initializes the MCDP6000 device with default values
* for IBERT use with the Video FMC.
*
* @param DpRxSsPtr is a pointer to the XDpRxSs core instance.
* @param I2CSlaveAddress is the 7-bit I2C slave address.
*
* @return
*    - XST_SUCCESS Initialization was successful.
*    - XST_FAILURE I2C write error.
*
* @note None.
*
******************************************************************************/
This function initializes the MCDP6000 device with default values
for IBERT use with the Video FMC.
This function initializes the MCDP6000 device with default values for IBERT use with the Video FMC .
int XDpRxSs_MCDP6000_IbertInit(XDpRxSs *DpRxSsPtr, u8 I2CSlaveAddress)
{
	unsigned int Result = XST_FAILURE;
	Xil_AssertNonvoid(DpRxSsPtr != NULL);
	if (MCDP6000_IC_Rev == 0x2100) {
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0504, 0x0000704E);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x278C, 0x00000190);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x010C, 0x0F0F2D24);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x01A0, 0xCC884444);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x01D0, 0x0000B360);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0504, 0x0000714E);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0504, 0x0000704E);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x01C0, 0x2C00A81E);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0178, 0x13471480);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0604, 0x0000F004);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x067C, 0x00000002);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0630, 0x0000041E);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0350, 0x0000001F);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0150, 0x00180000);
	}
	return Result;
}
int XDpRxSs_MCDP6000_IbertInit ( XDpRxSs * DpRxSsPtr , u8 I2CSlaveAddress ) { unsigned int Result = XST_FAILURE ; Xil_AssertNonvoid ( DpRxSsPtr != NULL ) ; if ( MCDP6000_IC_Rev == 0x2100 ) { Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x0504 , 0x0000704E ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x278C , 0x00000190 ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x010C , 0x0F0F2D24 ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x01A0 , 0xCC884444 ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x01D0 , 0x0000B360 ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x0504 , 0x0000714E ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x0504 , 0x0000704E ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x01C0 , 0x2C00A81E ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x0178 , 0x13471480 ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x0604 , 0x0000F004 ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x067C , 0x00000002 ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x0630 , 0x0000041E ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x0350 , 0x0000001F ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x0150 , 0x00180000 ) ; } return Result ; }
This function initializes the MCDP6000 device with default values
for IBERT use with the Video FMC.
This function initializes the MCDP6000 device with default values for IBERT use with the Video FMC .
/* Verify argument.*/