summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-17 03:25:30 -0600
committerTom Rini <trini@konsulko.com>2017-05-22 12:45:27 -0400
commitfc843a02acad62e231a3e779cebd1712688146fc (patch)
treeb2811ec28b2378f0b471d3173e59768834d41929 /cmd
parent75eb9976b78ace0e667c1f5faf367acfaed141df (diff)
Kconfig: Add a CONFIG_IDE option
At present IDE support is controlled by CONFIG_CMD_IDE. Add a separate CONFIG_IDE option so that IDE support can be enabled without requiring the 'ide' command. Update existing users and move the ide driver into drivers/block since it should not be in common/. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Kconfig1
-rw-r--r--cmd/pcmcia.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 2c89a773d0..1268e38b59 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -486,6 +486,7 @@ config CMD_DEMO
config CMD_IDE
bool "ide - Support for IDE drivers"
+ select IDE
help
Provides an 'ide' command which allows accessing the IDE drive,
reseting the IDE interface, printing the partition table and
diff --git a/cmd/pcmcia.c b/cmd/pcmcia.c
index 682d18f55d..044fb9e618 100644
--- a/cmd/pcmcia.c
+++ b/cmd/pcmcia.c
@@ -83,7 +83,7 @@ U_BOOT_CMD(
#undef CHECK_IDE_DEVICE
-#if defined(CONFIG_CMD_IDE) && defined(CONFIG_IDE_8xx_PCCARD)
+#if defined(CONFIG_IDE) && defined(CONFIG_IDE_8xx_PCCARD)
#define CHECK_IDE_DEVICE
#endif