[v2] mtd: spi-nor: add support for Gigadevice GD25LQ32

Message ID 20170913082535.64261-1-klaus.goger@theobroma-systems.com
State Accepted
Delegated to: Cyrille Pitchen
Headers show
Series
  • [v2] mtd: spi-nor: add support for Gigadevice GD25LQ32
Related show

Commit Message

Klaus Goger Sept. 13, 2017, 8:25 a.m.
Tested against GD25LQ32D but the GD25LQ32C datasheet seems to be
identically feature-wise. Therefore dropping the suffix as it's
probably only indicating the die revision.

Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>

---

Changes in v2:
- noticed a typo in the actual patch after hitting send

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

Comments

Cyrille Pitchen Oct. 10, 2017, 4:53 p.m. | #1
Le 13/09/2017 à 10:25, Klaus Goger a écrit :
> Tested against GD25LQ32D but the GD25LQ32C datasheet seems to be
> identically feature-wise. Therefore dropping the suffix as it's
> probably only indicating the die revision.
> 
> Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>

Applied to the spi-nor/next branch of l2-mtd

Thanks!
> 
> ---
> 
> Changes in v2:
> - noticed a typo in the actual patch after hitting send
> 
>  drivers/mtd/spi-nor/spi-nor.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
> index cf1d4a15e10a..e5416374d9d6 100644
> --- a/drivers/mtd/spi-nor/spi-nor.c
> +++ b/drivers/mtd/spi-nor/spi-nor.c
> @@ -983,6 +983,11 @@ static const struct flash_info spi_nor_ids[] = {
>  			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
>  	},
>  	{
> +		"gd25lq32", INFO(0xc86016, 0, 64 * 1024, 64,
> +			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
> +			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
> +	},
> +	{
>  		"gd25q64", INFO(0xc84017, 0, 64 * 1024, 128,
>  			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
>  			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
>

Patch

diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index cf1d4a15e10a..e5416374d9d6 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -983,6 +983,11 @@  static const struct flash_info spi_nor_ids[] = {
 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
 	},
 	{
+		"gd25lq32", INFO(0xc86016, 0, 64 * 1024, 64,
+			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
+			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
+	},
+	{
 		"gd25q64", INFO(0xc84017, 0, 64 * 1024, 128,
 			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)