LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded
User Name
Password
Linux - Embedded This forum is for the discussion of Linux and embedded devices.

Notices

Reply
 
LinkBack Search this Thread
Old 06-15-2009, 11:57 AM   #1
avyadavnitw
LQ Newbie
 
Registered: Apr 2009
Posts: 16

Rep: Reputation: 0
How to write a i2c chip driver which handles different addresses


I need to write a chip driver which shud handle different addresses.
The chip has diff adress like 1011 A2 A1 A0 RW.
When i write 1011 011,it will access the IO registers.
When i write 1011 100,it will access the IO registers which have diff functionality.

For that can i use normal_i2c[]={5B,5C,I2C_CLIENT_END}.

But when i need to test for particular address how to do the testing in the kernel space?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hi i want info on I2c driver code structure avyadavnitw Linux - Embedded 1 05-10-2009 07:47 PM
Hi i want info on I2c driver avyadavnitw Linux - Hardware 1 05-04-2009 12:41 PM
i2c in 2.4.33.3? also need driver via686a for same kernel Tux-Slack Slackware 1 05-16-2007 01:40 PM
I2C device driver mylinuxdna Linux - General 0 10-10-2005 02:16 AM


All times are GMT -5. The time now is 12:55 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration