mtd: spi-nor: Add support for Micron n25q032a
Subsystems (2)
PATCH 1/1 mtd: spi-nor: Add support for Micron n25q032a
The N25Q032A is identical to the N25Q032 except it has a different supply voltage range. Therefore, it has a new JEDEC ID.
--- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/spi-nor.c +1 -0
@@ -585,6 +585,7 @@ static const struct flash_info spi_nor_ids[] = {/* Micron */ { "n25q032", INFO(0x20ba16, 0, 64 * 1024, 64, SPI_NOR_QUAD_READ) }, + { "n25q032a", INFO(0x20bb16, 0, 64 * 1024, 64, SPI_NOR_QUAD_READ) }, { "n25q064", INFO(0x20ba17, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_QUAD_READ) }, { "n25q064a", INFO(0x20bb17, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_QUAD_READ) }, { "n25q128a11", INFO(0x20bb18, 0, 64 * 1024, 256, SPI_NOR_QUAD_READ) },
Signature · 1 line
2.1.4
Brian Norris
AppliedQuoted 4 lines · Aurelien Chanot
The N25Q032A is identical to the N25Q032 except it has a different supply voltage range. Therefore, it has a new JEDEC ID.
Signed-off-by Aurelien Chanot <[email protected]>
Applied to l2-mtd.git
drivers/mtd/spi-nor/spi-nor.c static const struct flash_info spi_nor_ids[] = { · line 588
Quoted 13 lines
--- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+)drivers/mtd/spi-nor/spi-nor.c +1
-0@@ -585,6 +585,7 @@ static const struct flash_info spi_nor_ids[] = {/* Micron */ { "n25q032", INFO(0x20ba16, 0, 64 * 1024, 64, SPI_NOR_QUAD_READ) }, + { "n25q032a", INFO(0x20bb16, 0, 64 * 1024, 64, SPI_NOR_QUAD_READ) },
I know the original entry doesn't specify this, but does this flash support 4K sectors and dual read? We should add the flags.
Brian
Quoted 3 lines
drivers/mtd/spi-nor/spi-nor.c +0
-0{ "n25q064", INFO(0x20ba17, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_QUAD_READ) }, { "n25q064a", INFO(0x20bb17, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_QUAD_READ) }, { "n25q128a11", INFO(0x20bb18, 0, 64 * 1024, 256, SPI_NOR_QUAD_READ) },
Quoted 18 lines · Brian Norris
Quoted 4 lines · Aurelien Chanot
The N25Q032A is identical to the N25Q032 except it has a different supply voltage range. Therefore, it has a new JEDEC ID.
Signed-off-by Aurelien Chanot <[email protected]>Applied to l2-mtd.git
Quoted 10 lines
--- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+)drivers/mtd/spi-nor/spi-nor.c +0
-0@@ -585,6 +585,7 @@ static const struct flash_info spi_nor_ids[] = {
Quoted 6 lines
drivers/mtd/spi-nor/spi-nor.c static const struct flash_info spi_nor_ids[] = { · line 588
Quoted 3 lines
drivers/mtd/spi-nor/spi-nor.c +1
-0/* Micron */ { "n25q032", INFO(0x20ba16, 0, 64 * 1024, 64, SPI_NOR_QUAD_READ) }, + { "n25q032a", INFO(0x20bb16, 0, 64 * 1024, 64, SPI_NOR_QUAD_READ) },I know the original entry doesn't specify this, but does this flash support 4K sectors and dual read? We should add the flags.
Yes it does support 4k erase subsectors and, quad and dual fast read.
We can create a new patch to update the flags.
Quoted 7 lines
Brian
Quoted 3 lines
drivers/mtd/spi-nor/spi-nor.c +0
-0{ "n25q064", INFO(0x20ba17, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_QUAD_READ) }, { "n25q064a", INFO(0x20bb17, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_QUAD_READ) }, { "n25q128a11", INFO(0x20bb18, 0, 64 * 1024, 256, SPI_NOR_QUAD_READ) },