summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2022-10-28 20:27:06 -0400
committerTom Rini <[email protected]>2022-11-10 10:08:55 -0500
commit9ba938e744d81e0164f5abbd087c461596ad63d4 (patch)
tree7edb63eb23c0c9f2c52ef9d363ebaa83722814e1 /api
parent75fc79e530eb01428ba4064b2693214efdfb2ee2 (diff)
Convert CONFIG_SYS_MMC_MAX_DEVICE to Kconfig
This converts the following to Kconfig: CONFIG_SYS_MMC_MAX_DEVICE Signed-off-by: Tom Rini <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Jaehoon Chung <[email protected]>
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 382aa4ad3f0..eb8d5d0596a 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 adca44b4fd2..997e8727a96 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)