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:[EMAIL PROTECTED] > Sent: Wed 9/27/2006 6:21 AM > To: [email protected] > 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. > > > _______________________________________________ Linuxppc-embedded mailing list [email protected] https://ozlabs.org/mailman/listinfo/linuxppc-embedded
