2019-11-01 13:45:29 +01:00
|
|
|
# Flash driver configuration options
|
2016-02-18 19:52:19 +01:00
|
|
|
|
|
|
|
# Copyright (c) 2016 Intel Corporation
|
2017-01-19 02:01:01 +01:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-02-18 19:52:19 +01:00
|
|
|
|
|
|
|
#
|
2017-11-22 21:25:49 +01:00
|
|
|
# Flash driver
|
2016-02-18 19:52:19 +01: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 19:52:19 +01:00
|
|
|
menuconfig FLASH
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "Flash hardware support"
|
2016-02-18 19:52:19 +01:00
|
|
|
help
|
|
|
|
Enable support for the flash hardware.
|
2016-02-22 19:48:08 +01:00
|
|
|
|
2018-10-09 00:15:21 +02:00
|
|
|
if FLASH
|
2018-10-09 00:19:56 +02:00
|
|
|
|
|
|
|
module = FLASH
|
|
|
|
module-str = flash
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
|
2018-10-18 19:15:46 +02:00
|
|
|
config FLASH_SHELL
|
|
|
|
bool "Enable Flash shell"
|
2019-10-04 13:13:29 +02:00
|
|
|
depends on SHELL && FLASH_PAGE_LAYOUT
|
2020-05-28 16:34:29 +02:00
|
|
|
default y
|
2018-10-18 19:15:46 +02:00
|
|
|
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-09 00:15:21 +02:00
|
|
|
depends on FLASH_HAS_PAGE_LAYOUT
|
2019-02-21 14:57:22 +01:00
|
|
|
default y
|
2017-07-17 12:03:10 +02:00
|
|
|
help
|
|
|
|
Enables API for retrieving the layout of flash memory pages.
|
|
|
|
|
2020-03-10 17:57:01 +01:00
|
|
|
source "drivers/flash/Kconfig.at45"
|
|
|
|
|
2019-02-15 14:45:52 +01:00
|
|
|
source "drivers/flash/Kconfig.nrf"
|
2018-11-15 15:50:03 +01:00
|
|
|
|
2019-02-15 14:42:39 +01:00
|
|
|
source "drivers/flash/Kconfig.mcux"
|
2016-10-21 10:58:53 +02:00
|
|
|
|
2019-02-15 14:39:44 +01:00
|
|
|
source "drivers/flash/Kconfig.nios2_qspi"
|
2018-01-30 06:16:08 +01:00
|
|
|
|
2018-08-07 14:11:45 +02:00
|
|
|
source "drivers/flash/Kconfig.gecko"
|
|
|
|
|
2018-11-12 16:36:24 +01:00
|
|
|
source "drivers/flash/Kconfig.nor"
|
|
|
|
|
2017-05-02 16:55:08 +02: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-09 00:15:21 +02:00
|
|
|
|
2019-04-18 14:55:30 +02:00
|
|
|
source "drivers/flash/Kconfig.simulator"
|
|
|
|
|
2019-05-22 17:07:50 +02:00
|
|
|
source "drivers/flash/Kconfig.rv32m1"
|
|
|
|
|
drivers: flash: add Nordic JEDEC QSPI NOR flash driver
Most JEDEC NOR flash devices uses not only typical SPI mode
(MISO,MOSI,SCK and CS), but also QSPI mode (IO0,IO1,IO2,IO3,SCK and CS).
QSPI mode uses more data lines and as a result provide higher
throughput. If this were not enough, Nordic chips provide
hardware acceleration for read/write/erase functions, what
gives significant performance boost.
It does a lot of things "behind the scene", i.e when user has written
some data to the flash and would like to read them back, it has to wait
until the flash is ready by reading WIP bit in Status Register.
This driver does it automatically.
Signed-off-by: Kamil Lazowski <Kamil.Lazowski@nordicsemi.no>
2019-12-19 13:33:37 +01:00
|
|
|
source "drivers/flash/Kconfig.nordic_qspi_nor"
|
|
|
|
|
2019-03-07 05:45:23 +01:00
|
|
|
endif # FLASH
|