Skip to contentSkip to conversation

sf: Add Macronix MX25R6435F SPI NOR flash to flash parameters array

PATCH New Ye Li 3 participants 3 messages Jan 7, 2019 – Feb 15, 2019 Memory technology devices (MTD)

lore
Share & tools
lore

Ye Li

author
#0 lore raw

PATCH 1/1 sf: Add Macronix MX25R6435F SPI NOR flash to flash parameters array

On i.MX7ULP EVK board, we use MX25R6435F NOR flash, add its parameters and IDs to flash parameter array. Otherwise, the flash probe will fails.

---
 drivers/mtd/spi/spi_flash_ids.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi/spi_flash_ids.c +1 -0
index ad0a0c8..17f9893 100644
@@ -94,6 +94,7 @@ const struct spi_flash_info spi_flash_ids[] = {
 	{"mx25u25635f",    INFO(0xc22539, 0x0, 64 * 1024,   512, RD_FULL | WR_QPP) },
 	{"mx66u51235f",    INFO(0xc2253a, 0x0, 64 * 1024,  1024, RD_FULL | WR_QPP) },
 	{"mx66l1g45g",     INFO(0xc2201b, 0x0, 64 * 1024,  2048, RD_FULL | WR_QPP) },
+	{"mx25r6435f",     INFO(0xc22817, 0x0, 64 * 1024,  128, RD_FULL | SECT_4K) },
 #endif
 #ifdef CONFIG_SPI_FLASH_SPANSION	/* SPANSION */
 	{"s25fl008a",	   INFO(0x010213, 0x0, 64 * 1024,    16, 0) },
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 sf: Add Macronix MX25R6435F SPI NOR flash to flash parameters array

+ Vignesh

Quoted 14 lines · Ye Li

On i.MX7ULP EVK board, we use MX25R6435F NOR flash, add its parameters and IDs to flash parameter array. Otherwise, the flash probe will fails.

---
 drivers/mtd/spi/spi_flash_ids.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi/spi_flash_ids.c +0 -0
index ad0a0c8..17f9893 100644

drivers/mtd/spi/spi_flash_ids.c const struct spi_flash_info spi_flash_ids[] = { · line 97

Quoted 4 lines
drivers/mtd/spi/spi_flash_ids.c +1 -0
@@ -94,6 +94,7 @@ const struct spi_flash_info spi_flash_ids[] = {
        {"mx25u25635f",    INFO(0xc22539, 0x0, 64 * 1024,   512, RD_FULL | WR_QPP) },
        {"mx66u51235f",    INFO(0xc2253a, 0x0, 64 * 1024,  1024, RD_FULL | WR_QPP) },
        {"mx66l1g45g",     INFO(0xc2201b, 0x0, 64 * 1024,  2048, RD_FULL | WR_QPP) },
+       {"mx25r6435f",     INFO(0xc22817, 0x0, 64 * 1024,  128, RD_FULL | SECT_4K) },

Look like this would also support WR_QPP, how about updating the same?

maintainer
#2 lore raw

PATCH 1/1 sf: Add Macronix MX25R6435F SPI NOR flash to flash parameters array

Quoted 10 lines · Jagan Teki

+ Vignesh

Quoted 7 lines · Ye Li

On i.MX7ULP EVK board, we use MX25R6435F NOR flash, add its parameters and IDs to flash parameter array. Otherwise, the flash probe will fails.

---
 drivers/mtd/spi/spi_flash_ids.c | 1 +

This file no longer exists after recent SPI NOR migration. Could you rebase on the latest? The capabilities flags are now same as kernel.

Quoted 14 lines

drivers/mtd/spi/spi_flash_ids.c const struct spi_flash_info spi_flash_ids[] = { · line 97

Quoted 11 lines
 1 file changed, 1 insertion(+)
drivers/mtd/spi/spi_flash_ids.c +1 -0
index ad0a0c8..17f9893 100644
@@ -94,6 +94,7 @@ const struct spi_flash_info spi_flash_ids[] = {
        {"mx25u25635f",    INFO(0xc22539, 0x0, 64 * 1024,   512, RD_FULL | WR_QPP) },
        {"mx66u51235f",    INFO(0xc2253a, 0x0, 64 * 1024,  1024, RD_FULL | WR_QPP) },
        {"mx66l1g45g",     INFO(0xc2201b, 0x0, 64 * 1024,  2048, RD_FULL | WR_QPP) },
+       {"mx25r6435f",     INFO(0xc22817, 0x0, 64 * 1024,  128, RD_FULL | SECT_4K) },

Look like this would also support WR_QPP, how about updating the same?

Signature · 2 lines
Regards
Vignesh