[PATCH v2] mtd: spi-nor: Add support for s25fl128l and s25fl256l
Cyrille Pitchen
cyrille.pitchen at wedev4u.fr
Wed Dec 27 12:37:30 PST 2017
Le 21/12/2017 à 13:27, Rafael Gago a écrit :
> They are exactly the same than the s25fl064l but bigger.
s/same than/same as/
>
> Signed-off-by: Rafael Gago Castano <rgc at hms.se>
Applied to the spi-nor/next branch of linux-mtd with the small fix above.
Thanks!
> ---
>
> Changes from v2:
> The commit message named two times the 128 M device.
>
> drivers/mtd/spi-nor/spi-nor.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
> index bc266f7..b2a065d 100644
> --- a/drivers/mtd/spi-nor/spi-nor.c
> +++ b/drivers/mtd/spi-nor/spi-nor.c
> @@ -1065,7 +1065,7 @@ static const struct flash_info spi_nor_ids[] = {
> { "pm25lv010", INFO(0, 0, 32 * 1024, 4, SECT_4K_PMC) },
> { "pm25lq032", INFO(0x7f9d46, 0, 64 * 1024, 64, SECT_4K) },
>
> - /* Spansion -- single (large) sector size only, at least
> + /* Spansion/Cypress -- single (large) sector size only, at least
> * for the chips listed here (without boot sectors).
> */
> { "s25sl032p", INFO(0x010215, 0x4d00, 64 * 1024, 64, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
> @@ -1094,6 +1094,8 @@ static const struct flash_info spi_nor_ids[] = {
> { "s25fl204k", INFO(0x014013, 0, 64 * 1024, 8, SECT_4K | SPI_NOR_DUAL_READ) },
> { "s25fl208k", INFO(0x014014, 0, 64 * 1024, 16, SECT_4K | SPI_NOR_DUAL_READ) },
> { "s25fl064l", INFO(0x016017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
> + { "s25fl128l", INFO(0x016018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
> + { "s25fl256l", INFO(0x016019, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
>
> /* SST -- large erase sizes are "overlays", "sectors" are 4K */
> { "sst25vf040b", INFO(0xbf258d, 0, 64 * 1024, 8, SECT_4K | SST_WRITE) },
>
More information about the linux-mtd
mailing list