mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-27 13:23:44 +09:00
b3d023b405
CONFIG_SPI does not exist in Kconfig in the first place, so the dependency "depends on DM && SPI" is never met, i.e., DM_SPI_FLASH can never be enabled (unless you ignore the dependency in an illegal way. See below.) Actually, some defconfigs such as socfpga_*_defconfig define CONFIG_DM_SPI_FLASH=y, but it never appears in the .config file because of this wrong dependency. On the other hand, all the Tegra boards enable DM_SPI_FLASH because config DM_SPI_FLASH default y silently ignores the dependency. Unfortunately, this style of CONFIG definition is abused everywhere in U-Boot, so we easily miss such a wrong dependency. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Simon Glass <sjg@chromium.org>
15 lines
658 B
Plaintext
15 lines
658 B
Plaintext
config DM_SPI_FLASH
|
|
bool "Enable Driver Model for SPI flash"
|
|
depends on DM && DM_SPI
|
|
help
|
|
Enable driver model for SPI flash. This SPI flash interface
|
|
(spi_flash_probe(), spi_flash_write(), etc.) is then
|
|
implemented by the SPI flash uclass. There is one standard
|
|
SPI flash driver which knows how to probe most chips
|
|
supported by U-Boot. The uclass interface is defined in
|
|
include/spi_flash.h, but is currently fully compatible
|
|
with the old interface to avoid confusion and duplication
|
|
during the transition parent. SPI and SPI flash must be
|
|
enabled together (it is not possible to use driver model
|
|
for one and not the other).
|