cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
yx-412
Visitor
Visitor
3,619 Views
Registered: ‎03-06-2014

Some questions : zynq linux with i2c driver

I have some troubles about xilinx zynq-7000 with i2c drivers.

I have no idea about how to use the i2c-candence.c  file. 

https://github.com/Xilinx/linux-xlnx/blob/master-next/drivers/i2c/busses/i2c-cadence.c

when I view http://www.wiki.xilinx.com/Linux+I2C+Driver, I have readed the turorial(UG585-zynq7000-TRM)  spec ,it said that when I use i2c device I also need configure some  registers,but the example have no these steps,so I confused.

BTW,if I want set i2c working on a slave mode ,what I must do ? 

I need your help~~~Could some one tell me how can I  do it?

0 Kudos
3 Replies
vijayak
Xilinx Employee
Xilinx Employee
3,615 Views
Registered: ‎10-24-2013

Hi,
Please refer to page 595 of http://www.xilinx.com/support/documentation/user_guides/ug585-Zynq-7000-TRM.pdf which talks about slave mode .

 

Refer to Programmer’s Guide @ 599 for configuration details.

Thanks,Vijay
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos
yx-412
Visitor
Visitor
3,609 Views
Registered: ‎03-06-2014

thanks,but I don't no how I use i2c and configure i2c registerts in linux environment?
0 Kudos
yx-412
Visitor
Visitor
3,552 Views
Registered: ‎03-06-2014

thanks your help ,but I also have two questions.

1st. how can I configure I2c register and run my code in embedded linux system?

2nd.the i2c-test.c example don't configure register.It can be work ?
http://www.wiki.xilinx.com/Linux+I2C+Driver


I hope you can able to assit me !
thanks & regards

rfish
0 Kudos