mtd: spi-nor: esmt: Use correct name of f25l32qa
authorSungbo Eo <mans0n@gorani.run>
Fri, 23 Jul 2021 14:12:32 +0000 (23:12 +0900)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Tue, 19 Jul 2022 10:05:31 +0000 (13:05 +0300)
The flash ID of F25L32QA is 0x8c4016, whereas that of F25L32QA(2S) is
0x8c4116. F25L32QA(2S) is the newer version of F25L32QA and its BPn bits
are non-volatile, unlike its older version.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20210723141232.15659-1-mans0n@gorani.run
Datasheet: https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/F25L32QA.pdf
Datasheet: https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/F25L32QA_1(2S).pdf

drivers/mtd/spi-nor/esmt.c

index 79e2408..fcc3b0e 100644 (file)
@@ -13,7 +13,7 @@ static const struct flash_info esmt_nor_parts[] = {
        { "f25l32pa", INFO(0x8c2016, 0, 64 * 1024, 64)
                FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_SWP_IS_VOLATILE)
                NO_SFDP_FLAGS(SECT_4K) },
-       { "f25l32qa", INFO(0x8c4116, 0, 64 * 1024, 64)
+       { "f25l32qa-2s", INFO(0x8c4116, 0, 64 * 1024, 64)
                FLAGS(SPI_NOR_HAS_LOCK)
                NO_SFDP_FLAGS(SECT_4K) },
        { "f25l64qa", INFO(0x8c4117, 0, 64 * 1024, 128)