From patchwork Mon Feb 27 17:22:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 732986 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3vX80m0Lw9z9sNC for ; Tue, 28 Feb 2017 04:32:24 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id B5368C21FF2; Mon, 27 Feb 2017 17:25:39 +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=none 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 E27F1C21E9A; Mon, 27 Feb 2017 17:22:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 61BC5C21DCC; Mon, 27 Feb 2017 17:22:43 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id E0A92C21C88 for ; Mon, 27 Feb 2017 17:22:36 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 612DF20B7B; Mon, 27 Feb 2017 18:22:36 +0100 (CET) Received: from localhost (LFbn-1-10722-90.w90-89.abo.wanadoo.fr [90.89.71.90]) by mail.free-electrons.com (Postfix) with ESMTPSA id 0D39520B80; Mon, 27 Feb 2017 18:22:24 +0100 (CET) From: Maxime Ripard To: Jagan Teki , Scott Wood Date: Mon, 27 Feb 2017 18:22:12 +0100 Message-Id: <155353fcdcbc9d6174b9751b2e07b3410176644b.1488215509.git-series.maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Cc: Maxime Ripard , u-boot@lists.denx.de Subject: [U-Boot] [PATCH v5 13/16] nand: sunxi: Add options for the SPL NAND configuration 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" The SPL image needs to be built with a different ECC configuration than the U-Boot binary. Add Kconfig options with defaults to provide a value that should work for anyone, but is still configurable if needs be. Signed-off-by: Maxime Ripard Acked-by: Boris Brezillon Reviewed-by: Hans de Goede Acked-by: Scott Wood --- drivers/mtd/nand/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index 5601900e4f79..51f901025168 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig @@ -74,6 +74,22 @@ config NAND_SUNXI The SPL driver only supports reading from the NAND using DMA transfers. +if NAND_SUNXI + +config NAND_SUNXI_SPL_ECC_STRENGTH + int "Allwinner NAND SPL ECC Strength" + default 64 + +config NAND_SUNXI_SPL_ECC_SIZE + int "Allwinner NAND SPL ECC Step Size" + default 1024 + +config NAND_SUNXI_SPL_USABLE_PAGE_SIZE + int "Allwinner NAND SPL Usable Page Size" + default 1024 + +endif + config NAND_ARASAN bool "Configure Arasan Nand" help