<HTML dir=ltr><HEAD><TITLE>Re: Need help to write I2C EEPROM device driver</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText13813 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>
<DIV id=idOWAReplyText67499 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi <FONT face=Tahoma>Matthias</FONT>,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Thanks for reply.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>To access EEPROM using <FONT face="Times New Roman">/dev/i2c-&lt;x&gt;</FONT>, which drivers I need to load?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Please confirm that I need to load following drivers:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>1. i2c-core.ko (Core Driver)</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>2. i2c-ibm-iic.ko (Bus Driver)</FONT></DIV></DIV>
<DIV dir=ltr>3. i2c-dev.ko (Dev Interface driver)</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>Do I need to load 'eeprom.ko'?</DIV>
<DIV dir=ltr>Because in one of the mail from the mailing list, it was mentioned that I should not&nbsp;load&nbsp;&nbsp;''eeprom.ko" to&nbsp;access the chip&nbsp;using 'dev'&nbsp;interface.</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>Thanks and Regards,</DIV>
<DIV dir=ltr>Sachin Rane</DIV></FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Matthias Fuchs [mailto:matthias.fuchs@esd-electronics.com]<BR><B>Sent:</B> Wed 9/27/2006 6:21 AM<BR><B>To:</B> linuxppc-embedded@ozlabs.org<BR><B>Cc:</B> Sachin Rane<BR><B>Subject:</B> Re: Need help to write I2C EEPROM device driver<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hi Sachin,<BR><BR>there is already a driver for this part in the kernel<BR>(drivers/i2c/chips/eeprom.c).<BR><BR>BTW: to do some simple reads and writes to an I2C EEPROM it is very simple to<BR>access the EEPROM via read/write/ioctl through /dev/i2c-&lt;x&gt;. No driver - only<BR>userland code.<BR><BR>Matthias<BR><BR><BR>On Tuesday 26 September 2006 16:34, Sachin Rane wrote:<BR>&gt; Hi,<BR>&gt;&nbsp;<BR>&gt; I am looking for an information to write a device driver to access EEPROM IC<BR>M24C02-WBN6.<BR>&gt; The EEPROM IC M24C02-WBN is present on the 'ppc440' evaluation board for<BR>boot strap purpose.<BR></FONT></P></DIV></BODY></HTML>