linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
To: "Sachin Rane" <SRane@alphion.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Need help to write I2C EEPROM device driver
Date: Wed, 27 Sep 2006 16:51:21 +0200	[thread overview]
Message-ID: <200609271651.22106.matthias.fuchs@esd-electronics.com> (raw)
In-Reply-To: <8584FDC94AFF7640B17B8A89B23B19B34F6593@sbsserver.AlphionCorp.local>

On Wednesday 27 September 2006 16:11, Sachin Rane wrote:
> To access EEPROM using /dev/i2c-<x>, which drivers I need to load?
>  
> Please confirm that I need to load following drivers:
> 1. i2c-core.ko (Core Driver)
> 2. i2c-ibm-iic.ko (Bus Driver)
> 3. i2c-dev.ko (Dev Interface driver)
That looks good.

> Do I need to load 'eeprom.ko'?
No.

> Because in one of the mail from the mailing list, it was mentioned that I 
should not load  ''eeprom.ko" to access the chip using 'dev' interface.
Either use access via /dev/i2c-x or via eeprom driver. I haven't used the 
later one so far. Using both at the same time is probably not possible.

Matthias

>  
> Thanks and Regards,
> Sachin Rane
> 
> ________________________________
> 
> From: Matthias Fuchs [mailto:matthias.fuchs@esd-electronics.com]
> Sent: Wed 9/27/2006 6:21 AM
> To: linuxppc-embedded@ozlabs.org
> Cc: Sachin Rane
> Subject: Re: Need help to write I2C EEPROM device driver
> 
> 
> 
> Hi Sachin,
> 
> there is already a driver for this part in the kernel
> (drivers/i2c/chips/eeprom.c).
> 
> BTW: to do some simple reads and writes to an I2C EEPROM it is very simple 
to
> access the EEPROM via read/write/ioctl through /dev/i2c-<x>. No driver - 
only
> userland code.
> 
> Matthias
> 
> 
> On Tuesday 26 September 2006 16:34, Sachin Rane wrote:
> > Hi,
> > 
> > I am looking for an information to write a device driver to access EEPROM 
IC
> M24C02-WBN6.
> > The EEPROM IC M24C02-WBN is present on the 'ppc440' evaluation board for
> boot strap purpose.
> 
> 
> 

      reply	other threads:[~2006-09-27 14:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-26 14:34 Need help to write I2C EEPROM device driver Sachin Rane
2006-09-27 10:21 ` Matthias Fuchs
2006-09-27 14:11   ` Sachin Rane
2006-09-27 14:51     ` Matthias Fuchs [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200609271651.22106.matthias.fuchs@esd-electronics.com \
    --to=matthias.fuchs@esd-electronics.com \
    --cc=SRane@alphion.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).