mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-24 01:15:47 +00:00
These are from source'ing a file within an 'if FLASH', and then adding another 'depends on FLASH' within it. 'if FOO' is just shorthand for adding 'depends on FOO' to each item within the 'if'. There are no "conditional includes" in Kconfig, so 'if FOO' has no special meaning around a 'source'. Conditional includes wouldn't be possible, because an 'if' condition could include (directly or indirectly) forward references to symbols not defined yet. Tip: When adding a symbol, check its dependencies in the menuconfig ('ninja menuconfig', then / to jump to the symbol). The menuconfig also shows how the file with the symbol got included, so if you see duplicated dependencies, it's easy to hunt down where they come from. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
42 lines
770 B
Plaintext
42 lines
770 B
Plaintext
#
|
|
# Copyright (c) 2018 Savoir-Faire Linux.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
|
|
menuconfig SPI_NOR
|
|
bool "SPI NOR Flash"
|
|
select FLASH_HAS_DRIVER_ENABLED
|
|
depends on SPI
|
|
|
|
if SPI_NOR
|
|
|
|
config SPI_NOR_INIT_PRIORITY
|
|
int
|
|
default 80
|
|
help
|
|
Device driver initialization priority.
|
|
Device is connected to SPI bus, it has to
|
|
be initialized after SPI driver.
|
|
|
|
config SPI_NOR_CS_WAIT_DELAY
|
|
int "Delay time in us"
|
|
default 0
|
|
help
|
|
This is the wait delay (in us) to allow for CS switching to take effect
|
|
|
|
config SPI_NOR_PAGE_SIZE
|
|
int "Page size of SPI flash"
|
|
default 0
|
|
help
|
|
This option specifies page size of SPI flash
|
|
|
|
config SPI_NOR_SECTOR_SIZE
|
|
int "Sector size of SPI flash"
|
|
default 0
|
|
help
|
|
This option specifies sector size of SPI flash
|
|
|
|
endif # SPI_NOR
|