summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-05-29 17:01:28 -0400
committerJagan Teki <jagan@amarulasolutions.com>2019-06-13 12:51:06 +0530
commita4298ddaf8bbccf8a14acb6be33764eecbea9abd (patch)
treebacd31a2b7e884dd1ddb09739cce2f85e09cb6cf /cmd
parent9a4b90015a6a03c14071802f8bf49a17e0be6b16 (diff)
Kconfig: Add SPI / SPI_FLASH as dependencies
In order to use CMD_SF / CMD_SPI / ENV_IS_IN_SPI_FLASH we need to have the SPI (or SPI_FLASH/DM_SPI_FLASH, for CMD_SF) enabled. Express this in the Kconfigs. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 0badcb3fe0..cda7931fe3 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1035,11 +1035,13 @@ config CMD_SDRAM
config CMD_SF
bool "sf"
+ depends on DM_SPI_FLASH || SPI_FLASH
help
SPI Flash support
config CMD_SF_TEST
bool "sf test - Allow testing of SPI flash"
+ depends on CMD_SF
help
Provides a way to test that SPI flash is working correctly. The
test is destructive, in that an area of SPI flash must be provided
@@ -1051,6 +1053,7 @@ config CMD_SF_TEST
config CMD_SPI
bool "sspi - Command to access spi device"
+ depends on SPI
help
SPI utility command.