Hi,<br><br>Same bus driver(+ or - algo driver) can be used for multiple device controllers if they are identical in architecture as well as in algorithm.<br><br>So, ID may decide the BASE register address for the device controllers within same bus driver.<br>
i2c_register_board_info() will tell the bus driver that i2c chip is connected with which controller and accordingly bus driver will communicate with that controller.<br><br>So, two different i2c chip can be connected to same or different controller (and hence different SDA &amp; SCL lines) but using same bus driver.<br>
<br>Your GPIO lines must be muxed with controller lines. Other wise you can use bitbanging driver also. <br><br>regards,<br>Tirtha<br> <br><br><div class="gmail_quote">On Thu, Feb 17, 2011 at 1:36 PM, manikanta <span dir="ltr">&lt;<a href="mailto:manikanta4u@gmail.com">manikanta4u@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>i2c_register_board_info- first parameter defines the bus number</div><div>and this should match with the id for the device (which is resident</div>
<div>on the I2C bus) while registering in board initialization files.</div>
<div><br></div><div>AFAIK this bus number is basically an identifer to distinguish between</div><div>different I2C bus drivers.Am i right??</div><div><br></div><div>If yes then in our platform we have only one I2C bus driver then why do</div>

<div>we have to give different bus numbers??</div><div><br></div><div>Our devices are connected to different SDA and SCL lines(gpios basically) and </div><div>for which we are using different bus numbers but we have common I2C driver.</div>

<div>So why different bus numbers???</div>
<br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br>