summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Jander <david@protonic.nl>2024-12-03 11:38:37 +0100
committerMiquel Raynal <miquel.raynal@bootlin.com>2024-12-05 11:28:29 +0100
commit02ba194feacb994d6ed8dd60550a2dcf213e256d (patch)
treea6c09b748519aa88382d353086ad358e303b51f8
parent5b68d4d2db29fba81adef44513f31731e06f5589 (diff)
downloadlinux-02ba194feacb994d6ed8dd60550a2dcf213e256d.tar.gz
linux-02ba194feacb994d6ed8dd60550a2dcf213e256d.tar.bz2
linux-02ba194feacb994d6ed8dd60550a2dcf213e256d.zip
mtd: mchp48l640: add support for Fujitsu MB85RS128TY FRAM
The Fujitsu FRAM chips use the same command set as Microchip EERAM. The only differences are that the Fujitsu FRAM chips don't really have a page size limit, nor do they automatically reset the WEL bit. Signed-off-by: David Jander <david@protonic.nl> Reviewed-by: Heiko Schocher <hs@denx.de> Signed-off-by: Jonas Rebmann <jre@pengutronix.de> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
-rw-r--r--drivers/mtd/devices/mchp48l640.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/mtd/devices/mchp48l640.c b/drivers/mtd/devices/mchp48l640.c
index 4cdd24aaed41..7584d0ba9396 100644
--- a/drivers/mtd/devices/mchp48l640.c
+++ b/drivers/mtd/devices/mchp48l640.c
@@ -303,6 +303,12 @@ static const struct mchp48_caps mchp48l640_caps = {
.auto_disable_wel = true,
};
+static const struct mchp48_caps mb85rs128ty_caps = {
+ .size = SZ_16K,
+ .page_size = 256,
+ .auto_disable_wel = false,
+};
+
static int mchp48l640_probe(struct spi_device *spi)
{
struct mchp48l640_flash *flash;
@@ -361,6 +367,10 @@ static const struct of_device_id mchp48l640_of_table[] = {
.compatible = "microchip,48l640",
.data = &mchp48l640_caps,
},
+ {
+ .compatible = "fujitsu,mb85rs128ty",
+ .data = &mb85rs128ty_caps,
+ },
{}
};
MODULE_DEVICE_TABLE(of, mchp48l640_of_table);
@@ -370,6 +380,10 @@ static const struct spi_device_id mchp48l640_spi_ids[] = {
.name = "48l640",
.driver_data = (kernel_ulong_t)&mchp48l640_caps,
},
+ {
+ .name = "mb85rs128ty",
+ .driver_data = (kernel_ulong_t)&mb85rs128ty_caps,
+ },
{}
};
MODULE_DEVICE_TABLE(spi, mchp48l640_spi_ids);