2009-05-06 07:11:24 How can we use the available I2C driver in kernel?
ThangarJ P (INDIA)
Message: 73748
Dear All,
I am working with BF533 and uClinux distribution 2008R1.5-RC3.
we have the audio codec device whose registers can be configured using I2C. we are using the GPIO emulation of I2C bus.
I have followed the document in the wiki.
docs.blackfin.uclinux.org/doku.php?id=:i2c
Are there any standalone drivers for I2C driver is available so that i can just plug for my device and configure the registers?
With Regards,Thangaraj.P
QuoteReplyEditDelete
2009-05-06 07:51:29 Re: How can we use the available I2C driver in kernel?
Mike Frysinger (UNITED STATES)
Message: 73749
there are no "standalone drivers". if it's an audio codec, then it usually has an alsa driver so that is where the i2c code would go. or you can bang on it directly using the userspace driver.
QuoteReplyEditDelete
2009-05-06 08:44:32 Re: How can we use the available I2C driver in kernel?
ThangarJ P (INDIA)
Message: 73756
Dear Mike,
you mean to the alsa driver has inbulit I2C driver and it will take care the I2C communication.
how can we write the userspace I2C driver?
Please clarify the above.
With Regards,Thangaraj.P
QuoteReplyEditDelete
2009-05-06 09:47:34 Re: How can we use the available I2C driver in kernel?
Mike Frysinger (UNITED STATES)
Message: 73761
no, you need to write the kernel driver yourself
you already found the i2c documentation ...
QuoteReplyEditDelete
2009-05-06 10:00:32 Re: How can we use the available I2C driver in kernel?
ThangarJ P (INDIA)
Message: 73763
Dear Mike,
Ok..
Thanks for your suggestion.
With Regards,Thangaraj.P
QuoteReplyEditDelete
2009-05-06 23:33:35 Re: How can we use the available I2C driver in kernel?
Sonic Zhang (CHINA)
Message: 73786
You can also use system call ioctl() to operate /dev/i2c-0 device directly in your application.