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