]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: spi-nor-ids: Add NO_CHIP_ERASE flag to Infineon s25hl02Gt and s25hs02gt
authorTakahiro Kuwano <Takahiro.Kuwano@infineon.com>
Fri, 27 Sep 2024 01:24:15 +0000 (10:24 +0900)
committerTom Rini <trini@konsulko.com>
Thu, 10 Oct 2024 14:12:58 +0000 (08:12 -0600)
S25HL02GT and S25HS02GT are dual-die package parts and do not support
chip erase.

Fixes: c95a914aed7 ("mtd: spi-nor-ids: Add Cypress s25hl-t/s25hs-t")
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
drivers/mtd/spi/spi-nor-ids.c

index b954631ff76647059a3b8312fd4bbbed903f92a3..1af1d96134e9d08c29e31ea97a89efdc31c0449c 100644 (file)
@@ -371,7 +371,7 @@ const struct flash_info spi_nor_ids[] = {
                SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES |
                USE_CLSR) },
        { INFO6("s25hl02gt",  0x342a1c, 0x0f0090, 256 * 1024, 1024,
-               SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
+               SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES | NO_CHIP_ERASE) },
        { INFO6("s25hs512t",  0x342b1a, 0x0f0390, 256 * 1024, 256,
                SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES |
                USE_CLSR) },
@@ -379,7 +379,7 @@ const struct flash_info spi_nor_ids[] = {
                SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES |
                USE_CLSR) },
        { INFO6("s25hs02gt",  0x342b1c, 0x0f0090, 256 * 1024, 1024,
-               SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
+               SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES | NO_CHIP_ERASE) },
        { INFO6("s25fs256t",  0x342b19, 0x0f0890, 128 * 1024, 256,
                SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
 #ifdef CONFIG_SPI_FLASH_S28HX_T