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>
45 lines
972 B
Plaintext
45 lines
972 B
Plaintext
#
|
|
# Copyright (c) 2018 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
menuconfig SOC_FLASH_QMSI
|
|
bool "QMSI flash driver"
|
|
depends on QMSI
|
|
select FLASH_HAS_DRIVER_ENABLED
|
|
help
|
|
Enable QMSI Quark flash driver.
|
|
|
|
if SOC_FLASH_QMSI
|
|
|
|
config SOC_FLASH_QMSI_DEV_NAME
|
|
string "QMSI flash device name"
|
|
default "QUARK_FLASH"
|
|
help
|
|
Specify the device name for the flash driver.
|
|
|
|
config SOC_FLASH_QMSI_CLK_COUNT_US
|
|
int "System clk count per microsecond"
|
|
default 32
|
|
help
|
|
Specify the system clk cycles per microsecond.
|
|
|
|
config SOC_FLASH_QMSI_WAIT_STATES
|
|
int "The number of flash wait states"
|
|
default 1
|
|
help
|
|
Specify the number of wait states for Quark flash.
|
|
|
|
config SOC_FLASH_QMSI_SYS_SIZE
|
|
hex "SOC system flash size"
|
|
help
|
|
Specify system flash size on the Quark SOC.
|
|
|
|
config SOC_FLASH_QMSI_API_REENTRANCY
|
|
bool "flash driver API reentrancy for QMSI shim driver"
|
|
help
|
|
Enable support for QMSI flash driver API reentrancy.
|
|
|
|
endif # SOC_FLASH_QMSI
|