Skip to contentSkip to conversation

mtd: spi-nor-ids: Reinstate Micron MT25QL02G

PATCH In review Marek Vasut 3 participants 4 messages Oct 5, 2021 – Oct 22, 2021 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mtd: spi-nor-ids: Reinstate Micron MT25QL02G

This ID disappeared in 5b66fdb29dc ("mtd: spi: Remove unused files"), add the ID back, since the chip is used on devices supported by U-Boot.

Fixes 5b66fdb29dc ("mtd: spi: Remove unused files")
Cc Horatiu Vultur <[email protected]>
Cc Jagan Teki <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Stefan Roese <[email protected]>
Cc Vignesh R <[email protected]>

---
V2: Enable 4B opcodes which are supported by this chip

---
 drivers/mtd/spi/spi-nor-ids.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi/spi-nor-ids.c +1 -0
index 4aef1ddd6e2..39af04cf795 100644
@@ -195,6 +195,7 @@ const struct flash_info spi_nor_ids[] = {
 	{ INFO("n25q00a",     0x20bb21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) },
 	{ INFO("mt25ql01g",   0x21ba20, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) },
 	{ INFO("mt25qu02g",   0x20bb22, 0, 64 * 1024, 4096, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) },
+	{ INFO("mt25ql02g",   0x20ba22, 0, 64 * 1024, 4096, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE | SPI_NOR_4B_OPCODES) },
 #ifdef CONFIG_SPI_FLASH_MT35XU
 	{ INFO("mt35xu512aba", 0x2c5b1a, 0,  128 * 1024,  512, USE_FSR | SPI_NOR_OCTAL_READ | SPI_NOR_4B_OPCODES | SPI_NOR_OCTAL_DTR_READ) },
 #endif /* CONFIG_SPI_FLASH_MT35XU */
Signature · 1 line
2.33.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 10 lines · Marek Vasut

This ID disappeared in 5b66fdb29dc ("mtd: spi: Remove unused files"), add the ID back, since the chip is used on devices supported by U-Boot.

Fixes 5b66fdb29dc ("mtd: spi: Remove unused files")
Cc Horatiu Vultur <[email protected]>
Cc Jagan Teki <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Stefan Roese <[email protected]>
Cc Vignesh R <[email protected]>
Quoted 2 lines

---
V2: Enable 4B opcodes which are supported by this chip

Thanks,
Stefan

Quoted 10 lines
---
  drivers/mtd/spi/spi-nor-ids.c | 1 +
  1 file changed, 1 insertion(+)
drivers/mtd/spi/spi-nor-ids.c +0 -0
index 4aef1ddd6e2..39af04cf795 100644

drivers/mtd/spi/spi-nor-ids.c const struct flash_info spi_nor_ids[] = { · line 201

Quoted 7 lines
drivers/mtd/spi/spi-nor-ids.c +1 -0
@@ -195,6 +195,7 @@ const struct flash_info spi_nor_ids[] = {
  	{ INFO("n25q00a",     0x20bb21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) },
  	{ INFO("mt25ql01g",   0x21ba20, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) },
  	{ INFO("mt25qu02g",   0x20bb22, 0, 64 * 1024, 4096, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) },
+	{ INFO("mt25ql02g",   0x20ba22, 0, 64 * 1024, 4096, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE | SPI_NOR_4B_OPCODES) },
  #ifdef CONFIG_SPI_FLASH_MT35XU
  	{ INFO("mt35xu512aba", 0x2c5b1a, 0,  128 * 1024,  512, USE_FSR | SPI_NOR_OCTAL_READ | SPI_NOR_4B_OPCODES | SPI_NOR_OCTAL_DTR_READ) },
  #endif /* CONFIG_SPI_FLASH_MT35XU */

Viele Grüße,
Stefan

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#2 lore raw
In reply to Marek Vasut
Quoted 11 lines · Marek Vasut

This ID disappeared in 5b66fdb29dc ("mtd: spi: Remove unused files"), add the ID back, since the chip is used on devices supported by U-Boot.

Fixes 5b66fdb29dc ("mtd: spi: Remove unused files")
Cc Horatiu Vultur <[email protected]>
Cc Jagan Teki <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Stefan Roese <[email protected]>
Cc Vignesh R <[email protected]>
Quoted 3 lines

---
V2: Enable 4B opcodes which are supported by this chip
---

Applied to u-boot-spi/master

#3 lore raw
Quoted 16 lines · Jagan Teki
Quoted 11 lines · Marek Vasut

This ID disappeared in 5b66fdb29dc ("mtd: spi: Remove unused files"), add the ID back, since the chip is used on devices supported by U-Boot.

Fixes 5b66fdb29dc ("mtd: spi: Remove unused files")
Cc Horatiu Vultur <[email protected]>
Cc Jagan Teki <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Stefan Roese <[email protected]>
Cc Vignesh R <[email protected]>
Quoted 3 lines

---
V2: Enable 4B opcodes which are supported by this chip
---

Quoted 1 line

Applied to u-boot-spi/master

It seems u-boot-spi/master was last updated on August 5th and this patch still isn't in u-boot/master either. Any news ?