XilinxProcessorIPLib/drivers/v_hdmitxss1/examples/xhdmi_example/idt_8t49n24x.c
int IDT_8T49N24x_GpioLolEnable(void *IicPtr, u8 IICAddress)
{
	int Status;

	/* Reset I2C controller before issuing new transaction. This is
	 * required to recover the IIC controller in case a previous transaction
	 * is pending.
	 */
	IDT_8T49N24x_I2cReset(IicPtr);

	/* Set GPIO[3:0] to output mode */
	Status = IDT_8T49N24x_SetRegister(IicPtr, IICAddress,
							0x30, 0x0F);

	/* Set GPOxSEL[2] to 0000b */
	Status |= IDT_8T49N24x_SetRegister(IicPtr, IICAddress,
							0x34, 0x00);

	/* Set GPOxSEL[1] to 0000b */
	Status |= IDT_8T49N24x_SetRegister(IicPtr, IICAddress,
							0x35, 0x00);

	/* Set GPOxSEL[0] to 1111b */
	Status |= IDT_8T49N24x_SetRegister(IicPtr, IICAddress,
							0x36, 0x0F);

	if (Status != (XST_SUCCESS)) {
		xil_printf("Error programming IDT_8T49N241 GPIO=Lol\r\n");
		return XST_FAILURE;
	}

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function setup IDT 8T49N24x clock generator to enable GPIO[3] to be
* used as LoL indicator
*
* @param  IicBaseAddr IIC controller base address.
* @param  IICAddress device's IIC bus address.
*
* @return
*   - 0 XST_SUCCESS.
*   - 1 XST_FAILURE.
*
* @note   None.
*
******************************************************************************/
This function setup IDT 8T49N24x clock generator to enable GPIO[3] to be
used as LoL indicator
This function setup IDT 8T49N24x clock generator to enable GPIO [ 3 ] to be used as LoL indicator
int IDT_8T49N24x_GpioLolEnable(void *IicPtr, u8 IICAddress)
{
	int Status;
	IDT_8T49N24x_I2cReset(IicPtr);
	Status = IDT_8T49N24x_SetRegister(IicPtr, IICAddress,
							0x30, 0x0F);
	Status |= IDT_8T49N24x_SetRegister(IicPtr, IICAddress,
							0x34, 0x00);
	Status |= IDT_8T49N24x_SetRegister(IicPtr, IICAddress,
							0x35, 0x00);
	Status |= IDT_8T49N24x_SetRegister(IicPtr, IICAddress,
							0x36, 0x0F);
	if (Status != (XST_SUCCESS)) {
		xil_printf("Error programming IDT_8T49N241 GPIO=Lol\r\n");
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
int IDT_8T49N24x_GpioLolEnable ( void * IicPtr , u8 IICAddress ) { int Status ; IDT_8T49N24x_I2cReset ( IicPtr ) ; Status = IDT_8T49N24x_SetRegister ( IicPtr , IICAddress , 0x30 , 0x0F ) ; Status |= IDT_8T49N24x_SetRegister ( IicPtr , IICAddress , 0x34 , 0x00 ) ; Status |= IDT_8T49N24x_SetRegister ( IicPtr , IICAddress , 0x35 , 0x00 ) ; Status |= IDT_8T49N24x_SetRegister ( IicPtr , IICAddress , 0x36 , 0x0F ) ; if ( Status != ( XST_SUCCESS ) ) { xil_printf ( " \r \n " ) ; return XST_FAILURE ; } return XST_SUCCESS ; }
This function setup IDT 8T49N24x clock generator to enable GPIO[3] to be
used as LoL indicator
This function setup IDT 8T49N24x clock generator to enable GPIO [ 3 ] to be used as LoL indicator
/* Reset I2C controller before issuing new transaction. This is
	 * required to recover the IIC controller in case a previous transaction
	 * is pending.
	 */ /* Set GPIO[3:0] to output mode */ /* Set GPOxSEL[2] to 0000b */ /* Set GPOxSEL[1] to 0000b */ /* Set GPOxSEL[0] to 1111b */