i.mx6 i2c set to slave?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.mx6 i2c set to slave?

1,683 Views
guohn
Contributor III

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

Labels (4)
0 Kudos
1 Reply

1,122 Views
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos