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.
|
|
|
|
|
2022-11-10 14:38:47 +01:00
|
|
|
config FLASH_HAS_EX_OP
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
This option is selected by drivers that support flash extended
|
|
|
|
operations.
|
|
|
|
|
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.
|
|
|
|
|
2020-05-30 23:01:55 +02:00
|
|
|
config FLASH_JESD216
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Selected by drivers that support JESD216-compatible flash
|
|
|
|
devices to enable building a common support module.
|
|
|
|
|
2016-02-18 19:52:19 +01:00
|
|
|
menuconfig FLASH
|
2023-03-27 14:55:23 +02:00
|
|
|
bool "Flash drivers"
|
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"
|
|
|
|
|
2022-09-15 18:17:43 +02:00
|
|
|
config FLASH_JESD216_API
|
|
|
|
bool "Provide API to read JESD216 flash parameters"
|
|
|
|
depends on FLASH_JESD216
|
|
|
|
help
|
|
|
|
This option extends the Zephyr flash API with the ability
|
|
|
|
to access the Serial Flash Discoverable Parameter section
|
|
|
|
allowing runtime determination of serial flash parameters
|
|
|
|
for flash drivers that expose this capability.
|
|
|
|
|
2018-10-18 19:15:46 +02:00
|
|
|
config FLASH_SHELL
|
2022-03-09 12:05:12 +01:00
|
|
|
bool "Flash shell"
|
2019-10-04 13:13:29 +02:00
|
|
|
depends on SHELL && FLASH_PAGE_LAYOUT
|
2023-10-16 10:53:32 +02:00
|
|
|
select MPU_ALLOW_FLASH_WRITE if ARM_MPU
|
2018-10-18 19:15:46 +02:00
|
|
|
help
|
|
|
|
Enable the flash shell with flash related commands such as test,
|
|
|
|
write, read and erase.
|
|
|
|
|
2023-01-25 14:13:49 +01:00
|
|
|
if FLASH_SHELL
|
|
|
|
|
|
|
|
config FLASH_SHELL_TEST_COMMANDS
|
|
|
|
bool "Flash read/write/erase test commands"
|
|
|
|
select CBPRINTF_FP_SUPPORT
|
|
|
|
help
|
|
|
|
Enable additional flash shell commands for performing
|
|
|
|
read/write/erase tests with speed output.
|
|
|
|
|
|
|
|
config FLASH_SHELL_BUFFER_SIZE
|
|
|
|
hex "Flash shell buffer size"
|
|
|
|
default 0x4000 if FLASH_SHELL_TEST_COMMANDS
|
|
|
|
default 0x1000
|
|
|
|
range 0x400 0x1000000
|
|
|
|
help
|
|
|
|
Size of the buffer used for flash commands, will determine the
|
|
|
|
maximum size that can be used with a read/write test.
|
|
|
|
|
|
|
|
endif # FLASH_SHELL
|
|
|
|
|
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.
|
|
|
|
|
2022-11-10 14:38:47 +01:00
|
|
|
config FLASH_EX_OP_ENABLED
|
|
|
|
bool "API for extended flash operations"
|
|
|
|
depends on FLASH_HAS_EX_OP
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enables flash extended operations API. It can be used to perform
|
|
|
|
non-standard operations e.g. manipulating flash protection.
|
|
|
|
|
2021-12-01 20:13:02 +01:00
|
|
|
config FLASH_INIT_PRIORITY
|
|
|
|
int "Flash init priority"
|
|
|
|
default KERNEL_INIT_PRIORITY_DEVICE
|
|
|
|
help
|
|
|
|
Flash driver device initialization priority. This initialization
|
|
|
|
priority is used unless the driver implementation has its own
|
|
|
|
initialization priority
|
|
|
|
|
2021-07-26 11:48:22 +02:00
|
|
|
source "drivers/flash/Kconfig.b91"
|
|
|
|
|
2022-04-27 10:15:25 +02:00
|
|
|
source "drivers/flash/Kconfig.cc13xx_cc26xx"
|
|
|
|
|
2020-03-10 17:57:01 +01:00
|
|
|
source "drivers/flash/Kconfig.at45"
|
|
|
|
|
2021-02-26 16:04:09 +01:00
|
|
|
source "drivers/flash/Kconfig.esp32"
|
|
|
|
|
2020-12-25 11:23:44 +01:00
|
|
|
source "drivers/flash/Kconfig.it8xxx2"
|
|
|
|
|
2019-02-15 14:45:52 +01:00
|
|
|
source "drivers/flash/Kconfig.nrf"
|
2018-11-15 15:50:03 +01:00
|
|
|
|
2020-07-02 13:58:31 +02:00
|
|
|
source "drivers/flash/Kconfig.lpc"
|
|
|
|
|
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
|
|
|
|
2023-06-20 03:44:57 +02:00
|
|
|
source "drivers/flash/Kconfig.npcx_fiu"
|
|
|
|
|
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"
|
|
|
|
|
2022-07-14 20:08:36 +02:00
|
|
|
source "drivers/flash/Kconfig.rpi_pico"
|
|
|
|
|
2017-05-02 16:55:08 +02:00
|
|
|
source "drivers/flash/Kconfig.stm32"
|
2017-11-22 22:53:29 +01:00
|
|
|
|
2021-01-12 09:33:02 +01:00
|
|
|
source "drivers/flash/Kconfig.stm32_qspi"
|
|
|
|
|
2021-10-27 13:20:55 +02:00
|
|
|
source "drivers/flash/Kconfig.stm32_ospi"
|
|
|
|
|
2024-03-14 10:14:33 +01:00
|
|
|
source "drivers/flash/Kconfig.stm32_xspi"
|
|
|
|
|
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"
|
|
|
|
|
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"
|
|
|
|
|
2022-05-09 22:29:41 +02:00
|
|
|
source "drivers/flash/Kconfig.smartbond"
|
|
|
|
|
2022-03-10 14:07:40 +01:00
|
|
|
source "drivers/flash/Kconfig.cadence_qspi_nor"
|
|
|
|
|
2022-08-31 18:28:33 +02:00
|
|
|
source "drivers/flash/Kconfig.gd32"
|
|
|
|
|
2022-09-01 20:26:11 +02:00
|
|
|
source "drivers/flash/Kconfig.xmc4xxx"
|
|
|
|
|
2023-04-20 20:49:08 +02:00
|
|
|
source "drivers/flash/Kconfig.ifx_cat1"
|
2023-06-06 07:02:03 +02:00
|
|
|
source "drivers/flash/Kconfig.cadence_nand"
|
2023-04-20 20:49:08 +02:00
|
|
|
|
2023-07-20 15:10:29 +02:00
|
|
|
source "drivers/flash/Kconfig.numaker"
|
|
|
|
|
2023-07-07 18:31:50 +02:00
|
|
|
source "drivers/flash/Kconfig.nxp_s32"
|
|
|
|
|
2023-05-31 10:49:08 +02:00
|
|
|
source "drivers/flash/Kconfig.andes"
|
|
|
|
|
2023-10-24 10:17:12 +02:00
|
|
|
source "drivers/flash/Kconfig.ambiq"
|
|
|
|
|
2023-06-23 13:11:20 +02:00
|
|
|
source "drivers/flash/Kconfig.nrf_rram"
|
|
|
|
|
2024-03-05 14:18:50 +01:00
|
|
|
source "drivers/flash/Kconfig.nrf_mram"
|
|
|
|
|
2024-03-11 09:33:47 +01:00
|
|
|
source "drivers/flash/Kconfig.numaker_rmc"
|
|
|
|
|
2019-03-07 05:45:23 +01:00
|
|
|
endif # FLASH
|