Messages in this thread Patch in this message | | | From | Michael Walle <> | Subject | [PATCH 2/2] mtd: spi-nor: winbond: use SNOR_ID3() for w25q512nwm | Date | Tue, 10 May 2022 16:02:32 +0200 |
| |
Use the new SNOR_ID3() so we don't have to specify the number of sectors as we are reading that property from the SFDP anyways.
Signed-off-by: Michael Walle <michael@walle.cc> --- drivers/mtd/spi-nor/winbond.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c index 08f9b5abf4d2..12b38f6776f4 100644 --- a/drivers/mtd/spi-nor/winbond.c +++ b/drivers/mtd/spi-nor/winbond.c @@ -134,8 +134,7 @@ static const struct flash_info winbond_nor_parts[] = { { "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, - { "w25q512nwm", INFO(0xef8020, 0, 64 * 1024, 1024) - PARSE_SFDP + { "w25q512nwm", SNOR_ID3(0xef8020) OTP_INFO(256, 3, 0x1000, 0x1000) }, { "w25q512jvq", INFO(0xef4020, 0, 64 * 1024, 1024) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | -- 2.30.2
| |