2017-11-22 21:25:49 +01:00
|
|
|
# Kconfig - Flash driver configuration options
|
2016-02-18 10:52:19 -08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Intel Corporation
|
|
|
|
#
|
2017-01-18 17:01:01 -08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-02-18 10:52:19 -08:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
2017-11-22 21:25:49 +01:00
|
|
|
# Flash driver
|
2016-02-18 10:52:19 -08:00
|
|
|
#
|
2018-03-07 14:31:56 +01:00
|
|
|
config FLASH_HAS_DRIVER_ENABLED
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
This option is enabled when any flash driver is enabled.
|
|
|
|
|
2018-03-07 16:36:50 +01:00
|
|
|
config FLASH_HAS_PAGE_LAYOUT
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
This option is enabled when the SoC flash driver supports
|
|
|
|
retrieving the layout of flash memory pages.
|
|
|
|
|
2016-02-18 10:52:19 -08:00
|
|
|
menuconfig FLASH
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "Flash hardware support"
|
2016-02-18 10:52:19 -08:00
|
|
|
help
|
|
|
|
Enable support for the flash hardware.
|
2016-02-22 10:48:08 -08:00
|
|
|
|
2018-10-08 18:15:21 -04:00
|
|
|
if FLASH
|
2018-10-08 18:19:56 -04:00
|
|
|
|
|
|
|
module = FLASH
|
|
|
|
module-str = flash
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
|
2018-10-18 13:15:46 -04:00
|
|
|
config FLASH_SHELL
|
|
|
|
bool "Enable Flash shell"
|
|
|
|
depends on FLASH_HAS_PAGE_LAYOUT
|
|
|
|
help
|
|
|
|
Enable the flash shell with flash related commands such as test,
|
|
|
|
write, read and erase.
|
|
|
|
|
2017-07-17 12:03:10 +02:00
|
|
|
config FLASH_PAGE_LAYOUT
|
|
|
|
bool "API for retrieving the layout of pages"
|
2018-10-08 18:15:21 -04:00
|
|
|
depends on FLASH_HAS_PAGE_LAYOUT
|
2017-07-17 12:03:10 +02:00
|
|
|
help
|
|
|
|
Enables API for retrieving the layout of flash memory pages.
|
|
|
|
|
2018-03-20 18:41:39 +01:00
|
|
|
config SOC_FLASH_NRF
|
|
|
|
bool "Nordic Semiconductor nRF flash driver"
|
2018-10-08 18:15:21 -04:00
|
|
|
depends on SOC_FAMILY_NRF
|
2017-11-23 13:47:35 +01:00
|
|
|
select FLASH_HAS_PAGE_LAYOUT
|
2018-03-07 14:31:56 +01:00
|
|
|
select FLASH_HAS_DRIVER_ENABLED
|
2016-07-25 23:34:52 -03:00
|
|
|
help
|
2018-03-20 18:41:39 +01:00
|
|
|
Enables Nordic Semiconductor nRF flash driver.
|
2016-07-25 23:34:52 -03:00
|
|
|
|
2018-03-20 18:41:39 +01:00
|
|
|
config SOC_FLASH_NRF_RADIO_SYNC
|
|
|
|
bool "Nordic nRFx flash driver synchronized with radio"
|
|
|
|
depends on SOC_FLASH_NRF && BT_CTLR
|
2017-06-22 09:49:12 +02:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable synchronization between flash memory driver and radio.
|
|
|
|
|
2018-11-15 15:50:03 +01:00
|
|
|
config SOC_FLASH_NRF_UICR
|
|
|
|
bool "Access to UICR"
|
|
|
|
depends on SOC_FLASH_NRF
|
|
|
|
help
|
|
|
|
Enable operations on UICR. Once enabled UICR are written or read as
|
|
|
|
ordinary flash memory. Erase is possible for whole UICR at once.
|
|
|
|
|
2017-01-02 14:31:32 -06:00
|
|
|
config SOC_FLASH_MCUX
|
|
|
|
bool "MCUX flash shim driver"
|
2018-10-08 18:15:21 -04:00
|
|
|
depends on HAS_MCUX
|
2018-01-31 14:22:11 -06:00
|
|
|
select FLASH_HAS_PAGE_LAYOUT
|
2018-03-07 14:31:56 +01:00
|
|
|
select FLASH_HAS_DRIVER_ENABLED
|
2016-10-21 10:58:53 +02:00
|
|
|
help
|
2017-01-02 14:31:32 -06:00
|
|
|
Enables the MCUX flash shim driver.
|
2016-10-21 10:58:53 +02:00
|
|
|
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.
|
|
|
|
|
2018-01-30 10:46:08 +05:30
|
|
|
config SOC_FLASH_NIOS2_QSPI
|
|
|
|
bool "Nios-II QSPI flash driver"
|
2018-10-08 18:15:21 -04:00
|
|
|
depends on HAS_ALTERA_HAL
|
2018-03-07 14:31:56 +01:00
|
|
|
select FLASH_HAS_DRIVER_ENABLED
|
2018-01-30 10:46:08 +05:30
|
|
|
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.
|
|
|
|
|
2018-08-07 14:11:45 +02:00
|
|
|
source "drivers/flash/Kconfig.gecko"
|
|
|
|
|
2018-11-12 21:06:24 +05:30
|
|
|
source "drivers/flash/Kconfig.nor"
|
|
|
|
|
2018-05-29 18:15:15 +02:00
|
|
|
source "drivers/flash/Kconfig.qmsi"
|
|
|
|
|
2017-05-02 14:55:08 +00:00
|
|
|
source "drivers/flash/Kconfig.stm32"
|
2017-11-22 22:53:29 +01:00
|
|
|
|
|
|
|
source "drivers/flash/Kconfig.sam0"
|
2018-05-29 18:15:15 +02:00
|
|
|
|
2018-11-04 21:41:22 +01:00
|
|
|
source "drivers/flash/Kconfig.sam"
|
|
|
|
|
2018-05-29 18:15:15 +02:00
|
|
|
source "drivers/flash/Kconfig.w25qxxdv"
|
2018-10-08 18:15:21 -04:00
|
|
|
|
|
|
|
endif
|