u-boot/drivers/mtd/spi
Pratyush Yadav aba0bcd7bd mtd: spi-nor-core: allow truncated erases
On devices with non-uniform sector sizes like Spansion S25 or S28 family
of flashes the sector under erase does not necessarily have to be
mtd->erasesize bytes long. For example, on S28 flashes the first 128 KiB
region is composed of 32 4 KiB sectors, then a 128 KiB sector, and then
256 KiB sectors till the end.

Let the flash-specific erase functions erase less than the requested
length in case of the 4 or 128 KiB sectors and report the number of
bytes erased back to the calling function.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
2021-06-28 12:05:38 +05:30
..
fsl_espi_spl.c common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
Kconfig mtd: spi-nor-core: Perform a Soft Reset on boot 2021-06-28 12:05:17 +05:30
Makefile spi: Allow separate control of SPI_FLASH_TINY for SPL/TPL 2020-08-03 22:19:54 -04:00
sandbox.c dm: Avoid accessing seq directly 2020-12-18 20:32:21 -07:00
sf-uclass.c sf: Support querying write-protect 2021-03-27 15:04:31 +13:00
sf_dataflash.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
sf_internal.h mtd: spi-nor-core: Add support for DTR protocol 2021-06-28 12:00:32 +05:30
sf_mtd.c mtd: spi-nor: fill-in mtd->dev member 2021-06-24 11:53:50 +05:30
sf_probe.c mtd: spi-nor-core: Perform a Soft Reset on shutdown 2021-06-28 12:04:53 +05:30
spi-nor-core.c mtd: spi-nor-core: allow truncated erases 2021-06-28 12:05:38 +05:30
spi-nor-ids.c mtd: spi-nor-ids: Add Macronix MX66UW2G345G 2021-06-22 13:53:24 +05:30
spi-nor-tiny.c mtd: spi-nor-core: Add a ->setup() hook 2021-06-28 11:58:10 +05:30