zephyr/drivers/flash
Baohong Liu a282872c78 drivers: spi_flash: add erase boundary check and correct an error
Add spi flash erase boundary check. The erase boundary must be
4K-aligned. So, the flash chip will round down an non-4K aligned
address to the nearest 4K boundary automatically. As a result of
this, the erase area will start from a different address (if the
API caller specifies an non-4K alighed address), even though the
size of the erased area is the same as what is specified by the
API caller. Let's add a boundary check to make sure the starting
address (from the API caller) is 4K aligned.

Correct an error in the highest address check. Because of the
error, the erase api call will fail if the flash's highest
address byte is involved.

Jira: ZEP-1277 ZEP-1278

Change-Id: I8b6be57cc8f636f94e5fe67d5a492841a8555005
Signed-off-by: Baohong Liu <baohong.liu@intel.com>
2016-11-12 01:37:00 +00:00
..
Kconfig drivers: flash: SoC KSDK 2016-11-07 18:43:16 +00:00
Makefile drivers: flash: SoC KSDK 2016-11-07 18:43:16 +00:00
soc_flash_ksdk.c kernel: deprecate old init levels 2016-11-09 17:59:44 +00:00
soc_flash_nrf5.c kernel: deprecate old init levels 2016-11-09 17:59:44 +00:00
soc_flash_qmsi.c drivers: flash: update to unified kernel 2016-11-10 01:59:24 +00:00
spi_flash_w25qxxdv.c drivers: spi_flash: add erase boundary check and correct an error 2016-11-12 01:37:00 +00:00
spi_flash_w25qxxdv.h drivers: flash: update to unified kernel 2016-11-10 01:59:24 +00:00
spi_flash_w25qxxdv_defs.h driver: spi_flash_w25qxxdv: remove an incorrect erase size definition 2016-09-07 02:50:31 +00:00