u-boot/drivers/mtd/spi
Masahiro Yamada b3d023b405 dm: spi_flash: fix wrong dependency
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>
2015-04-18 11:11:30 -06:00
..
eeprom_m95xxx.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_espi_spl.c driver: Add support of image load for MMC & SPI in SPL 2014-04-22 17:58:50 -07:00
Kconfig dm: spi_flash: fix wrong dependency 2015-04-18 11:11:30 -06:00
Makefile mtd: sf: Zap ramtron driver 2014-12-18 18:17:54 +05:30
sandbox.c dm: spi: Move slave details to child platdata 2015-01-29 17:09:56 -07:00
sf-uclass.c dm: sf: Add driver model read/write/erase methods 2015-04-18 11:11:14 -06:00
sf.c sf: Add CONFIG_SF_DUAL_FLASH 2014-01-12 21:40:22 +05:30
sf_internal.h sf: Enable byte program support 2014-12-13 15:08:04 -07:00
sf_ops.c spi: sf: Support byte program for sst spi flash 2014-12-13 15:08:04 -07:00
sf_params.c sf: sf_params: Add S25FL164K flash identifier info 2014-12-18 18:48:30 +05:30
sf_probe.c common: Make sure arch-specific map_sysmem() is defined 2015-04-18 11:11:09 -06:00
spi_spl_load.c sf: Tidy up public and private header files 2014-10-22 10:36:50 -06:00