mtd: spi-nor: add Gigadevice gd25lq128d support

Message ID 20191204132713.6195-1-jbrunet@baylibre.com
State Accepted
Commit a56be671734ec5ab7fcfc9ac681d01698fc8bdf5
Headers show
Series
  • mtd: spi-nor: add Gigadevice gd25lq128d support
Related show

Commit Message

Jerome Brunet Dec. 4, 2019, 1:27 p.m.
Tested on the Amlogic aml-libretech-pc platform which does not support
dual or quad modes

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>

---

 Datasheet is available here:
 http://www.elm-tech.com/en/products/spi-flash-memory/gd25lq128/gd25lq128.pdf

 drivers/mtd/spi-nor/spi-nor.c | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.23.0

Comments

Tudor Ambarus Dec. 24, 2019, 9:04 a.m. | #1
On 12/4/19 3:27 PM, Jerome Brunet wrote:
> Tested on the Amlogic aml-libretech-pc platform which does not support

> dual or quad modes

> 

> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>

> ---

> 

>  Datasheet is available here:

>  http://www.elm-tech.com/en/products/spi-flash-memory/gd25lq128/gd25lq128.pdf

> 

>  drivers/mtd/spi-nor/spi-nor.c | 5 +++++

>  1 file changed, 5 insertions(+)


Patch applied, thanks.
ta

Patch

diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index 1d8621d43160..d394f3861ecd 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -2231,6 +2231,11 @@  static const struct flash_info spi_nor_ids[] = {
 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
 	},
+	{
+		"gd25lq128d", INFO(0xc86018, 0, 64 * 1024, 256,
+			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
+			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
+	},
 	{
 		"gd25q256", INFO(0xc84019, 0, 64 * 1024, 512,
 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |