mtd: spi-nor: macronix: Add support for mx25l51245g
authorMason Yang <masonccyang@mxic.com.tw>
Thu, 23 Apr 2020 08:38:42 +0000 (16:38 +0800)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Tue, 28 Apr 2020 07:02:15 +0000 (10:02 +0300)
mx25l51245g is a mass production for new design and
replace mx66l51235l(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 ab0f963d630c10c89f6c6c586471b44cfb73c3f7..c864ac811a782587b9ca8b50fe653d00b2c5aedc 100644 (file)
@@ -67,6 +67,9 @@ static const struct flash_info macronix_parts[] = {
                              SECT_4K | SPI_NOR_DUAL_READ |
                              SPI_NOR_QUAD_READ) },
        { "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) },
+       { "mx25l51245g", INFO(0xc2201a, 0, 64 * 1024, 1024,
+                             SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
+                             SPI_NOR_4B_OPCODES) },
        { "mx66l51235l", INFO(0xc2201a, 0, 64 * 1024, 1024,
                              SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
                              SPI_NOR_4B_OPCODES) },