We need set i.mx6's i2c to slave mode.But not occur interrupt.
The following is my initialization step:
writeb(0x20, i2c_imx->base + IMX_I2C_IADR);//set i2c slave addr to 0x20
writeb(I2CR_IEN, i2c_imx->base + IMX_I2C_I2CR);//enable i2c
temp = readb(i2c_imx->base + IMX_I2C_I2CR);//
temp |= I2CR_IIEN;
writeb(temp, i2c_imx->base + IMX_I2C_I2CR);//enable i2c interrupt
Then other device i2c send to mx6, and i.mx6 not occur interrupt.
Who knows what's the problem?
Best Regards,
Shannon
Hi Shannon
as stated in sect.35.3 Driver Features attached Linux Manual :
The I2C driver does not support the I2C slave mode of operation.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------