Skip to contentSkip to conversation

resend [PATCH] misc: eeprom: at25: add Cypress FRAM functionality

PATCH Jiří Prchal 1 participant 1 message May 21, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

This patch adds functionality for Cypress FRAMs on SPI bus, such as FM25V05, FM25V10 etc.
Added to at25 driver:
- reading device ID and choose size and addr len from it
- serial number reading and exporting it to sysfs
- new compatible string

---
Moved changes back to at25.c as Wolfram Sang coment "too much copied code".

 drivers/misc/eeprom/Kconfig |   5 +-
 drivers/misc/eeprom/at25.c  | 205 ++++++++++++++++++++++++++++++++++++++++----
 2 files changed, 189 insertions(+), 21 deletions(-)
drivers/misc/eeprom/Kconfig +3 -2
index 9536852f..130a538 100644
@@ -28,10 +28,11 @@ config EEPROM_AT24
 	  will be called at24.
 
 config EEPROM_AT25
-	tristate "SPI EEPROMs from most vendors"
+	tristate "SPI EEPROMs (FRAMs) from most vendors"
 	depends on SPI && SYSFS
 	help
-	  Enable this driver to get read/write support to most SPI EEPROMs,
+	  Enable this driver to get read/write support to most SPI EEPROMs
+	  and Cypress FRAMs,
 	  after you configure the board init code to know about each eeprom
 	  on your target board.
 
drivers/misc/eeprom/at25.c +186 -19

319 lines not on this page · raw message

--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html