at24c i2c EEPROM driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I ran into one too many board with an I2C EEPROM that Linux handled poorly,
and got a hack attack.  Here's the result ... tested on at24c04 but it
should work on most other chips in the at24c series without much effort.
(Including on the at24c1024, 1 MBit of EEPROM... more than enough to
hold say "u-Boot", along with product config data.)

If someone wants to pick this up and do things with this, feel free; there's
an obvious gap in how it initializes, since these chips can't very usefully
be probed.  I have no current plans to submit this, but feel free to fling
patches my way.

This is modeled more or less after "eeprom" but of course it handles not
only read/write access, but also chips with more than 2 Kbits of storage.
So there's the notion that on some systems it might replace "eeprom".

- Dave

 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: at24c.patch
Type: text/x-diff
Size: 14851 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20050711/10f5b0bc/attachment.bin 


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux