mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 07:12:31 +00:00
Add a driver that can handle several instances of AT45 family chips, which are enabled by specifying DT nodes for them with the "compatible" property set to "atmel,at45" and other required properties like JEDEC ID, chip capacity, block and page size etc. configured accordingly. The driver is only capable of using "power of 2" binary page sizes in those chips and at initialization configures them to work in that mode (unless it is already done). Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
72 lines
1.4 KiB
Plaintext
72 lines
1.4 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.
|
|
|
|
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
|
|
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.sam0"
|
|
|
|
source "drivers/flash/Kconfig.sam"
|
|
|
|
source "drivers/flash/Kconfig.w25qxxdv"
|
|
|
|
source "drivers/flash/Kconfig.simulator"
|
|
|
|
source "drivers/flash/Kconfig.rv32m1"
|
|
|
|
source "drivers/flash/Kconfig.nordic_qspi_nor"
|
|
|
|
endif # FLASH
|