nvmem: eeprom: at25: add support for FRAM
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.
Signed-off-by Jiri Prchal <[email protected]>
---
v2: fixed warning at %zd at int
Reported-by kernel test robot <[email protected]>
--- drivers/misc/eeprom/Kconfig | 5 +- drivers/misc/eeprom/at25.c | 151 +++++++++++++++++++++++++++++------- 2 files changed, 124 insertions(+), 32 deletions(-)
drivers/misc/eeprom/Kconfig +3 -2
@@ -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