Consistently use
config FOO
bool/int/hex/string "Prompt text"
instead of
config FOO
bool/int/hex/string
prompt "Prompt text"
(...and a bunch of other variations that e.g. swapped the order of the
type and the 'prompt', or put other properties between them).
The shorthand is fully equivalent to using 'prompt'. It saves lines and
avoids tricking people into thinking there is some semantic difference.
Most of the grunt work was done by a modified version of
https://unix.stackexchange.com/questions/26284/
how-can-i-use-sed-to-replace-a-multi-line-string/26290#26290, but some
of the rarer variations had to be converted manually.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
82 lines
2.0 KiB
Plaintext
82 lines
2.0 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.
|
|
|
|
config FLASH_PAGE_LAYOUT
|
|
bool "API for retrieving the layout of pages"
|
|
depends on FLASH && FLASH_HAS_PAGE_LAYOUT
|
|
help
|
|
Enables API for retrieving the layout of flash memory pages.
|
|
|
|
config SOC_FLASH_NRF
|
|
bool "Nordic Semiconductor nRF flash driver"
|
|
depends on FLASH && SOC_FAMILY_NRF
|
|
select FLASH_HAS_PAGE_LAYOUT
|
|
select FLASH_HAS_DRIVER_ENABLED
|
|
help
|
|
Enables Nordic Semiconductor nRF flash driver.
|
|
|
|
config SOC_FLASH_NRF_RADIO_SYNC
|
|
bool "Nordic nRFx flash driver synchronized with radio"
|
|
depends on SOC_FLASH_NRF && BT_CTLR
|
|
default y
|
|
help
|
|
Enable synchronization between flash memory driver and radio.
|
|
|
|
config SOC_FLASH_MCUX
|
|
bool "MCUX flash shim driver"
|
|
depends on FLASH && HAS_MCUX
|
|
select FLASH_HAS_PAGE_LAYOUT
|
|
select FLASH_HAS_DRIVER_ENABLED
|
|
help
|
|
Enables the MCUX flash shim driver.
|
|
WARNING: This driver will disable the system interrupts for
|
|
the duration of the flash erase/write operations. This will
|
|
have an impact on the overall system performance - whether
|
|
this is acceptable or not will depend on the use case.
|
|
|
|
config SOC_FLASH_NIOS2_QSPI
|
|
bool "Nios-II QSPI flash driver"
|
|
depends on FLASH && HAS_ALTERA_HAL
|
|
select FLASH_HAS_DRIVER_ENABLED
|
|
help
|
|
Enables the Nios-II QSPI flash driver.
|
|
|
|
config SOC_FLASH_NIOS2_QSPI_DEV_NAME
|
|
string "Nios-II QSPI flash device name"
|
|
depends on SOC_FLASH_NIOS2_QSPI
|
|
default "NIOS2_QSPI_FLASH"
|
|
help
|
|
Specify the device name for the QSPI flash driver.
|
|
|
|
source "drivers/flash/Kconfig.qmsi"
|
|
|
|
source "drivers/flash/Kconfig.stm32"
|
|
|
|
source "drivers/flash/Kconfig.sam0"
|
|
|
|
source "drivers/flash/Kconfig.w25qxxdv"
|