summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorChristoph Reiter <[email protected]>2025-08-25 05:53:58 +0000
committerTom Rini <[email protected]>2026-02-20 10:39:19 -0600
commit311f9237613d71ac1807db59c16c2250076e9957 (patch)
tree794c32a1ce575e75dc3eaee0af77a4ee6b9f71d3 /drivers
parentcf6aa7cf731d3b1b296802e47e9800b0d6bed65a (diff)
mtd: spi-nor-ids: Add Fujitsu MB85RS256TY FRAM
This part is an FRAM, but can be used through the spi-nor generic code. Signed-off-by: [email protected]
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/spi/Kconfig6
-rw-r--r--drivers/mtd/spi/spi-nor-ids.c13
2 files changed, 19 insertions, 0 deletions
diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig
index a13c7fc60e6..56f6fb70acd 100644
--- a/drivers/mtd/spi/Kconfig
+++ b/drivers/mtd/spi/Kconfig
@@ -292,4 +292,10 @@ config SPL_SPI_FLASH_MTD
If unsure, say N
+config SPI_FRAM_FUJITSU
+ bool "Fujitsu SPI FRAM support"
+ help
+ Add support for the Fujitsu MB85RS256TY FRAM chip. It's treated the same
+ as SPI NOR flash at the moment.
+
endmenu # menu "SPI Flash Support"
diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c
index a292d0ad9f6..04f6c4d955e 100644
--- a/drivers/mtd/spi/spi-nor-ids.c
+++ b/drivers/mtd/spi/spi-nor-ids.c
@@ -86,6 +86,19 @@ const struct flash_info spi_nor_ids[] = {
{ INFO("en25qh128", 0x1c7018, 0, 64 * 1024, 256, 0) },
{ INFO("en25s64", 0x1c3817, 0, 64 * 1024, 128, SECT_4K) },
#endif
+#ifdef CONFIG_SPI_FRAM_FUJITSU
+ /* Fujitsu MB85RS256TY */
+ {
+ INFO_NAME("mb85rs256ty")
+ .id = {0x04, 0x7f, 0x25, 0x00, 0x00},
+ .id_len = 3,
+ .sector_size = 32 * 1024,
+ .n_sectors = 1,
+ .page_size = 32 * 1024, /* Whole chip can be written at once */
+ .flags = SPI_NOR_NO_ERASE,
+ .addr_width = 2,
+ },
+#endif
#ifdef CONFIG_SPI_FLASH_GIGADEVICE /* GIGADEVICE */
/* GigaDevice */
{