Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A064CC433F5 for ; Sat, 11 Dec 2021 19:57:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E148383738; Sat, 11 Dec 2021 20:56:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id DD7918352B; Sat, 11 Dec 2021 20:56:16 +0100 (CET) Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6CE9583662 for ; Sat, 11 Dec 2021 20:56:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qk1-f171.google.com with SMTP id d2so10779495qki.12 for ; Sat, 11 Dec 2021 11:56:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tWTWFF1CqN7l1fcQN6+5Eq0mdq3h27ybGL37NcRPdlo=; b=pJlKljflIIzhSem3PJlOpjKJbcs9acukuWcjwJWJnKkPytZugyDWN7FNtdpkCRHrVm EWGXVn/4iD4p9d+xZ64g3bdFJAX+W7hUI/FEiKytZCNdRgQgsWmFe7zveb7ik7U1VpoW /pdrqL4kJ/J8Pj/TIEW88IXAvGw+cjVHgUDV8EHdVxiXwA+RIoysMFTa5oXZzdmKK6xc vb3A+yEq7W8ackTw3CrM2mO7mSnncHJ2bk9THvTKPQ/gs/6KRvSO3FRpWRlTq6z9ZAsr +wjWdRQkA4ZR6OxVcrAT406rmEZf44l40e2pZejdB7KHuguuenPWB/lViDBkwELbxeTJ jOBQ== X-Gm-Message-State: AOAM531WCWKlThCIneG0b9JkTv5PQGQuu2D+cxdL+IG/USuqMQx0ZuLX zi6XHvI3Nu+WiIHYNsQOsvnMp3j74w== X-Google-Smtp-Source: ABdhPJx5A6zgeyn0L07Q6Kn44i4ZYDH94EtUtVtRh2A/D0w3GJ20CiABDSC7nWqdwy6spPqaIkYU8g== X-Received: by 2002:a05:620a:2982:: with SMTP id r2mr26341673qkp.574.1639252564893; Sat, 11 Dec 2021 11:56:04 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-95ad-4c5a-5ab2-45a0.res6.spectrum.com. [2603:6081:7b01:cbda:95ad:4c5a:5ab2:45a0]) by smtp.gmail.com with ESMTPSA id t6sm3571720qkj.33.2021.12.11.11.56.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Dec 2021 11:56:04 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 9/9] Convert CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT to Kconfig Date: Sat, 11 Dec 2021 14:55:54 -0500 Message-Id: <20211211195554.3877421-9-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211211195554.3877421-1-trini@konsulko.com> References: <20211211195554.3877421-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This converts the following to Kconfig: CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT In order to do this conversion, expose this option to the user and use "save" not "safe" in the text. Signed-off-by: Tom Rini --- configs/corvus_defconfig | 1 + configs/pm9g45_defconfig | 1 + drivers/mtd/nand/raw/Kconfig | 4 ++-- include/configs/corvus.h | 1 - include/configs/pm9g45.h | 1 - 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configs/corvus_defconfig b/configs/corvus_defconfig index 9c3c92a2aeee..d4481131087b 100644 --- a/configs/corvus_defconfig +++ b/configs/corvus_defconfig @@ -61,6 +61,7 @@ CONFIG_AT91_GPIO=y # CONFIG_MMC is not set CONFIG_MTD=y CONFIG_MTD_RAW_NAND=y +CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT=y # CONFIG_SYS_NAND_USE_FLASH_BBT is not set CONFIG_NAND_ATMEL=y CONFIG_SYS_NAND_BLOCK_SIZE=0x20000 diff --git a/configs/pm9g45_defconfig b/configs/pm9g45_defconfig index 2d63a8c7a3e3..7fbbbabf22f7 100644 --- a/configs/pm9g45_defconfig +++ b/configs/pm9g45_defconfig @@ -47,6 +47,7 @@ CONFIG_CLK_AT91=y CONFIG_AT91_GPIO=y CONFIG_GENERIC_ATMEL_MCI=y CONFIG_MTD=y +CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT=y # CONFIG_SYS_NAND_USE_FLASH_BBT is not set CONFIG_NAND_ATMEL=y CONFIG_DM_ETH=y diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index a4073b9ba413..e8528cbc30cd 100644 --- a/drivers/mtd/nand/raw/Kconfig +++ b/drivers/mtd/nand/raw/Kconfig @@ -10,9 +10,9 @@ config SYS_NAND_SELF_INIT NAND initialization process. config SYS_NAND_DRIVER_ECC_LAYOUT - bool + bool "Omit standard ECC layouts to save space" help - Omit standard ECC layouts to safe space. Select this if your driver + Omit standard ECC layouts to save space. Select this if your driver is known to provide its own ECC layout. config SYS_NAND_USE_FLASH_BBT diff --git a/include/configs/corvus.h b/include/configs/corvus.h index 2d615d0e11d0..27284f791381 100644 --- a/include/configs/corvus.h +++ b/include/configs/corvus.h @@ -66,7 +66,6 @@ #define CONFIG_SYS_NAND_MASK_CLE (1 << 22) #define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PC14 #define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PC8 -#define CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT #endif /* Ethernet */ diff --git a/include/configs/pm9g45.h b/include/configs/pm9g45.h index eab382502160..b20539164211 100644 --- a/include/configs/pm9g45.h +++ b/include/configs/pm9g45.h @@ -45,7 +45,6 @@ #define CONFIG_SYS_NAND_MASK_CLE BIT(22) #define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PC14 #define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PD3 -#define CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT #endif /* Ethernet */ -- 2.25.1