Skip to content

Commit df6def8

Browse files
Kuwano-sanambarus
authored andcommitted
mtd: spi-nor: spansion: Add support for s25hl02gt and s25hs02gt
Add ID, flags, and fixup for s25hl02gt and s25hs02gt. These parts are - Dual-die package parts - Not support chip erase - 4-byte addressing mode by default - Wrong param in SCCR map that needs to be fixed Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com> Link: https://lore.kernel.org/r/55021d2409bf310692db0ac1c55e71ba406438a7.1680849425.git.Takahiro.Kuwano@infineon.com Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
1 parent 91f3c43 commit df6def8

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

drivers/mtd/spi-nor/spansion.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,10 @@ static int s25hx_t_post_sfdp_fixup(struct spi_nor *nor)
579579
}
580580
}
581581

582+
/* The 2 Gb parts duplicate info and advertise 4 dice instead of 2. */
583+
if (nor->params->size == SZ_256M)
584+
nor->params->n_dice = 2;
585+
582586
return cypress_nor_get_page_size(nor);
583587
}
584588

@@ -797,6 +801,10 @@ static const struct flash_info spansion_nor_parts[] = {
797801
PARSE_SFDP
798802
MFR_FLAGS(USE_CLSR)
799803
.fixups = &s25hx_t_fixups },
804+
{ "s25hl02gt", INFO6(0x342a1c, 0x0f0090, 0, 0)
805+
PARSE_SFDP
806+
FLAGS(NO_CHIP_ERASE)
807+
.fixups = &s25hx_t_fixups },
800808
{ "s25hs512t", INFO6(0x342b1a, 0x0f0390, 256 * 1024, 256)
801809
PARSE_SFDP
802810
MFR_FLAGS(USE_CLSR)
@@ -805,6 +813,10 @@ static const struct flash_info spansion_nor_parts[] = {
805813
PARSE_SFDP
806814
MFR_FLAGS(USE_CLSR)
807815
.fixups = &s25hx_t_fixups },
816+
{ "s25hs02gt", INFO6(0x342b1c, 0x0f0090, 0, 0)
817+
PARSE_SFDP
818+
FLAGS(NO_CHIP_ERASE)
819+
.fixups = &s25hx_t_fixups },
808820
{ "cy15x104q", INFO6(0x042cc2, 0x7f7f7f, 512 * 1024, 1)
809821
FLAGS(SPI_NOR_NO_ERASE) },
810822
{ "s28hl512t", INFO(0x345a1a, 0, 256 * 1024, 256)

0 commit comments

Comments
 (0)