mtd: spi-nor: Add support for is25wp series chips

Message ID 1526292953-9486-1-git-send-email-ext-kimmo.rautkoski@vaisala.com
State Accepted
Delegated to: Cyrille Pitchen
Headers show
Series
  • mtd: spi-nor: Add support for is25wp series chips
Related show

Commit Message

Kimmo Rautkoski May 14, 2018, 10:15 a.m.
Added support for is25wp032, is25wp064 and is25wp128.

Signed-off-by: Kimmo Rautkoski <ext-kimmo.rautkoski@vaisala.com>
---
 drivers/mtd/spi-nor/spi-nor.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Marek Vasut May 14, 2018, 10:29 a.m. | #1
On 05/14/2018 12:15 PM, Kimmo Rautkoski wrote:
> Added support for is25wp032, is25wp064 and is25wp128.
> 
> Signed-off-by: Kimmo Rautkoski <ext-kimmo.rautkoski@vaisala.com>

Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Boris Brezillon May 18, 2018, 8:05 p.m. | #2
On Mon, 14 May 2018 12:29:50 +0200
Marek Vasut <marek.vasut@gmail.com> wrote:

> On 05/14/2018 12:15 PM, Kimmo Rautkoski wrote:
> > Added support for is25wp032, is25wp064 and is25wp128.
> > 
> > Signed-off-by: Kimmo Rautkoski <ext-kimmo.rautkoski@vaisala.com>  
> 
> Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
> 

Queued to spi-nor/next.

Thanks,

Boris

Patch

diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index 494b7a2..cace1de 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -1065,6 +1065,12 @@  static const struct flash_info spi_nor_ids[] = {
 			SECT_4K | SPI_NOR_DUAL_READ) },
 	{ "is25lp256",  INFO(0x9d6019, 0, 64 * 1024, 512,
 			SECT_4K | SPI_NOR_DUAL_READ) },
+	{ "is25wp032",  INFO(0x9d7016, 0, 64 * 1024,  64,
+			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+	{ "is25wp064",  INFO(0x9d7017, 0, 64 * 1024, 128,
+			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+	{ "is25wp128",  INFO(0x9d7018, 0, 64 * 1024, 256,
+			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
 
 	/* Macronix */
 	{ "mx25l512e",   INFO(0xc22010, 0, 64 * 1024,   1, SECT_4K) },