mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-30 14:25:22 +00:00
Add support for DMA based STM32 QSPI NOR flash controller. Driver configures both NOR flash and also QSPI hardware block. Reuses existing jesd216 library. QSPI hardware block handling is done through the use of Cube HAL API. This requires the use of HAL interface also for DMA besides zephyr DMA driver. Zephyr DMA driver is used only for IRQ routing while HAL driver handles the IP block. To achieve this it is required to: -Configure both Cube and Zephyr drivers at init. -Inform Zephyr driver that current channel handling will be done by another instance and only a limited configuration should be done. For this last part, a unused parameter is overridden in order to transmit the information. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org> Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
88 lines
1.9 KiB
Plaintext
88 lines
1.9 KiB
Plaintext
# 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.
|
|
|
|
config FLASH_JESD216
|
|
bool
|
|
help
|
|
Selected by drivers that support JESD216-compatible flash
|
|
devices to enable building a common support module.
|
|
|
|
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.
|
|
|
|
menuconfig FLASH
|
|
bool "Flash hardware support"
|
|
help
|
|
Enable support for the flash hardware.
|
|
|
|
if FLASH
|
|
|
|
module = FLASH
|
|
module-str = flash
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
config FLASH_SHELL
|
|
bool "Enable Flash shell"
|
|
depends on SHELL && FLASH_PAGE_LAYOUT
|
|
default y
|
|
help
|
|
Enable the flash shell with flash related commands such as test,
|
|
write, read and erase.
|
|
|
|
config FLASH_PAGE_LAYOUT
|
|
bool "API for retrieving the layout of pages"
|
|
depends on FLASH_HAS_PAGE_LAYOUT
|
|
default y
|
|
help
|
|
Enables API for retrieving the layout of flash memory pages.
|
|
|
|
source "drivers/flash/Kconfig.at45"
|
|
|
|
source "drivers/flash/Kconfig.nrf"
|
|
|
|
source "drivers/flash/Kconfig.mcux"
|
|
|
|
source "drivers/flash/Kconfig.nios2_qspi"
|
|
|
|
source "drivers/flash/Kconfig.gecko"
|
|
|
|
source "drivers/flash/Kconfig.nor"
|
|
|
|
source "drivers/flash/Kconfig.stm32"
|
|
|
|
source "drivers/flash/Kconfig.stm32_qspi"
|
|
|
|
source "drivers/flash/Kconfig.sam0"
|
|
|
|
source "drivers/flash/Kconfig.sam"
|
|
|
|
source "drivers/flash/Kconfig.simulator"
|
|
|
|
source "drivers/flash/Kconfig.rv32m1"
|
|
|
|
source "drivers/flash/Kconfig.nordic_qspi_nor"
|
|
|
|
endif # FLASH
|