Skip to content

Commit 02ba194

Browse files
yopemiquelraynal
authored andcommitted
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 <[email protected]> Reviewed-by: Heiko Schocher <[email protected]> Signed-off-by: Jonas Rebmann <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent 5b68d4d commit 02ba194

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

drivers/mtd/devices/mchp48l640.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,12 @@ static const struct mchp48_caps mchp48l640_caps = {
303303
.auto_disable_wel = true,
304304
};
305305

306+
static const struct mchp48_caps mb85rs128ty_caps = {
307+
.size = SZ_16K,
308+
.page_size = 256,
309+
.auto_disable_wel = false,
310+
};
311+
306312
static int mchp48l640_probe(struct spi_device *spi)
307313
{
308314
struct mchp48l640_flash *flash;
@@ -361,6 +367,10 @@ static const struct of_device_id mchp48l640_of_table[] = {
361367
.compatible = "microchip,48l640",
362368
.data = &mchp48l640_caps,
363369
},
370+
{
371+
.compatible = "fujitsu,mb85rs128ty",
372+
.data = &mb85rs128ty_caps,
373+
},
364374
{}
365375
};
366376
MODULE_DEVICE_TABLE(of, mchp48l640_of_table);
@@ -370,6 +380,10 @@ static const struct spi_device_id mchp48l640_spi_ids[] = {
370380
.name = "48l640",
371381
.driver_data = (kernel_ulong_t)&mchp48l640_caps,
372382
},
383+
{
384+
.name = "mb85rs128ty",
385+
.driver_data = (kernel_ulong_t)&mb85rs128ty_caps,
386+
},
373387
{}
374388
};
375389
MODULE_DEVICE_TABLE(spi, mchp48l640_spi_ids);

0 commit comments

Comments
 (0)