diff mbox series

[5.10.y-cip,1/8] mtd: spi-nor: atmel: Add support for AT25QL128A serial NOR flash

Message ID 20241206090524.66639-2-prabhakar.mahadev-lad.rj@bp.renesas.com (mailing list archive)
State New
Headers show
Series Add RPC-IF support for RZ/G2UL SoC | expand

Commit Message

Prabhakar Dec. 6, 2024, 9:05 a.m. UTC
In the upstream kernel, the generic SPI-NOR driver parses the SFDP
information to detect flash chips. However, this functionality is missing
in the 5.10-cip kernel. To enable detection of the AT25QL128A serial NOR
flash on 5.10-cip, this patch adds an entry for the chip in the driver.

Link for the AT25QL128A serial NOR flash datasheet:
https://www.renesas.com/en/document/dst/at25ql128a-datasheet?r=1608586

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 drivers/mtd/spi-nor/atmel.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/mtd/spi-nor/atmel.c b/drivers/mtd/spi-nor/atmel.c
index deacf87a68a0..c3e539562c28 100644
--- a/drivers/mtd/spi-nor/atmel.c
+++ b/drivers/mtd/spi-nor/atmel.c
@@ -70,6 +70,7 @@  static const struct flash_info atmel_parts[] = {
 	{ "at25sl321",	INFO(0x1f4216, 0, 64 * 1024, 64,
 			     SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
 
+	{ "at25ql128a", INFO(0x1f4218, 0, 64 * 1024,  256, SECT_4K | SPI_NOR_QUAD_READ) },
 	{ "at26f004",   INFO(0x1f0400, 0, 64 * 1024,  8, SECT_4K) },
 	{ "at26df081a", INFO(0x1f4501, 0, 64 * 1024, 16, SECT_4K | SPI_NOR_HAS_LOCK) },
 	{ "at26df161a", INFO(0x1f4601, 0, 64 * 1024, 32, SECT_4K | SPI_NOR_HAS_LOCK) },