mtd: spi-nor: winbond: add 1.8v SPI NOR Flash IDs
Subsystems (2)
PATCH v3 1/1 mtd: spi-nor: winbond: add 1.8v SPI NOR Flash IDs
From: wuxy <[email protected]>
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.
---
This patch copied from:https://patchwork.ozlabs.org/patch/1150756/, The original patch is invalid,so re-submit a new patch for this.
drivers/mtd/spi-nor/winbond.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/mtd/spi-nor/winbond.c +9 -0
@@ -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) }, };/**
Signature · 1 line
2.20.1
Quoted 6 lines · On 5/28/20 6:36 AM, [email protected] wrote:
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
From: wuxy <[email protected]>
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.
Which flashes were tested?
One should do a read, dump the content, erase, dump content to check that erase was fine, write a random generated file, read back and compare.
I see that you added the locking flags too. Were the locking ops tested?
We don't add flashes or caps that are not tested, please specify in the commit message what was tested.
Quoted 16 lines
Signed-off-by Xingyu Wu <[email protected]>Signed-off-by ST Lin <[email protected]>---
This patch copied from:https://patchwork.ozlabs.org/patch/1150756/, The original patch is invalid,so re-submit a new patch for this.drivers/mtd/spi-nor/winbond.c | 9 +++++++++ 1 file changed, 9 insertions(+)drivers/mtd/spi-nor/winbond.c +0
-0
drivers/mtd/spi-nor/winbond.c static const struct flash_info winbond_parts[] = { · line 64
Quoted 4 lines
drivers/mtd/spi-nor/winbond.c +1
-0@@ -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,
We don't really care about the Package Type, it does not change the flash caps, we can drop "xx" from the name. Also, the manufacturer can introduce new flashes with different temperature ranges without changing the flash caps, so we should drop the "I" from the name too.
The flash name would become w25q64jwm
drivers/mtd/spi-nor/winbond.c static const struct flash_info winbond_parts[] = { · line 67
Quoted 3 lines
drivers/mtd/spi-nor/winbond.c +3
-0+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,
w25q128jwm
drivers/mtd/spi-nor/winbond.c static const struct flash_info winbond_parts[] = { · line 70
Quoted 3 lines
drivers/mtd/spi-nor/winbond.c +3
-0+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,
w25q256jwm
drivers/mtd/spi-nor/winbond.c static const struct flash_info winbond_parts[] = { · line 72
Quoted 2 lines
drivers/mtd/spi-nor/winbond.c +2
-0+SECT_4K |SPI_NOR_DUAL_READ |SPI_NOR_QUAD_READ | + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) },
w25q256jwm has 4 block protection bits, locking was not tested for this flash.
Cheers,
ta