diff options
| author | David Brownell <david-b@pacbell.net> | 2007-02-12 03:52:48 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:31 -0500 |
| commit | b587b13a4f670ebae79ae6259cf44328455e4e69 (patch) | |
| tree | 36e614fae95d8a2c888190d162e67ec95d144304 /drivers/spi/Kconfig | |
| parent | 3925a5ce44330767f7f0de5c58c6a797009f0f75 (diff) | |
[PATCH] SPI eeprom driver
This is adds a simple SPI EEPROM driver, providing access to the EEPROM
through sysfs much like the I2C "eeprom" driver ... except this driver
supports write access, and multiple EEPROM sizes.
From: "Tuppa, Walter" <walter.tuppa@siemens.com>
Since I have EEPROMs on SPI with different address sizing, I made some
changes to your at25.c to support them. Works perfectly. (Also includes a
small bugfix for the "what size address" test.)
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Walter Tuppa <walter.tuppa@siemens.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/spi/Kconfig')
| -rw-r--r-- | drivers/spi/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index b217a65453f5..9052f4c3493b 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig | |||
| @@ -135,6 +135,16 @@ config SPI_S3C24XX_GPIO | |||
| 135 | comment "SPI Protocol Masters" | 135 | comment "SPI Protocol Masters" |
| 136 | depends on SPI_MASTER | 136 | depends on SPI_MASTER |
| 137 | 137 | ||
| 138 | config SPI_AT25 | ||
| 139 | tristate "SPI EEPROMs from most vendors" | ||
| 140 | depends on SPI_MASTER && SYSFS | ||
| 141 | help | ||
| 142 | Enable this driver to get read/write support to most SPI EEPROMs, | ||
| 143 | after you configure the board init code to know about each eeprom | ||
| 144 | on your target board. | ||
| 145 | |||
| 146 | This driver can also be built as a module. If so, the module | ||
| 147 | will be called at25. | ||
| 138 | 148 | ||
| 139 | # | 149 | # |
| 140 | # Add new SPI protocol masters in alphabetical order above this line | 150 | # Add new SPI protocol masters in alphabetical order above this line |
