Skip to contentSkip to conversation

nvmem: eeprom: at25: add support for FRAM

PATCH Superseded Jiri Prchal 1 participant 1 message Apr 12, 2021 Char and misc drivers

v2 of 10 Superseded Latest is v10 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 nvmem: eeprom: at25: add support for FRAM

Added support for Cypress FRAMs.
These frams have ID and some of them have serial number too. Size of them is recognized by ID. They don't have pages, it could be read or written at once, but it's limited in this driver to io limit 4096.

---
v2: fixed warning at %zd at int

---
 drivers/misc/eeprom/Kconfig |   5 +-
 drivers/misc/eeprom/at25.c  | 151 +++++++++++++++++++++++++++++-------
 2 files changed, 124 insertions(+), 32 deletions(-)
drivers/misc/eeprom/Kconfig +3 -2
index 0f791bfdc1f5..f0a7531f354c 100644
@@ -32,12 +32,13 @@ 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
 	select NVMEM
 	select NVMEM_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 +121 -30

229 lines not on this page · raw message

Signature · 1 line
2.25.1