Skip to content

Commit

Permalink
Add w25q512 SPI NOR flash support
Browse files Browse the repository at this point in the history
Add support for 64MB SPI NOR flash w25q512

Signed-off-by: Cary Chen <[email protected]>
  • Loading branch information
CaryChen-Deltaww authored and taraschornyiplv committed May 16, 2023
1 parent 67d4b66 commit 2d3fe9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/spi-nor/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3442,7 +3442,7 @@ static const struct spi_device_id spi_nor_dev_ids[] = {
{"m25p40"}, {"m25p80"}, {"m25p16"}, {"m25p32"},
{"m25p64"}, {"m25p128"},
{"w25x80"}, {"w25x32"}, {"w25q32"}, {"w25q32dw"},
{"w25q80bl"}, {"w25q128"}, {"w25q256"},
{"w25q80bl"}, {"w25q128"}, {"w25q256"}, {"w25q512"},

/* Flashes that can't be detected using JEDEC */
{"m25p05-nonjedec"}, {"m25p10-nonjedec"}, {"m25p20-nonjedec"},
Expand Down
3 changes: 3 additions & 0 deletions drivers/mtd/spi-nor/winbond.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ static const struct flash_info winbond_parts[] = {
{ "w25q256", INFO(0xef4019, 0, 64 * 1024, 512,
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ)
.fixups = &w25q256_fixups },
{ "w25q512", INFO(0xef4020, 0, 64 * 1024, 1024, SECT_4K |
SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
SPI_NOR_4B_OPCODES) },
{ "w25q256jvm", INFO(0xef7019, 0, 64 * 1024, 512,
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
{ "w25q256jw", INFO(0xef6019, 0, 64 * 1024, 512,
Expand Down

0 comments on commit 2d3fe9d

Please sign in to comment.