]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: spi: Kconfig: Imply SPI_FLASH if DM_SPI_FLASH
authorJagan Teki <jagan@amarulasolutions.com>
Wed, 16 Oct 2019 12:37:24 +0000 (18:07 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 24 Oct 2019 19:18:31 +0000 (00:48 +0530)
DM_SPI_FLASH should require spi flash interface code for dm
version, so imply SPI_FLASH core by default if any board
enabled DM_SPI_FLASH.

This overcome the explicit enablement of CONFIG_SPI_FLASH on
respective boards when DM_SPI_FLASH being used.

Acked-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/mtd/spi/Kconfig

index a0cfc623c6fcf849ffe951cbf44da363adb11fc4..681dc9ccccff18fdc699d29331a88b970fe2c9a7 100644 (file)
@@ -3,6 +3,7 @@ menu "SPI Flash Support"
 config DM_SPI_FLASH
        bool "Enable Driver Model for SPI flash"
        depends on DM && DM_SPI
+       imply SPI_FLASH
        help
          Enable driver model for SPI flash. This SPI flash interface
          (spi_flash_probe(), spi_flash_write(), etc.) is then