zephyr/drivers/flash/Kconfig.sam0
Andrzej Puzdrowski 80a99fa450 subsys: storage: flash_map: enable only if any flash driver is enable
It was possible to have enable flash module while no flash driver
implementation was enabled. This cause coverity issues and unnecessary
initialization call.

This pat introduce FLASH_HAS_DRIVER_ENABLED Kconfig keyword which is
selected once any flash driver is enabled. flash_map switch its
dependency to this keyword.


Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2018-03-08 10:18:57 +01:00

27 lines
577 B
Plaintext

# Kconfig - Atmel SAM0 flash driver config
#
# Copyright (c) 2018 Google LLC.
# SPDX-License-Identifier: Apache-2.0
if FLASH && SOC_FAMILY_SAM0
menuconfig SOC_FLASH_SAM0
bool
prompt "Atmel SAM0 flash driver"
default n
select FLASH_HAS_PAGE_LAYOUT
select FLASH_HAS_DRIVER_ENABLED
help
Enable the Atmel SAM0 series internal flash driver.
config SOC_FLASH_SAM0_EMULATE_BYTE_PAGES
bool
prompt "Emulate byte-sized pages"
depends on SOC_FLASH_SAM0
default n
help
Emulate a device with byte-sized pages by doing a
read/modify/erase/write. Needed for NFFS.
endif