Cleanup the Kconfig code for the flash driver. Platform-specific options should be in their own Kconfig files to be consistent and to not pollute the common configuration. To this end we move the nrf options into it's own file. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
68 lines
1.3 KiB
Plaintext
68 lines
1.3 KiB
Plaintext
# Kconfig - Flash driver configuration options
|
|
|
|
#
|
|
# Copyright (c) 2016 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
#
|
|
# Flash driver
|
|
#
|
|
config FLASH_HAS_DRIVER_ENABLED
|
|
bool
|
|
help
|
|
This option is enabled when any flash driver is enabled.
|
|
|
|
config FLASH_HAS_PAGE_LAYOUT
|
|
bool
|
|
help
|
|
This option is enabled when the SoC flash driver supports
|
|
retrieving the layout of flash memory pages.
|
|
|
|
menuconfig FLASH
|
|
bool "Flash hardware support"
|
|
help
|
|
Enable support for the flash hardware.
|
|
|
|
if FLASH
|
|
|
|
module = FLASH
|
|
module-str = flash
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
config FLASH_SHELL
|
|
bool "Enable Flash shell"
|
|
depends on FLASH_PAGE_LAYOUT
|
|
help
|
|
Enable the flash shell with flash related commands such as test,
|
|
write, read and erase.
|
|
|
|
config FLASH_PAGE_LAYOUT
|
|
bool "API for retrieving the layout of pages"
|
|
depends on FLASH_HAS_PAGE_LAYOUT
|
|
help
|
|
Enables API for retrieving the layout of flash memory pages.
|
|
|
|
source "drivers/flash/Kconfig.nrf"
|
|
|
|
source "drivers/flash/Kconfig.mcux"
|
|
|
|
source "drivers/flash/Kconfig.nios2_qspi"
|
|
|
|
source "drivers/flash/Kconfig.gecko"
|
|
|
|
source "drivers/flash/Kconfig.nor"
|
|
|
|
source "drivers/flash/Kconfig.qmsi"
|
|
|
|
source "drivers/flash/Kconfig.stm32"
|
|
|
|
source "drivers/flash/Kconfig.sam0"
|
|
|
|
source "drivers/flash/Kconfig.sam"
|
|
|
|
source "drivers/flash/Kconfig.w25qxxdv"
|
|
|
|
endif
|