Message ID | 20200528025503.24003-1-wuxy@bitland.com.cn |
---|---|
State | Superseded |
Delegated to: | Ambarus Tudor |
Headers | show |
Series | [v3] mtd: spi-nor: winbond: add 1.8v SPI NOR Flash IDs | expand |
On Thu, May 28, 2020 at 10:55 AM <wuxy@bitland.com.cn> wrote: > > From: wuxy <wuxy@bitland.corp-partner.google.com> > > Winbond has new 1.8V SPI NOR Flash IDs,we need to use the SPI > flash IDs in kukui series,this patch can support the new flash IDs. > > TEST=boot to shell,get the spi information from 'dmesg'. TEST= is Chromium OS specific, you can drop this line. > > Signed-off-by: Xingyu Wu <wuxy@bitland.corp-partner.google.com> > Signed-off-by: ST Lin <stlin2@winbond.com> Tested-by: Nicolas Boichat <drinkcat@chromium.org> > > This patch copied from:https://patchwork.ozlabs.org/patch/1150756/, > The original patch is invalid,so re-submit a new patch for this. This belongs below the ---, but I guess the maintainer can help you with that. > --- > drivers/mtd/spi-nor/winbond.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c > index 17deabad57e1..cda4f8847bd6 100644 > --- a/drivers/mtd/spi-nor/winbond.c > +++ b/drivers/mtd/spi-nor/winbond.c > @@ -61,6 +61,15 @@ static const struct flash_info winbond_parts[] = { > SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, > { "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024, > SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, > + { "w25q64jwxxIM", INFO(0xef8017, 0, 64 * 1024, 128, > + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | > + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, > + { "w25q128jwxxIM", INFO(0xef8018, 0, 64 * 1024, 256, > + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | > + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, > + { "w25q256jwxxIM", INFO(0xef8019, 0, 64 * 1024, 512, > + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | > + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, > }; > > /** > -- > 2.20.1 > > >
On Thu, May 28, 2020 at 11:16 AM 吴兴育B01779 <wuxy@bitland.com.cn> wrote: > > > > > > This patch copied from:https://patchwork.ozlabs.org/patch/1150756/, > > The original patch is invalid,so re-submit a new patch for this. > > This belongs below the ---, but I guess the maintainer can help you with that. > --->This --- is automatically generated, it looks like I can't move it to below --- Sure, but you can always edit the message before you send it (--annotate parameter of git send-email). > > ------------------ Original ------------------ > From: "Nicolas Boichat"<drinkcat@chromium.org>; > Date: Thu, May 28, 2020 11:06 AM > To: "wuxy"<wuxy@bitland.com.cn>; > Cc: "lkml"<linux-kernel@vger.kernel.org>; "linux-mtd"<linux-mtd@lists.infradead.org>; "stlin2"<stlin2@winbond.com>; "wuxy"<wuxy@bitland.corp-partner.google.com>; > Subject: Re: [PATCH] [v3]mtd: spi-nor: winbond: add 1.8v SPI NOR Flash IDs > > On Thu, May 28, 2020 at 10:55 AM <wuxy@bitland.com.cn> wrote: > > > > From: wuxy <wuxy@bitland.corp-partner.google.com> > > > > Winbond has new 1.8V SPI NOR Flash IDs,we need to use the SPI > > flash IDs in kukui series,this patch can support the new flash IDs. > > > > TEST=boot to shell,get the spi information from 'dmesg'. > > TEST= is Chromium OS specific, you can drop this line. > > > > > Signed-off-by: Xingyu Wu <wuxy@bitland.corp-partner.google.com> > > Signed-off-by: ST Lin <stlin2@winbond.com> > > Tested-by: Nicolas Boichat <drinkcat@chromium.org> > > > > > This patch copied from:https://patchwork.ozlabs.org/patch/1150756/, > > The original patch is invalid,so re-submit a new patch for this. > > This belongs below the ---, but I guess the maintainer can help you with that. > > > --- > > drivers/mtd/spi-nor/winbond.c | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c > > index 17deabad57e1..cda4f8847bd6 100644 > > --- a/drivers/mtd/spi-nor/winbond.c > > +++ b/drivers/mtd/spi-nor/winbond.c > > @@ -61,6 +61,15 @@ static const struct flash_info winbond_parts[] = { > > SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, > > { "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024, > > SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, > > + { "w25q64jwxxIM", INFO(0xef8017, 0, 64 * 1024, 128, > > + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | > > + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, > > + { "w25q128jwxxIM", INFO(0xef8018, 0, 64 * 1024, 256, > > + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | > > + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, > > + { "w25q256jwxxIM", INFO(0xef8019, 0, 64 * 1024, 512, > > + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | > > + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, > > }; > > > > /** > > -- > > 2.20.1 > > > > > >
diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c index 17deabad57e1..cda4f8847bd6 100644 --- a/drivers/mtd/spi-nor/winbond.c +++ b/drivers/mtd/spi-nor/winbond.c @@ -61,6 +61,15 @@ static const struct flash_info winbond_parts[] = { SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, + { "w25q64jwxxIM", INFO(0xef8017, 0, 64 * 1024, 128, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, + { "w25q128jwxxIM", INFO(0xef8018, 0, 64 * 1024, 256, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, + { "w25q256jwxxIM", INFO(0xef8019, 0, 64 * 1024, 512, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, }; /**