Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D9BF7FA3741 for ; Sat, 29 Oct 2022 00:29:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 08E8A850F7; Sat, 29 Oct 2022 02:28:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="aQcR/VjQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2391A850D4; Sat, 29 Oct 2022 02:27:37 +0200 (CEST) Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 91545850D2 for ; Sat, 29 Oct 2022 02:27:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x836.google.com with SMTP id hh9so4491405qtb.13 for ; Fri, 28 Oct 2022 17:27:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ReIQXgniwPrSkpYCmP64wTxmwyJRQMW4SkSZ/QoNf4E=; b=aQcR/VjQYPzx+xhBGKTLd6ZQ52lYor2+Dpm2IRlKLEeSf6KAsPPPl2nwVSvuAWM16C GZQPqN1yu2487Hv3UoxjoFmKxnjzyh9JMYpWe4dcrKHemuKpuD9+n2dU9kRfv83n6uCn shtUNY4c0+NCcV9kTBxvNBavPoWOPFcZ22Elw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ReIQXgniwPrSkpYCmP64wTxmwyJRQMW4SkSZ/QoNf4E=; b=Vz2EOr9PzOXbQf7+zpbJnA7u+RpPnQrNWcdFdRSGXI/BElfgBmkJKywLgKFA4/Nsqx WtNx1NaC5Np+MFrNTyJ4RpXM0ccH4RANBmBHtoxsZjBuJoZe02mz0ObVdl0wHdTiAjP2 pyjEBuwyIcZWRu5Qw3XpOdLUvOAe2aCaYmJr1mETkcvfJH4IfYxs07QYJygzB6Z83Hlu YtcNNcacKNWfHrexIG2DxE6Pi5S+xMsJOc3w+0sL8S14whenU9UO4pzYFg9u9KfoT1pA sljhb6pZ+WacJwn8ALrp6xWctv/IvykUYx/cMjOz4sPZI+B+q+PhRQUsI4JXHO8lTloD QmIQ== X-Gm-Message-State: ACrzQf1+EfXiMuUkRLc0iUhUvKFq5KiZ63j3SEpCpl2kXVdil8uCLvKK nADPGfcWmWztisKExQ1VgucbxFbhIcly2g== X-Google-Smtp-Source: AMsMyM4khW/QTti4Ju0l57lr/+owbKrVAsu1CCDHXE3sqn4cAki+jpf2jtaez3i5UN4Y4sUB5pspiw== X-Received: by 2002:a05:622a:1a97:b0:3a5:2:4677 with SMTP id s23-20020a05622a1a9700b003a500024677mr1861735qtc.434.1667003244029; Fri, 28 Oct 2022 17:27:24 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-21a2-cb17-4547-06d4.res6.spectrum.com. [2603:6081:7b00:6400:21a2:cb17:4547:6d4]) by smtp.gmail.com with ESMTPSA id v7-20020a05622a144700b00398313f286dsm65130qtx.40.2022.10.28.17.27.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 17:27:23 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 13/21] Convert CONFIG_SYS_MMC_MAX_DEVICE to Kconfig Date: Fri, 28 Oct 2022 20:27:06 -0400 Message-Id: <20221029002714.1598153-13-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029002714.1598153-1-trini@konsulko.com> References: <20221029002714.1598153-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean This converts the following to Kconfig: CONFIG_SYS_MMC_MAX_DEVICE Signed-off-by: Tom Rini --- api/Kconfig | 5 +++++ api/api_storage.c | 4 ---- include/configs/am335x_evm.h | 18 ------------------ include/configs/stm32mp13_common.h | 3 --- include/configs/stm32mp15_common.h | 3 --- include/configs/sunxi-common.h | 2 -- include/configs/tegra-common.h | 7 ------- include/configs/zynq-common.h | 3 --- 8 files changed, 5 insertions(+), 40 deletions(-) diff --git a/api/Kconfig b/api/Kconfig index 382aa4ad3f02..eb8d5d0596a7 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 adca44b4fd22..997e8727a965 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) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index bd7e2f1bf503..8eefaf24b28d 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -192,24 +192,6 @@ DFU_ALT_INFO_NAND #endif -/* - * Default to using SPI for environment, etc. - * 0x000000 - 0x020000 : SPL (128KiB) - * 0x020000 - 0x0A0000 : U-Boot (512KiB) - * 0x0A0000 - 0x0BFFFF : First copy of U-Boot Environment (128KiB) - * 0x0C0000 - 0x0DFFFF : Second copy of U-Boot Environment (128KiB) - * 0x0E0000 - 0x442000 : Linux Kernel - * 0x442000 - 0x800000 : Userland - */ -#if defined(CONFIG_SPI_BOOT) -/* SPL related */ -#elif defined(CONFIG_EMMC_BOOT) -#define CONFIG_SYS_MMC_MAX_DEVICE 2 -#endif - -/* Network. */ -/* Enable Atheros phy driver */ - /* * NOR Size = 16 MiB * Number of Sectors/Blocks = 128 diff --git a/include/configs/stm32mp13_common.h b/include/configs/stm32mp13_common.h index 222e69c20c01..07a5bfc8a86e 100644 --- a/include/configs/stm32mp13_common.h +++ b/include/configs/stm32mp13_common.h @@ -21,9 +21,6 @@ */ #define CONFIG_SYS_BOOTMAPSZ SZ_256M -/*MMC SD*/ -#define CONFIG_SYS_MMC_MAX_DEVICE 2 - /* NAND support */ /*****************************************************************************/ diff --git a/include/configs/stm32mp15_common.h b/include/configs/stm32mp15_common.h index 9dad2a8ebdca..66b4638b312f 100644 --- a/include/configs/stm32mp15_common.h +++ b/include/configs/stm32mp15_common.h @@ -21,9 +21,6 @@ */ #define CONFIG_SYS_BOOTMAPSZ SZ_256M -/*MMC SD*/ -#define CONFIG_SYS_MMC_MAX_DEVICE 3 - /* NAND support */ /* Ethernet need */ diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 93a56b5c575b..183af45f556f 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -78,8 +78,6 @@ /* mmc config */ #define CONFIG_MMC_SUNXI_SLOT 0 -#define CONFIG_SYS_MMC_MAX_DEVICE 4 - /* * Miscellaneous configurable options */ diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h index 159ba093f299..2915db7f8bf7 100644 --- a/include/configs/tegra-common.h +++ b/include/configs/tegra-common.h @@ -28,13 +28,6 @@ */ #define CONFIG_SYS_NS16550_CLK V_NS16550_CLK -/* - * Common HW configuration. - * If this varies between SoCs later, move to tegraNN-common.h - * Note: This is number of devices, not max device ID. - */ -#define CONFIG_SYS_MMC_MAX_DEVICE 4 - #ifdef CONFIG_ARM64 #define FDTFILE "nvidia/" CONFIG_DEFAULT_DEVICE_TREE ".dtb" #else diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index e194e77e5b77..6574cf92e26e 100644 --- a/include/configs/zynq-common.h +++ b/include/configs/zynq-common.h @@ -195,9 +195,6 @@ /* Extend size of kernel image for uncompression */ -/* Boot FreeBSD/vxWorks from an ELF image */ -#define CONFIG_SYS_MMC_MAX_DEVICE 1 - /* Address in RAM where the parameters must be copied by SPL. */ /* Not using MMC raw mode - just for compilation purpose */ -- 2.25.1