From patchwork Wed Dec 6 04:51:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 845030 X-Patchwork-Delegate: yamada.m@jp.panasonic.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=nifty.com header.i=@nifty.com header.b="Opw86tSo"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3ys5p124FLz9sNx for ; Wed, 6 Dec 2017 15:52:39 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 1B0C7C21EC8; Wed, 6 Dec 2017 04:52:33 +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=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 8E734C21DCE; Wed, 6 Dec 2017 04:52:30 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0CCABC21DE7; Wed, 6 Dec 2017 04:52:28 +0000 (UTC) Received: from conuserg-11.nifty.com (conuserg-11.nifty.com [210.131.2.78]) by lists.denx.de (Postfix) with ESMTPS id B17CCC21DCE for ; Wed, 6 Dec 2017 04:52:27 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id vB64proB027221; Wed, 6 Dec 2017 13:51:54 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com vB64proB027221 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1512535914; bh=CKYMoggES8MeqB9poECzI5gxtGx/qqXz4ganLa2nkh4=; h=From:To:Cc:Subject:Date:From; b=Opw86tSoSQIeIiednhW71xoDCbAmSfYuUYk9eUmJJYDYp59w10fmaU+LghC7leB9Y 7ygSQ98d3Uz61wO/hd5rAglnR9nCL8VHfVGNPRDsTiraiOfmowFI1bLKBw9jEOvPbS e2h7WEVsIGhKc0/VInxdulq3gXYjYS5mRsyL+4OsZlGRb6umGWlzADr+QBSAd8P3YM syZkgol+INZ6HsjVv6107x7oAVhGmPw/EOb1zkB0Jd/WE29+IAVvlztfcSQ1/dkA/G HxEzz14xy2Jo5+Pmefc3+rzv6anJcdT4TLKe8WPOw1IT+cqCAFFo4wtqaYM1T7qLdd UPrispoxk4N1Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 6 Dec 2017 13:51:50 +0900 Message-Id: <1512535910-2593-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Scott Wood , Scott Wood Subject: [U-Boot] [PATCH] mtd: nand: denali: make NAND_DENALI unconfigurable option 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" denali.c has no driver entry in itself. It makes sense only when compiled together with denali_dt.c Let NAND_DENALI_DT select NAND_DENALI, and hide NAND_DENALI from the Kconfig menu. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/Kconfig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index 47ec435..78a39ab 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig @@ -10,15 +10,14 @@ config SYS_NAND_SELF_INIT NAND initialization process. config NAND_DENALI - bool "Support Denali NAND controller" + bool select SYS_NAND_SELF_INIT imply CMD_NAND - help - Enable support for the Denali NAND controller. config NAND_DENALI_DT bool "Support Denali NAND controller as a DT device" - depends on NAND_DENALI && OF_CONTROL && DM + select NAND_DENALI + depends on OF_CONTROL && DM help Enable the driver for NAND flash on platforms using a Denali NAND controller as a DT device.