From patchwork Fri Sep 26 14:45:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 393819 X-Patchwork-Delegate: yamada.m@jp.panasonic.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 77D8F14013F for ; Sat, 27 Sep 2014 00:46:56 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8C93C4B5F1; Fri, 26 Sep 2014 16:46:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dM5FFhxZzm3e; Fri, 26 Sep 2014 16:46:42 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2D2F24B600; Fri, 26 Sep 2014 16:46:31 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 94F1CA73F0 for ; Fri, 26 Sep 2014 16:46:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AKVskd-zpg1v for ; Fri, 26 Sep 2014 16:46:18 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from smtp.mei.co.jp (smtp.mei.co.jp [133.183.100.20]) by theia.denx.de (Postfix) with ESMTP id 66D714B5EC for ; Fri, 26 Sep 2014 16:45:50 +0200 (CEST) Received: from mail-gw.jp.panasonic.com ([157.8.1.157]) by smtp.mei.co.jp (8.12.11.20060614/3.7W/kc-maile14) with ESMTP id s8QEjXST005817; Fri, 26 Sep 2014 23:45:33 +0900 (JST) Received: from epochmail.jp.panasonic.com ([157.8.1.130]) by mail.jp.panasonic.com (8.11.6p2/3.7W/kc-maili16) with ESMTP id s8QEjYM10588; Fri, 26 Sep 2014 23:45:34 +0900 Received: by epochmail.jp.panasonic.com (8.12.11.20060308/3.7W/lomi14) id s8QEjY8H003666; Fri, 26 Sep 2014 23:45:34 +0900 Received: from poodle by lomi14.jp.panasonic.com (8.12.11.20060308/3.7W) with ESMTP id s8QEjX2T003648; Fri, 26 Sep 2014 23:45:33 +0900 Received: from beagle.diag.org (beagle.diag.org [10.184.179.16]) by poodle (Postfix) with ESMTP id B90F12740043; Fri, 26 Sep 2014 23:45:33 +0900 (JST) From: Masahiro Yamada To: u-boot@lists.denx.de Date: Fri, 26 Sep 2014 23:45:18 +0900 Message-Id: <1411742724-30938-2-git-send-email-yamada.m@jp.panasonic.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1411742724-30938-1-git-send-email-yamada.m@jp.panasonic.com> References: <1411742724-30938-1-git-send-email-yamada.m@jp.panasonic.com> Cc: Scott Wood , Chin Liang See Subject: [U-Boot] [PATCH v5 1/7] mtd: denali: add Denali controller configs to Kconfig X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Commit 3eb3e72a3f66 (nand/denali: Adding Denali NAND driver support) introduced some new options, and some of them were documented by commit f9860cf081ef (nand/denali: Document CONFIG symbols). This commit allows users to enable/disable them via Kconfig with more detailed help docs. Signed-off-by: Masahiro Yamada Cc: Chin Liang See Cc: Scott Wood --- Changes in v5: - Newly added Changes in v4: None Changes in v3: None Changes in v2: None doc/README.nand | 6 ------ drivers/mtd/Kconfig | 1 + drivers/mtd/nand/Kconfig | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 drivers/mtd/nand/Kconfig diff --git a/doc/README.nand b/doc/README.nand index 320d752..e29188f 100644 --- a/doc/README.nand +++ b/doc/README.nand @@ -215,12 +215,6 @@ Configuration Options: Platform specific options ========================= - CONFIG_NAND_DENALI - Enables the denali.c driver. - - CONFIG_SYS_NAND_DENALI_64BIT - Indicates that the Denali NAND controller is the 64-bit variant. - CONFIG_NAND_OMAP_GPMC Enables omap_gpmc.c driver for OMAPx and AMxxxx platforms. GPMC controller is used for parallel NAND flash devices, and can diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index e69de29..415ab4e 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig @@ -0,0 +1 @@ +source "drivers/mtd/nand/Kconfig" diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig new file mode 100644 index 0000000..a1617c3 --- /dev/null +++ b/drivers/mtd/nand/Kconfig @@ -0,0 +1,32 @@ +menu "NAND Device Support" + +if !SPL_BUILD + +config NAND_DENALI + bool "Support Denali NAND controller" + help + Enable support for the Denali NAND controller. + +config SYS_NAND_DENALI_64BIT + bool "Use 64-bit variant of Denali NAND controller" + depends on NAND_DENALI + help + The Denali NAND controller IP has some variations in terms of + the bus interface. The DMA setup sequence is completely differenct + between 32bit / 64bit AXI bus variants. + + If your Denali NAND controller is the 64-bit variant, say Y. + Otherwise (32 bit), say N. + +config NAND_DENALI_SPARE_AREA_SKIP_BYTES + int "Number of bytes reserved in oob area" + depends on NAND_DENALI + range 0 63 + help + This option specifies the number of bytes to skip from start of + oob area before last ECC sector data starts. This is potentially + used to preserve the bad block marker in the oob area. + +endif + +endmenu