From: Jagan Teki Date: Wed, 16 Oct 2019 12:29:42 +0000 (+0530) Subject: cmd: sf: Mark it default if DM_SPI_FLASH enabled X-Git-Tag: v2020.01-rc1~3^2~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c2af7fb1ff6f8d6489bdba4216128cbb08ae4243;p=oweals%2Fu-boot.git cmd: sf: Mark it default if DM_SPI_FLASH enabled If DM_SPI_FLASH enabled that means it is using sf command for flash interface to access. SPI_FLASH can be used via sf command and board/driver functions to call spi flash ops, so mark it default only for DM_SPI_FLASH. This would prevent explicit adding of CONFIG_CMD_SF when DM_SPI_FLASH being enabled. Cc: Tom Rini Acked-by: Vignesh Raghavendra Signed-off-by: Jagan Teki --- diff --git a/cmd/Kconfig b/cmd/Kconfig index 82b5d300d2..b08a709857 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1168,6 +1168,7 @@ config CMD_SDRAM config CMD_SF bool "sf" depends on DM_SPI_FLASH || SPI_FLASH + default y if DM_SPI_FLASH help SPI Flash support