Adapter driver
Hi!
I've written an adapter driver an I'd like to have an ID assigned to me. This is what I'm using at the moment:
------------< snip <------< snip <------< snip <------------
root@crystal:~/lart/c++/src/i2c# grep FRODO /usr/arm-linux/linux/include/linux/i2c-id.h #define I2C_HW_B_FRODO 0x13 /* 2d3D, Inc. SA-1110 Development Board */ ------------< snip <------< snip <------< snip <------------
I've also got a couple of questions for you:
1) Is there a developer mailinglist where I can discuss I2C related stuff?
2) There is 3 fields in the i2c_algo_bit_data structure for timing: udelay, mdelay, timeout. What should I make this? I've made them 80, 80, 100 respectively (stolen from Russell King's acorn RTC driver), but I'm not sure if this is the best selection...
3) Where do I send i2c patches to / can I get CVS access?
Signature · 23 lines
Regards Abraham If at first you don't succeed, redefine success. __________________________________________________________ Abraham vd Merwe - 2d3D, Inc. Device Driver Development, Outsourcing, Embedded Systems Cell: +27 82 565 4451 Snailmail: Tel: +27 21 761 7549 Block C, Aintree Park Fax: +27 21 761 7648 Doncaster Road Email: [email protected] Kenilworth, 7700 Http: http://www.2d3d.com South Africa -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20020520/27f88777/attachment.bin
Quoted 10 lines · Abraham vd Merwe
Hi!
I've written an adapter driver an I'd like to have an ID assigned to me. This is what I'm using at the moment:
------------< snip <------< snip <------< snip <------------
root@crystal:~/lart/c++/src/i2c# grep FRODO /usr/arm-linux/linux/include/linux/i2c-id.h #define I2C_HW_B_FRODO 0x13 /* 2d3D, Inc. SA-1110 Development Board */ ------------< snip <------< snip <------< snip <------------
Done.
Quoted 3 lines
I've also got a couple of questions for you:
1) Is there a developer mailinglist where I can discuss I2C related stuff?
Yes, I don't have the address handy, but here a link:
Look at the top of the Documentation section. If it doesn't work, let me know and I'll dig around some more. We have a local list, too, for sensors, but it's mostly administrative stuff for the project and not a lot of technical discussion.
Quoted 4 lines
2) There is 3 fields in the
i2c_algo_bit_datastructure for timing: udelay, mdelay, timeout. What should I make this? I've made them 80, 80, 100 respectively (stolen from Russell King's acorn RTC driver), but I'm not sure if this is the best selection...
Humm... I'll have to punt this to either Mark or Frodo.
Quoted 1 line
3) Where do I send i2c patches to / can I get CVS access?
You can get CVS access from me. Generate a password by running the script in the sensors project, and email it to me:
doc/developers/genpasswd.pl
Phil
Signature · 3 lines
Philip Edelbrock -- IS Manager -- Edge Design, Corvallis, OR [email protected] -- http://www.netroedge.com/~phil PGP F16: 01 D2 FD 01 B5 46 F4 F0 3A 8B 9D 7E 14 7F FB 7A
Quoted 10 lines · [email protected] wrote:
Quoted 5 lines
2) There is 3 fields in the
i2c_algo_bit_datastructure for timing: udelay, mdelay, timeout. What should I make this? I've made them 80, 80, 100 respectively (stolen from Russell King's acorn RTC driver), but I'm not sure if this is the best selection...Humm... I'll have to punt this to either Mark or Frodo.
the numbers are half-clock-cycle times in microseconds. So 80 means a clock of approx. 6 kHz which is really slow. Don't know what the difference between udelay and mdelay is, have always seen them the same.
Quoted 13 lines · Abraham vd Merwe
Hi Mark!
Quoted 10 lines
Quoted 9 lines
Quoted 4 lines
2) There is 3 fields in the
i2c_algo_bit_datastructure for timing: udelay, mdelay, timeout. What should I make this? I've made them 80, 80, 100 respectively (stolen from Russell King's acorn RTC driver), but I'm not sure if this is the best selection...Humm... I'll have to punt this to either Mark or Frodo.
Quoted 9 lines
Quoted 4 lines
the numbers are half-clock-cycle times in microseconds. So 80 means a clock of approx. 6 kHz which is really slow. Don't know what the difference between udelay and mdelay is, have always seen them the same.
Why is this clock fixed? Surely, slow chips on the bus will delay the bus as long as necessary?
well, you have to start somewhere.
Slaves can stretch the clock lower, if they support it (don't count on it).
But you can't go any faster than the rate you set in algo-bit. see the algo-bit code and you'll see how it works.