zephyr/drivers/flash
Peter Bigot 67808279fb drivers: flash: spi_nor: support devices that default to protect blocks
Some SPI NOR devices, particularly Atmel and SST, power-up with block
protect bits set in the status register.  These bits must be cleared
before any erase or program operation can succeed.  However, blindly
clearing bits in SR is wrong as some of these are non-volatile and
control chip behavior, including quad-enable.

Add a devicetree flag to identify device-specific BP bits in the status
register that should be cleared on startup only for devices that need
them, and when set do the clear during initialization.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2021-04-16 12:23:06 +02:00
..
CMakeLists.txt drivers: flash: Support i.MX FlexSPI NOR driver with XIP 2021-04-15 16:26:39 -05:00
flash_esp32.c drivers/flash: removed write protection API implementations 2021-03-29 13:43:55 -04:00
flash_gecko.c drivers/flash: removed write protection API implementations 2021-03-29 13:43:55 -04:00
flash_handlers.c
flash_mcux_flexspi_nor.c drivers: flash: mcux flexspi nor: copy data to RAM buffer on write 2021-04-15 16:26:39 -05:00
flash_page_layout.c
flash_priv.h
flash_sam.c drivers/flash: removed write protection API implementations 2021-03-29 13:43:55 -04:00
flash_sam0.c drivers/flash: removed write protection API implementations 2021-03-29 13:43:55 -04:00
flash_shell.c drivers/flash/flash_shell: remove flash_write_protection_set() usage 2021-03-29 13:43:55 -04:00
flash_simulator.c drivers/flash_simulator: Rename FLASH() macro to MOCK_FLASH() 2021-04-15 17:15:34 +02:00
flash_stm32_qspi.c drivers/flash: removed write protection API implementations 2021-03-29 13:43:55 -04:00
flash_stm32_v1.c
flash_stm32.c drivers/flash: removed write protection API implementations 2021-03-29 13:43:55 -04:00
flash_stm32.h drivers/flash: add support for stm32h7 devices 2020-12-14 16:47:05 +01:00
flash_stm32f4x.c
flash_stm32f7x.c
flash_stm32g4x.c drivers/flash/flash_stm32g4x: fixed build issue 2021-03-29 13:43:55 -04:00
flash_stm32g0x.c
flash_stm32h7x.c drivers/flash: removed write protection API implementations 2021-03-29 13:43:55 -04:00
flash_stm32l4x.c
flash_stm32wbx.c
jesd216.c drivers: flash: jesd216: add support for DW16 decoding 2021-01-18 16:58:09 -05:00
jesd216.h drivers: flash: jesd216: add support for DW16 decoding 2021-01-18 16:58:09 -05:00
Kconfig esp32: drivers: spi_flash: add host flash support 2021-03-06 09:34:35 -05:00
Kconfig.at45
Kconfig.esp32 esp32: drivers: spi_flash: add host flash support 2021-03-06 09:34:35 -05:00
Kconfig.gecko drivers/flash: select to allow flash write by MPU on ARM SoCs 2021-01-25 08:59:01 -05:00
Kconfig.lpc drivers: soc_flash_lpc: LPC legacy flash driver 2021-01-23 08:01:00 -05:00
Kconfig.mcux drivers: flash: mcux flexspi nor: copy data to RAM buffer on write 2021-04-15 16:26:39 -05:00
Kconfig.nios2_qspi
Kconfig.nor
Kconfig.nordic_qspi_nor drivers: flash: nrf_qspi: support JESD216 API 2021-01-18 16:58:09 -05:00
Kconfig.nrf drivers/flash: select to allow flash write by MPU on ARM SoCs 2021-01-25 08:59:01 -05:00
Kconfig.rv32m1
Kconfig.sam drivers/flash: select to allow flash write by MPU on ARM SoCs 2021-01-25 08:59:01 -05:00
Kconfig.sam0 drivers/flash: select to allow flash write by MPU on ARM SoCs 2021-01-25 08:59:01 -05:00
Kconfig.simulator drivers/flash/flash_simulator: integrate WP service into write/erase 2021-03-29 13:43:55 -04:00
Kconfig.stm32 drivers/flash: select to allow flash write by MPU on ARM SoCs 2021-01-25 08:59:01 -05:00
Kconfig.stm32_qspi drivers/flash: flash_stm32_qspi: Set DMA as optional 2021-01-15 10:29:30 -05:00
nrf_qspi_nor.c drivers/flash: removed write protection API implementations 2021-03-29 13:43:55 -04:00
soc_flash_lpc.c drivers/flash: removed write protection API implementations 2021-03-29 13:43:55 -04:00
soc_flash_mcux.c drivers/flash: removed write protection API implementations 2021-03-29 13:43:55 -04:00
soc_flash_nios2_qspi.c drivers/flash: removed write protection API implementations 2021-03-29 13:43:55 -04:00
soc_flash_nrf_ticker.c Bluetooth: controller: Propagate ticker force to ULL 2021-04-13 12:15:12 +02:00
soc_flash_nrf.c drivers/flash: removed write protection API implementations 2021-03-29 13:43:55 -04:00
soc_flash_nrf.h drivers/flash/soc_flash_nrf: Include additional headers 2021-03-04 13:55:56 +01:00
soc_flash_rv32m1.c drivers/flash: removed write protection API implementations 2021-03-29 13:43:55 -04:00
spi_flash_at45.c drivers/flash: removed write protection API implementations 2021-03-29 13:43:55 -04:00
spi_nor.c drivers: flash: spi_nor: support devices that default to protect blocks 2021-04-16 12:23:06 +02:00
spi_nor.h