All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] drivers: spi: Add MT25U01G part number for SPI NOR Flash
@ 2023-08-04  2:27 Jit Loon Lim
  2023-12-14 18:12 ` Jagan Teki
  0 siblings, 1 reply; 2+ messages in thread
From: Jit Loon Lim @ 2023-08-04  2:27 UTC (permalink / raw)
  To: u-boot
  Cc: Jagan Teki, Marek, Simon, Tien Fong, Kok Kiang, Dinesh,
	Boon Khai, Alif, Teik Heng, Hazim, Jit Loon Lim, Sieu Mun Tang

MT25QU01 OPN with 4B OPCODE support is currently not supported in
source code and the driver reuses the definition for "n25q00a"
which has the same silicon ID but is a slower part.

Adding mt25u01g definition to the source code to support a faster
read response for MT25QU01 QSPI NOR Flash device.

Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
---
 drivers/mtd/spi/spi-nor-ids.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c
index 3ca46330bb..1b2e88cd26 100644
--- a/drivers/mtd/spi/spi-nor-ids.c
+++ b/drivers/mtd/spi/spi-nor-ids.c
@@ -311,6 +311,8 @@ const struct flash_info spi_nor_ids[] = {
 	{ INFO6("mt25ql512a",  0x20ba20, 0x104400, 64 * 1024, 1024, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
 	{ INFO("n25q512ax3",  0x20ba20, 0, 64 * 1024, 1024, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ) },
 	{ INFO("n25q00",      0x20ba21, 0, 64 * 1024, 2048, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) },
+	{ INFO6("mt25qu01g",  0x20bb21, 0x104400, 64 * 1024, 2048, SECT_4K | USE_FSR |
+SPI_NOR_QUAD_READ | NO_CHIP_ERASE | SPI_NOR_4B_OPCODES) },
 	{ 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) },
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v1] drivers: spi: Add MT25U01G part number for SPI NOR Flash
  2023-08-04  2:27 [PATCH v1] drivers: spi: Add MT25U01G part number for SPI NOR Flash Jit Loon Lim
@ 2023-12-14 18:12 ` Jagan Teki
  0 siblings, 0 replies; 2+ messages in thread
From: Jagan Teki @ 2023-12-14 18:12 UTC (permalink / raw)
  To: Jit Loon Lim
  Cc: u-boot, Marek, Simon, Tien Fong, Kok Kiang, Dinesh, Boon Khai,
	Alif, Teik Heng, Hazim, Sieu Mun Tang

On Fri, Aug 4, 2023 at 7:57 AM Jit Loon Lim <jit.loon.lim@intel.com> wrote:
>
> MT25QU01 OPN with 4B OPCODE support is currently not supported in
> source code and the driver reuses the definition for "n25q00a"
> which has the same silicon ID but is a slower part.
>
> Adding mt25u01g definition to the source code to support a faster
> read response for MT25QU01 QSPI NOR Flash device.
>
> Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
> ---

Applied u-boot-spi/master

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-14 18:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-04  2:27 [PATCH v1] drivers: spi: Add MT25U01G part number for SPI NOR Flash Jit Loon Lim
2023-12-14 18:12 ` Jagan Teki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.