Skip to content

Commit c26d0d8

Browse files
Yicong Yangambarus
authored andcommitted
mtd: spi-nor: Add support for s25fs128s1
Add support for Cypress s25fs128s1 flash. Previously the flash is decoded as s25fl129p1 by mistake. Add it in the flash info list to correctly decode. The flash also needs a fixup for s25fs-s family. Further capability of the flash will be parsed from bfpt. The flash has been tested under SPI/DUAL/QUAD mode on hisi-sfc-v3xx controller, all the write/read/erase works well. Signed-off-by: Yicong Yang <[email protected]> Signed-off-by: Tudor Ambarus <[email protected]>
1 parent 5587fa4 commit c26d0d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/mtd/spi-nor/spansion.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ static const struct flash_info spansion_parts[] = {
5252
{ "s25fl512s", INFO6(0x010220, 0x4d0080, 256 * 1024, 256,
5353
SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
5454
SPI_NOR_HAS_LOCK | USE_CLSR) },
55+
{ "s25fs128s1", INFO6(0x012018, 0x4d0181, 64 * 1024, 256,
56+
SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR)
57+
.fixups = &s25fs_s_fixups, },
5558
{ "s25fs512s", INFO6(0x010220, 0x4d0081, 256 * 1024, 256,
5659
SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR)
5760
.fixups = &s25fs_s_fixups, },

0 commit comments

Comments
 (0)