zephyr/drivers/flash/Kconfig.sam0
Dominik Ermel ea627fda7e drivers/flash: Add explict erase capability with proper values
Add explicit_erase capability and set proper value to it,
depending on type of a device.
Select FLASH_HAS_EXPLICIT_ERASE by devices that have program-erase
characteristics and FLASH_HAS_NO_EXPLICIT_ERASE, where needed.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2024-06-04 08:00:46 +02:00

24 lines
670 B
Text

# Atmel SAM0 flash driver config
# Copyright (c) 2018 Google LLC.
# SPDX-License-Identifier: Apache-2.0
menuconfig SOC_FLASH_SAM0
bool "Atmel SAM0 flash driver"
default y
depends on DT_HAS_ATMEL_SAM0_NVMCTRL_ENABLED
select FLASH_HAS_PAGE_LAYOUT
select FLASH_HAS_DRIVER_ENABLED
select FLASH_HAS_EXPLICIT_ERASE
select MPU_ALLOW_FLASH_WRITE if ARM_MPU
help
Enable the Atmel SAM0 series internal flash driver.
config SOC_FLASH_SAM0_EMULATE_BYTE_PAGES
bool "Emulate byte-sized pages"
depends on SOC_FLASH_SAM0
default y if SOC_SERIES_SAMC20 || \
SOC_SERIES_SAMC21
help
Emulate a device with byte-sized pages by doing a
read/modify/erase/write.