summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-10-28 20:27:06 -0400
committerTom Rini <trini@konsulko.com>2022-11-10 10:08:55 -0500
commit9ba938e744d81e0164f5abbd087c461596ad63d4 (patch)
tree7edb63eb23c0c9f2c52ef9d363ebaa83722814e1 /api
parent75fc79e530eb01428ba4064b2693214efdfb2ee2 (diff)
downloadu-boot-9ba938e744d81e0164f5abbd087c461596ad63d4.tar.gz
u-boot-9ba938e744d81e0164f5abbd087c461596ad63d4.tar.bz2
u-boot-9ba938e744d81e0164f5abbd087c461596ad63d4.zip
Convert CONFIG_SYS_MMC_MAX_DEVICE to Kconfig
This converts the following to Kconfig: CONFIG_SYS_MMC_MAX_DEVICE Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'api')
-rw-r--r--api/Kconfig5
-rw-r--r--api/api_storage.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/api/Kconfig b/api/Kconfig
index 382aa4ad3f..eb8d5d0596 100644
--- a/api/Kconfig
+++ b/api/Kconfig
@@ -5,4 +5,9 @@ config API
help
This option enables the U-Boot API. See api/README for more information.
+config SYS_MMC_MAX_DEVICE
+ int "Maximum number of MMC devices exposed via the API"
+ depends on API
+ default 1
+
endmenu
diff --git a/api/api_storage.c b/api/api_storage.c
index adca44b4fd..997e8727a9 100644
--- a/api/api_storage.c
+++ b/api/api_storage.c
@@ -44,10 +44,6 @@ struct stor_spec {
static struct stor_spec specs[ENUM_MAX] = { { 0, 0, 0, 0, NULL }, };
-#ifndef CONFIG_SYS_MMC_MAX_DEVICE
-#define CONFIG_SYS_MMC_MAX_DEVICE 1
-#endif
-
void dev_stor_init(void)
{
#if defined(CONFIG_IDE)