summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-06-14 21:28:25 -0600
committerSimon Glass <sjg@chromium.org>2017-07-11 10:08:19 -0600
commit10e40d54b38b9b1916c35fc5c4ed2eff4b4bf117 (patch)
tree9419ee914045bb5b7e971b5dedc2acf680437222 /api
parent3bf926c0dd01e7beb3a6815b2e0f28e989fe4120 (diff)
Kconfig: Add CONFIG_SATA to enable SATA
At present CONFIG_CMD_SATA enables the 'sata' command which also brings in SATA support. Some boards may wish to enable SATA without the command. Add a separate CONFIG to permit this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'api')
-rw-r--r--api/api_storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/api_storage.c b/api/api_storage.c
index 8bed2f3c91..6fc6f44925 100644
--- a/api/api_storage.c
+++ b/api/api_storage.c
@@ -63,7 +63,7 @@ void dev_stor_init(void)
specs[ENUM_MMC].type = DEV_TYP_STOR | DT_STOR_MMC;
specs[ENUM_MMC].name = "mmc";
#endif
-#if defined(CONFIG_CMD_SATA)
+#if defined(CONFIG_SATA)
specs[ENUM_SATA].max_dev = CONFIG_SYS_SATA_MAX_DEVICE;
specs[ENUM_SATA].enum_started = 0;
specs[ENUM_SATA].enum_ended = 0;