From patchwork Wed Jan 24 14:25:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 865374 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; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UFs8EYIe"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zRSBR2krbz9ryr for ; Thu, 25 Jan 2018 01:25:35 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 01B0EC22243; Wed, 24 Jan 2018 14:25:31 +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=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID 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 3376CC21F2B; Wed, 24 Jan 2018 14:25:29 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A9531C21F2B; Wed, 24 Jan 2018 14:25:27 +0000 (UTC) Received: from mail-it0-f67.google.com (mail-it0-f67.google.com [209.85.214.67]) by lists.denx.de (Postfix) with ESMTPS id 1D0D2C21C93 for ; Wed, 24 Jan 2018 14:25:27 +0000 (UTC) Received: by mail-it0-f67.google.com with SMTP id b77so5382983itd.0 for ; Wed, 24 Jan 2018 06:25:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=e7C7DjujRoPnisCXdbhNL5CZrrnpTnxgmAjtkiVeOj8=; b=UFs8EYIe6Q2HeextwygXY9BDnkjgwlew3OkEGh/J1Lf1DAqTsvtNRZWsw3Ont0+H/r 8JhJad3h0t9r9IfakLhEsElleE8TbkN53jXj9JpEkI2MbVeya4z/6qYZrXnm7q/R4zX4 fcIVu5ksuPa4cNrRcJmHIB8I7ArSrhjfnBkEgYfAT74V+7SOvhnGQoS5mJn7UngvtEM/ fS7aByOjDs5i7c/u8xY9hxVLzzpKHa96V5BIMwqILP35RJR8UjmZj3lXHG1BX98veJ8k nCP/wBRwHBIHezLuvL2E9gPaGA+KxuyQk/4lrcCMnedAoaUImRSIF0FiyWVJMPItKyyA aYPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=e7C7DjujRoPnisCXdbhNL5CZrrnpTnxgmAjtkiVeOj8=; b=TCBVwVN6Orm/yORTc2ugcfnAXXCgSPTWfumsOwlfvDoa3S+Ez0JeDH/qLCznGGoK+S OIaw97nwb6tQ4/6WchHOurI2Fw8IDFP4uI7sDmx+m5iuHGwv4tbfowTPeKxO+yhzbFUL gG81JsjN2eNnsWkx7R/iFvLvu6odZY/quLemXey8htfliJzW/FYUrxhyjvLeOz/aMPoG DK08VDkW753+L5MhVgF2h/UjwuInT7vp/YhERWK7KhWujftujbkmqYlTv6O7g3m7l0VU SP8J65tS8wjFr9H0DYv8U3QUY6eDwK7forq5qVD0lVE8OtvNjvhKIpAQaxRnQb9sZINm eyug== X-Gm-Message-State: AKwxytfXnkzBlAbTSimhp/Dgg+pTAVnwan6qOOVrD//mO3I85/yUA0jk SR8uErE7X18kFKI8A+lOAEI= X-Google-Smtp-Source: AH8x22415gV8uJ91izEFph4S+nIycooZcu2iLr2fvhN0DcF3+dD5yekVTlz82Cvzr9dr2qXsjjqOTQ== X-Received: by 10.36.36.151 with SMTP id f145mr8604359ita.103.1516803925459; Wed, 24 Jan 2018 06:25:25 -0800 (PST) Received: from ubuntu16.lan (c-73-65-120-235.hsd1.mn.comcast.net. [73.65.120.235]) by smtp.gmail.com with ESMTPSA id v4sm241907iod.64.2018.01.24.06.25.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Jan 2018 06:25:25 -0800 (PST) From: Adam Ford To: adam.ford@logicpd.com Date: Wed, 24 Jan 2018 08:25:17 -0600 Message-Id: <1516803917-20805-1-git-send-email-aford173@gmail.com> X-Mailer: git-send-email 2.7.4 Cc: Scott Wood , u-boot@lists.denx.de Subject: [U-Boot] [PATCH] mtd: nand: Kconfig Setup missing NAND dependencies based on ARCH 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" To avoid clutter in the NAND menu, let's make the NAND controllers dependent on which ARCH type uses them. This way, we cannot accidentally try to enable a NAND controller that doesn't exist. This is based on Convert CONFIG_SYS_MAX_NAND_DEVICE to Kconfig and add CONFIG_NAND that was just submitted. Signed-off-by: Adam Ford diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index e991440..96c118f 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig @@ -9,6 +9,7 @@ config SYS_NAND_SELF_INIT This option, if enabled, provides more flexible and linux-like NAND initialization process. +if ARCH_UNIPHIER config NAND_DENALI bool select SYS_NAND_SELF_INIT @@ -31,6 +32,8 @@ config NAND_DENALI_SPARE_AREA_SKIP_BYTES of OOB area before last ECC sector data starts. This is potentially used to preserve the bad block marker in the OOB area. +endif + config NAND_OMAP_GPMC bool "Support OMAP GPMC NAND controller" depends on ARCH_OMAP2PLUS @@ -87,6 +90,7 @@ endchoice config NAND_PXA3XX bool "Support for NAND on PXA3xx and Armada 370/XP/38x" + depends on ARCH_MVEBU select SYS_NAND_SELF_INIT imply CMD_NAND help @@ -123,6 +127,7 @@ endif config NAND_ARASAN bool "Configure Arasan Nand" + depends on ARCH_ZYNQMP imply CMD_NAND help This enables Nand driver support for Arasan nand flash @@ -147,6 +152,7 @@ config NAND_MXS config NAND_ZYNQ bool "Support for Zynq Nand controller" + depends on ARCH_ZYNQ select SYS_NAND_SELF_INIT imply CMD_NAND help @@ -226,6 +232,7 @@ config SPL_NAND_AM33XX_BCH config SPL_NAND_DENALI bool "Support Denali NAND controller for SPL" + depends on ARCH_UNIPHIER help This is a small implementation of the Denali NAND controller for use on SPL.