* [PATCH v2] mtd: spi-nor: Add support for Spansion S25FL064L
@ 2017-06-22 19:58 Harry Chou
2017-06-26 21:09 ` Cyrille Pitchen
0 siblings, 1 reply; 2+ messages in thread
From: Harry Chou @ 2017-06-22 19:58 UTC (permalink / raw)
To: cyrille.pitchen
Cc: dwmw2, computersforpeace, boris.brezillon, richard, linux-mtd,
linux-kernel, Harry Chou
It's an 8 MiB flash with 4 KiB erase sectors.
Signed-off-by: Harry Chou <HarryYC.Chou@gmail.com>
---
Changes v1 -> v2:
- added SPI_NOR_DUAL_READ flag (supports Dual Output and I/O)
- added SPI_NOR_QUAD_READ flag (supports Quad Output and I/O)
- added SPI_NOR_4B_OPCODES flag (supports the 4-byte address instruction set)
drivers/mtd/spi-nor/spi-nor.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index dea8c9c..9db5861 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -1076,6 +1076,7 @@ static const struct flash_info spi_nor_ids[] = {
{ "s25fl164k", INFO(0x014017, 0, 64 * 1024, 128, SECT_4K) },
{ "s25fl204k", INFO(0x014013, 0, 64 * 1024, 8, SECT_4K | SPI_NOR_DUAL_READ) },
{ "s25fl208k", INFO(0x014014, 0, 64 * 1024, 16, SECT_4K | SPI_NOR_DUAL_READ) },
+ { "s25fl064l", INFO(0x016017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
/* SST -- large erase sizes are "overlays", "sectors" are 4K */
{ "sst25vf040b", INFO(0xbf258d, 0, 64 * 1024, 8, SECT_4K | SST_WRITE) },
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] mtd: spi-nor: Add support for Spansion S25FL064L
2017-06-22 19:58 [PATCH v2] mtd: spi-nor: Add support for Spansion S25FL064L Harry Chou
@ 2017-06-26 21:09 ` Cyrille Pitchen
0 siblings, 0 replies; 2+ messages in thread
From: Cyrille Pitchen @ 2017-06-26 21:09 UTC (permalink / raw)
To: Harry Chou
Cc: dwmw2, computersforpeace, boris.brezillon, richard, linux-mtd,
linux-kernel
Le 22/06/2017 à 21:58, Harry Chou a écrit :
> It's an 8 MiB flash with 4 KiB erase sectors.
>
> Signed-off-by: Harry Chou <HarryYC.Chou@gmail.com>
Applied to the spi-nor/next branch of l2-mtd
Thanks!
> ---
> Changes v1 -> v2:
> - added SPI_NOR_DUAL_READ flag (supports Dual Output and I/O)
> - added SPI_NOR_QUAD_READ flag (supports Quad Output and I/O)
> - added SPI_NOR_4B_OPCODES flag (supports the 4-byte address instruction set)
>
> drivers/mtd/spi-nor/spi-nor.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
> index dea8c9c..9db5861 100644
> --- a/drivers/mtd/spi-nor/spi-nor.c
> +++ b/drivers/mtd/spi-nor/spi-nor.c
> @@ -1076,6 +1076,7 @@ static const struct flash_info spi_nor_ids[] = {
> { "s25fl164k", INFO(0x014017, 0, 64 * 1024, 128, SECT_4K) },
> { "s25fl204k", INFO(0x014013, 0, 64 * 1024, 8, SECT_4K | SPI_NOR_DUAL_READ) },
> { "s25fl208k", INFO(0x014014, 0, 64 * 1024, 16, SECT_4K | SPI_NOR_DUAL_READ) },
> + { "s25fl064l", INFO(0x016017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
>
> /* SST -- large erase sizes are "overlays", "sectors" are 4K */
> { "sst25vf040b", INFO(0xbf258d, 0, 64 * 1024, 8, SECT_4K | SST_WRITE) },
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-26 21:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-22 19:58 [PATCH v2] mtd: spi-nor: Add support for Spansion S25FL064L Harry Chou
2017-06-26 21:09 ` Cyrille Pitchen
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.