Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Jander and committed by
Miquel Raynal
02ba194f 5b68d4d2

+14
+14
drivers/mtd/devices/mchp48l640.c
··· 303 303 .auto_disable_wel = true, 304 304 }; 305 305 306 + static const struct mchp48_caps mb85rs128ty_caps = { 307 + .size = SZ_16K, 308 + .page_size = 256, 309 + .auto_disable_wel = false, 310 + }; 311 + 306 312 static int mchp48l640_probe(struct spi_device *spi) 307 313 { 308 314 struct mchp48l640_flash *flash; ··· 367 361 .compatible = "microchip,48l640", 368 362 .data = &mchp48l640_caps, 369 363 }, 364 + { 365 + .compatible = "fujitsu,mb85rs128ty", 366 + .data = &mb85rs128ty_caps, 367 + }, 370 368 {} 371 369 }; 372 370 MODULE_DEVICE_TABLE(of, mchp48l640_of_table); ··· 379 369 { 380 370 .name = "48l640", 381 371 .driver_data = (kernel_ulong_t)&mchp48l640_caps, 372 + }, 373 + { 374 + .name = "mb85rs128ty", 375 + .driver_data = (kernel_ulong_t)&mb85rs128ty_caps, 382 376 }, 383 377 {} 384 378 };