Skip to content

Commit

Permalink
misc/eeprom: add driver for microwire 93xx46 EEPROMs
Browse files Browse the repository at this point in the history
Add EEPROM driver for 93xx46 chips.  It can also be used with spi_gpio
driver to access 93xx46 EEPROMs connected over GPIO lines.  This driver
supports read/write/erase access to the EEPROM chips over sysfs files.

[[email protected]: fix printk format]
Signed-off-by: Anatolij Gustschin <[email protected]>
Cc: Jonathan Cameron <[email protected]>
Cc: Grant Likely <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
vdsao authored and torvalds committed Jul 26, 2011
1 parent 6e60c02 commit 06b4501
Show file tree
Hide file tree
Showing 4 changed files with 442 additions and 0 deletions.
13 changes: 13 additions & 0 deletions drivers/misc/eeprom/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,17 @@ config EEPROM_93CX6

If unsure, say N.

config EEPROM_93XX46
tristate "Microwire EEPROM 93XX46 support"
depends on SPI && SYSFS
help
Driver for the microwire EEPROM chipsets 93xx46x. The driver
supports both read and write commands and also the command to
erase the whole EEPROM.

This driver can also be built as a module. If so, the module
will be called eeprom_93xx46.

If unsure, say N.

endmenu
1 change: 1 addition & 0 deletions drivers/misc/eeprom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ obj-$(CONFIG_EEPROM_AT25) += at25.o
obj-$(CONFIG_EEPROM_LEGACY) += eeprom.o
obj-$(CONFIG_EEPROM_MAX6875) += max6875.o
obj-$(CONFIG_EEPROM_93CX6) += eeprom_93cx6.o
obj-$(CONFIG_EEPROM_93XX46) += eeprom_93xx46.o
Loading

0 comments on commit 06b4501

Please sign in to comment.