Hi Naitik,

device driver and low level stuff is discussed in Google-Android-Internals 
group. hier is the link:
http://groups.google.com/group/android-internals?hl=en

Regards, 
Yalcin
  ----- Original Message ----- 
  From: Naitik 
  To: Android Developers 
  Sent: Friday, August 29, 2008 6:47 PM
  Subject: [android-developers] I2C Devices



  I am trying to write a driver for a I2C chip. I did insmod on my
  driver from android shell, I can see the printk in the "init" getting
  executed.

  To my understanding...
  What init does is, it calls i2c_add_driver(xxxxx); to register my
  driver with i2c core.

  Upon registration i2c core should find a i2c adapter, if it finds
  adapter, it should invoke attach function that was part of the
  i2c_driver struct.

  attach function should look for the device(address) on the i2c but via
  I2c Adapter, it finds a device at the address that its looking for, it
  should then invoke the probe and let the fun begin...

  But I dont see a printk inside my attach function getting executed,
  which prompts to suspect that kernel is not detecting any "simulated"
  i2c adapter...

  Can you please comment.

  
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to