lib/sw_apps/imgsel/src/xis_i2c.c
int XIs_IicPsMuxInit(void)
{
	int Status = XST_FAILURE;
	u8 MuxChannel = XIS_I2C_MUX_INDEX;
	u16 DeviceId = XIS_I2C_EEPROM_INDEX;

	Status = XIs_IicPsConfig(DeviceId);
	if (Status != XST_SUCCESS) {
		Status = XIS_IICPS_CONFIG_ERROR;
		goto END;
	}

	Status = XIs_MuxInitChannel(XIS_MUX_ADDR, MuxChannel);
	if (Status != XST_SUCCESS) {
		XIs_Printf(DEBUG_INFO,"Failed to enable the MUX channel\r\n");
		Status = XIS_IICPS_MUX_ERROR;
		goto END;
	}

END:
	return Status;
}
/*****************************************************************************/
/**
 * This function is use to configure the iic device and Init the mux channel
 *
 * @param	None
 *
 * @return	XST_SUCCESS if successful and also update the epprom slave
 * device address in addr variable else XST_FAILURE.
 *
 * @note		None.
 *
 ******************************************************************************/
This function is use to configure the iic device and Init the mux channel
@param       None

@return      XST_SUCCESS if successful and also update the epprom slave
device address in addr variable else XST_FAILURE.

@note                None.
This function is use to configure the iic device and Init the mux channel @param None @return XST_SUCCESS if successful and also update the epprom slave device address in addr variable else XST_FAILURE . @note None .
int XIs_IicPsMuxInit(void)
{
	int Status = XST_FAILURE;
	u8 MuxChannel = XIS_I2C_MUX_INDEX;
	u16 DeviceId = XIS_I2C_EEPROM_INDEX;
	Status = XIs_IicPsConfig(DeviceId);
	if (Status != XST_SUCCESS) {
		Status = XIS_IICPS_CONFIG_ERROR;
		goto END;
	}
	Status = XIs_MuxInitChannel(XIS_MUX_ADDR, MuxChannel);
	if (Status != XST_SUCCESS) {
		XIs_Printf(DEBUG_INFO,"Failed to enable the MUX channel\r\n");
		Status = XIS_IICPS_MUX_ERROR;
		goto END;
	}
END:
	return Status;
}
int XIs_IicPsMuxInit ( void ) { int Status = XST_FAILURE ; u8 MuxChannel = XIS_I2C_MUX_INDEX ; u16 DeviceId = XIS_I2C_EEPROM_INDEX ; Status = XIs_IicPsConfig ( DeviceId ) ; if ( Status != XST_SUCCESS ) { Status = XIS_IICPS_CONFIG_ERROR ; goto END ; } Status = XIs_MuxInitChannel ( XIS_MUX_ADDR , MuxChannel ) ; if ( Status != XST_SUCCESS ) { XIs_Printf ( DEBUG_INFO , " \r \n " ) ; Status = XIS_IICPS_MUX_ERROR ; goto END ; } END : return Status ; }
This function is use to configure the iic device and Init the mux channel
 @param       None
This function is use to configure the iic device and Init the mux channel @param None