From patchwork Thu Oct 3 17:50:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 1171320 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bootlin.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46kgnd4t2nz9sCJ for ; Fri, 4 Oct 2019 04:02:13 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 47B6DC21DD4; Thu, 3 Oct 2019 17:58:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=KHOP_BIG_TO_CC autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 851D4C21F9D; Thu, 3 Oct 2019 17:51:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BED43C21F48; Thu, 3 Oct 2019 17:51:55 +0000 (UTC) Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lists.denx.de (Postfix) with ESMTPS id 8E464C21DD4 for ; Thu, 3 Oct 2019 17:51:38 +0000 (UTC) X-Originating-IP: 91.224.148.103 Received: from localhost.localdomain (unknown [91.224.148.103]) (Authenticated sender: miquel.raynal@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 47DE4E0008; Thu, 3 Oct 2019 17:51:36 +0000 (UTC) From: Miquel Raynal To: Boris Brezillon , Marek Vasut , Jagan Teki , Tom Rini , u-boot@lists.denx.de Date: Thu, 3 Oct 2019 19:50:27 +0200 Message-Id: <20191003175028.17015-26-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191003175028.17015-1-miquel.raynal@bootlin.com> References: <20191003175028.17015-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Cc: Kyungmin Park , Sumit Garg , Pramod Kumar , Thomas Petazzoni , Miquel Raynal , Steve Rae , TsiChung Liew , Mingkai Hu Subject: [U-Boot] [PATCH v5 25/26] cmd: make MTD commands depend on MTD X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Defconfigs have been fixed, now we can add proper dependencies in Kconfig. SPI FLASH is still not dependent on MTD (deeper rework needed). Signed-off-by: Miquel Raynal --- cmd/Kconfig | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 33adf29a96..01d4330e04 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -799,6 +799,7 @@ config CMD_FDC config CMD_FLASH bool "flinfo, erase, protect" default y + depends on MTD help NOR flash support. flinfo - print FLASH memory information @@ -988,6 +989,7 @@ config CMD_MMC_SWRITE config CMD_MTD bool "mtd" + depends on MTD select MTD_PARTITIONS help MTD commands support. @@ -995,6 +997,7 @@ config CMD_MTD config CMD_NAND bool "nand" default y if NAND_SUNXI + depends on MTD_RAW_NAND help NAND support. @@ -1026,6 +1029,7 @@ config CMD_NVME config CMD_ONENAND bool "onenand - access to onenand device" + depends on MTD help OneNAND is a brand of NAND ('Not AND' gate) flash which provides various useful features. This command allows reading, writing, @@ -1895,7 +1899,7 @@ config CMD_JFFS2 config CMD_MTDPARTS bool "MTD partition support" - select MTD if (CMD_NAND || NAND) + depends on MTD help MTD partitioning tool support. It is strongly encouraged to avoid using this command @@ -1915,14 +1919,14 @@ config CMD_MTDPARTS_SPREAD config MTDIDS_DEFAULT string "Default MTD IDs" - depends on MTD_PARTITIONS || CMD_MTDPARTS || CMD_NAND || CMD_FLASH + depends on MTD || SPI_FLASH help Defines a default MTD IDs list for use with MTD partitions in the Linux MTD command line partitions format. config MTDPARTS_DEFAULT string "Default MTD partition scheme" - depends on MTD_PARTITIONS || CMD_MTDPARTS || CMD_NAND || CMD_FLASH + depends on MTD || SPI_FLASH help Defines a default MTD partitioning scheme in the Linux MTD command line partitions format