]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mtd: spi-nor: macronix: Add support for mx25u51245g
authorMason Yang <masonccyang@mxic.com.tw>
Thu, 23 Apr 2020 08:38:43 +0000 (16:38 +0800)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Tue, 28 Apr 2020 07:21:38 +0000 (10:21 +0300)
mx25u51245g is a mass production for new design and
replace mx66u51235f(phase out).

Validated by read, erase, read back, write and read back
on Xilinx Zynq PicoZed FPGA board which included
Macronix SPI Host (driver/spi/spi-mxic.c).

Signed-off-by: Mason Yang <masonccyang@mxic.com.tw>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
drivers/mtd/spi-nor/macronix.c

index c864ac811a782587b9ca8b50fe653d00b2c5aedc..96735d83c77c3d80bf9b846a9ff384ae994a2699 100644 (file)
@@ -63,6 +63,9 @@ static const struct flash_info macronix_parts[] = {
                .fixups = &mx25l25635_fixups },
        { "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512,
                              SECT_4K | SPI_NOR_4B_OPCODES) },
+       { "mx25u51245g", INFO(0xc2253a, 0, 64 * 1024, 1024,
+                             SECT_4K | SPI_NOR_DUAL_READ |
+                             SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
        { "mx25v8035f",  INFO(0xc22314, 0, 64 * 1024,  16,
                              SECT_4K | SPI_NOR_DUAL_READ |
                              SPI_NOR_QUAD_READ) },