Skip to contentSkip to conversation

spi: Add support for N25Q016A

PATCH RESEND Superseded Moritz Fischer 2 participants 3 messages Jul 13, 2016 – Jul 14, 2016 Memory technology devices (MTD)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH RESEND v2 1/1 spi: Add support for N25Q016A

---
 drivers/mtd/spi/sf_params.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi/sf_params.c +1 -0
index 4f37e33..8ae4eea 100644
@@ -83,6 +83,7 @@ const struct spi_flash_params spi_flash_params_table[] = {
 	{"M25P64",	   0x202017, 0x0,       64 * 1024,   128, RD_NORM,			  0},
 	{"M25P128",	   0x202018, 0x0,      256 * 1024,    64, RD_NORM,			  0},
 	{"M25PX64",	   0x207117, 0x0,       64 * 1024,   128, RD_NORM,		    SECT_4K},
+	{"N25Q016A",       0x20bb15, 0x1000,    64 * 1024,    32, RD_NORM,                  SECT_4K},
 	{"N25Q32",	   0x20ba16, 0x0,       64 * 1024,    64, RD_FULL,	   WR_QPP | SECT_4K},
 	{"N25Q32A",	   0x20bb16, 0x0,       64 * 1024,    64, RD_FULL,	   WR_QPP | SECT_4K},
 	{"N25Q64",	   0x20ba17, 0x0,       64 * 1024,   128, RD_FULL,	   WR_QPP | SECT_4K},
Signature · 1 line
2.5.5
#1 lore raw

PATCH RESEND v2 1/1 spi: Add support for N25Q016A

Quoted 10 lines · Moritz Fischer
---
 drivers/mtd/spi/sf_params.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi/sf_params.c +0 -0
index 4f37e33..8ae4eea 100644

drivers/mtd/spi/sf_params.c const struct spi_flash_params spi_flash_params_table[] = { · line 86

Quoted 4 lines
drivers/mtd/spi/sf_params.c +1 -0
@@ -83,6 +83,7 @@ const struct spi_flash_params spi_flash_params_table[] = {
        {"M25P64",         0x202017, 0x0,       64 * 1024,   128, RD_NORM,                        0},
        {"M25P128",        0x202018, 0x0,      256 * 1024,    64, RD_NORM,                        0},
        {"M25PX64",        0x207117, 0x0,       64 * 1024,   128, RD_NORM,                  SECT_4K},
+       {"N25Q016A",       0x20bb15, 0x1000,    64 * 1024,    32, RD_NORM,                  SECT_4K},

Why would we need this ext_id (0x1000) here? I understand this is true number for this part but it shouldn't require for probe or require somewhere else?

thanks!

Signature · 1 line
Jagan.
#2 lore raw

PATCH RESEND v2 1/1 spi: Add support for N25Q016A

Jagan,

thanks for your review!

Quoted 6 lines · Jagan Teki
Quoted 5 lines · Moritz Fischer
---
 drivers/mtd/spi/sf_params.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 13 lines

drivers/mtd/spi/sf_params.c const struct spi_flash_params spi_flash_params_table[] = { · line 86

Quoted 9 lines
drivers/mtd/spi/sf_params.c +1 -0
index 4f37e33..8ae4eea 100644
@@ -83,6 +83,7 @@ const struct spi_flash_params spi_flash_params_table[] = {
        {"M25P64",         0x202017, 0x0,       64 * 1024,   128, RD_NORM,                        0},
        {"M25P128",        0x202018, 0x0,      256 * 1024,    64, RD_NORM,                        0},
        {"M25PX64",        0x207117, 0x0,       64 * 1024,   128, RD_NORM,                  SECT_4K},
+       {"N25Q016A",       0x20bb15, 0x1000,    64 * 1024,    32, RD_NORM,                  SECT_4K},

Why would we need this ext_id (0x1000) here? I understand this is true number for this part but it shouldn't require for probe or require somewhere else?

You're right. I just sent v3.

Cheers,

Moritz