linux/drivers/mtd/spi-nor
Miquel Raynal 3a8ab4a13d For SPI NOR we cleaned the flash info entries in order to have
them slimmer and self explanatory. In order to make the entries
 as slim as possible, we introduced sane default values so that
 the actual flash entries don't need to specify them. We now use
 a flexible macro to specify the flash ID instead of the previous
 INFOx() macros that had hardcoded ID lengths.
 
 Instead of:
 -       { "w25q512nwm", INFO(0xef8020, 0, 64 * 1024, 0)
 -               OTP_INFO(256, 3, 0x1000, 0x1000) },
 
 We now use:
 +               .id = SNOR_ID(0xef, 0x80, 0x20),
 +               .name = "w25q512nwm",
 +               .otp = SNOR_OTP(256, 3, 0x1000, 0x1000),
 
 We also removed some flash entries: the very old Catalyst
 SPI EEPROMs that were introduced once with the SPI-NOR subsystem,
 and a Fujitsu MRAM. Both should use the at25 EEPROM driver.
 The latter even has device tree bindings for the at25 driver.
 
 We made sure that the conversion didn't introduce any unwanted
 changes by comparing the .rodata segment before and after the
 conversion. The patches landed in linux-next immediately after
 v6.6-rc2, we haven't seen any regressions yet.
 
 Apart of the autumn cleaning we introduced a new flash entry,
 at25ff321a, and added block protection support for mt25qu512a.
 -----BEGIN PGP SIGNATURE-----
 
 iQEzBAABCgAdFiEEHUIqys8OyG1eHf7fS1VPR6WNFOkFAmUvhfgACgkQS1VPR6WN
 FOlQUAf/ZFUi5nktXOERKghKIwQulTIWdxsV2ZitezzFEPeObHaXR/kiF53mKbyS
 txutJglHFYpsLaLptGwrUja2bWVI5OEZCLknIsRRPH4wy3aWlyef1yonl6//U/O9
 lWLEKcUFgsmJKTe+Ga6BWJFBlExCfhPM6Hu9q3O/z0cV107fNdHBo41p9Xvn2B3l
 miNyxhsojdXfDIFexjZHC+kYS5cQv9fRLyBKDvWoAsjSj9HoPt9Y/46x2TKfsJ83
 d8JJH8ABwk6hpgjcTECorqcljsB6FdQ80s+0klmrfqO1UBt0ptrS/OwcmYMuivZn
 urpGYUAWFgFGivBb+nUfG/VgAQ3E7w==
 =qzxq
 -----END PGP SIGNATURE-----

Merge tag 'spi-nor/for-6.7' into mtd/next

For SPI NOR we cleaned the flash info entries in order to have
them slimmer and self explanatory. In order to make the entries
as slim as possible, we introduced sane default values so that
the actual flash entries don't need to specify them. We now use
a flexible macro to specify the flash ID instead of the previous
INFOx() macros that had hardcoded ID lengths.

Instead of:
-       { "w25q512nwm", INFO(0xef8020, 0, 64 * 1024, 0)
-               OTP_INFO(256, 3, 0x1000, 0x1000) },

We now use:
+               .id = SNOR_ID(0xef, 0x80, 0x20),
+               .name = "w25q512nwm",
+               .otp = SNOR_OTP(256, 3, 0x1000, 0x1000),

We also removed some flash entries: the very old Catalyst
SPI EEPROMs that were introduced once with the SPI-NOR subsystem,
and a Fujitsu MRAM. Both should use the at25 EEPROM driver.
The latter even has device tree bindings for the at25 driver.

We made sure that the conversion didn't introduce any unwanted
changes by comparing the .rodata segment before and after the
conversion. The patches landed in linux-next immediately after
v6.6-rc2, we haven't seen any regressions yet.

Apart of the autumn cleaning we introduced a new flash entry,
at25ff321a, and added block protection support for mt25qu512a.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
2023-11-04 11:50:13 +01:00
..
controllers mtd: spi-nor: nxp-spifi: Convert to platform remove callback returning void 2023-10-16 10:56:48 +02:00
atmel.c mtd: spi-nor: atmel: add at25ff321a entry 2023-09-27 11:42:49 +03:00
core.c mtd: spi-nor: rename .otp_org to .otp and make it a pointer 2023-09-19 18:57:50 +03:00
core.h mtd: spi-nor: core: get rid of the INFOx() macros 2023-09-19 18:59:22 +03:00
debugfs.c mtd: spi-nor: Avoid setting SRWD bit in SR if WP# signal not connected 2023-07-13 05:32:09 +03:00
eon.c mtd: spi-nor: eon: sort flash_info database 2023-09-19 18:59:21 +03:00
esmt.c mtd: spi-nor: esmt: convert flash_info to new format 2023-09-19 18:57:50 +03:00
everspin.c mtd: spi-nor: everspin: convert flash_info to new format 2023-09-19 18:59:12 +03:00
gigadevice.c mtd: spi-nor: gigadevice: sort flash_info database 2023-09-19 18:59:21 +03:00
intel.c mtd: spi-nor: intel: convert flash_info to new format 2023-09-19 18:59:19 +03:00
issi.c mtd: spi-nor: issi: sort flash_info database 2023-09-19 18:59:21 +03:00
Kconfig mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
macronix.c mtd: spi-nor: macronix: sort flash_info database 2023-09-19 18:59:21 +03:00
Makefile mtd: spi-nor: remove Fujitsu MB85RS1MT support 2023-09-19 18:49:15 +03:00
micron-st.c mtd: spi-nor: micron-st: use SFDP table for mt25qu512a 2023-10-18 07:47:22 +03:00
otp.c mtd: spi-nor: Reorder the preparation vs. locking steps 2023-03-29 13:46:07 +03:00
sfdp.c mtd: spi-nor: sfdp: Add support for SCCR map for multi-chip device 2023-04-08 09:30:17 +03:00
sfdp.h mtd: spi-nor: Set the 4-Byte Address Mode method based on SFDP data 2023-04-04 09:43:50 +03:00
spansion.c mtd: spi-nor: spansion: sort flash_info database 2023-09-19 18:59:21 +03:00
sst.c mtd: spi-nor: sst: sort flash_info database 2023-09-19 18:59:21 +03:00
swp.c mtd: spi-nor: make sector_size optional 2023-09-19 18:56:29 +03:00
sysfs.c mtd: spi-nor: move the .id and .id_len into an own structure 2023-09-19 18:57:50 +03:00
winbond.c mtd: spi-nor: winbond: sort flash_info entries 2023-09-19 18:59:22 +03:00
xilinx.c mtd: spi-nor: xilinx: use new macros in S3AN_INFO() 2023-09-19 18:59:20 +03:00
xmc.c mtd: spi-nor: xmc: convert flash_info to new format 2023-09-19 18:59:20 +03:00