]> Gentwo Git Trees - linux/.git/commitdiff
mtd: spi-nor: micron-st: use SFDP of mt35xu512aba
authorHaibo Chen <haibo.chen@nxp.com>
Wed, 12 Nov 2025 11:05:11 +0000 (19:05 +0800)
committerPratyush Yadav <pratyush@kernel.org>
Tue, 18 Nov 2025 12:01:37 +0000 (13:01 +0100)
mt35xu512aba has SFDP, already contain the necessary
information, so remove size and some flags here.

Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
drivers/mtd/spi-nor/micron-st.c

index 81a9bead1434056cce0893c97bd35ea248c15894..9a8f82045e4d89f94d005086eb012cc0b3f11cfd 100644 (file)
@@ -187,14 +187,10 @@ static const struct spi_nor_fixups mt35xu512aba_fixups = {
 
 static const struct flash_info micron_nor_parts[] = {
        {
+               /* MT35XU512ABA */
                .id = SNOR_ID(0x2c, 0x5b, 0x1a),
-               .name = "mt35xu512aba",
-               .sector_size = SZ_128K,
-               .size = SZ_64M,
-               .no_sfdp_flags = SECT_4K | SPI_NOR_OCTAL_READ |
-                                SPI_NOR_OCTAL_DTR_READ | SPI_NOR_OCTAL_DTR_PP,
                .mfr_flags = USE_FSR,
-               .fixup_flags = SPI_NOR_4B_OPCODES | SPI_NOR_IO_MODE_EN_VOLATILE,
+               .fixup_flags = SPI_NOR_IO_MODE_EN_VOLATILE,
                .fixups = &mt35xu512aba_fixups,
        }, {
                .id = SNOR_ID(0x2c, 0x5b, 0x1c),