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 39C36C4332F for ; Fri, 2 Dec 2022 21:48:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4FBC885334; Fri, 2 Dec 2022 22:44:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="b5Bd4l22"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D727A84567; Fri, 2 Dec 2022 22:43:30 +0100 (CET) Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (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 30F15851EE for ; Fri, 2 Dec 2022 22:43:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-ej1-x635.google.com with SMTP id vp12so14431000ejc.8 for ; Fri, 02 Dec 2022 13:43:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=BEo9uokzdTrJRTQuW8gTEYLbf4jpSh+Yu5xcD23Jw0E=; b=b5Bd4l222RaMopMOZda/K1p/Ib9ydzvW9dxO2fBj0NTqnDKu0sK9dvoCH6QyicU0PQ S3t5uWaUa4OUyUMgvF03c42JlQVgympIX0eLAR4nDaDTWXblzoc5/dOiiIhKcwNHHwvK Ah0bsAc/0lAJ2N7/qI8VPYkj7ygNrNvzFk+Bo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BEo9uokzdTrJRTQuW8gTEYLbf4jpSh+Yu5xcD23Jw0E=; b=i9YSQHFj8PNJ0Ie8t64Xwz6jaNiagvmwtBy0lZYgosmvDZgm0Mz8DgCrLus/nU0RE+ XkLv2FOYB8VU/gMGUcIZTk2ByIibbBdGXKfkWU+G5niEe+Q/JZ6q88kNdbAevLB3Kb/Z rq7jLJfJnNvsBWfMGMbpWmABaFQxRfLnt/qWNoHmp6dBgxaIRm9U5O/nQFSXLCArp64R zKIK5PwR3aSWQcTB1UezHCX3nTNpuLplEUrMxwbqnArrJIv9PgjTEeVXnyRIQnWoAW31 /FG/761QrGq9p3rw3WEmWSXBZ9zAuRzw8RorxR3bG5hD/RUyxgA7pWemQtCmjgbEwIYt aIDQ== X-Gm-Message-State: ANoB5pnnL/N1s3dMSt7V3gsLgvNK6k7X9jcUpJ1ipQA+XNxOrKUdpBfB KACUD/pdnssFTrWgF35vx3n/oCs5Nr0et6X+ X-Google-Smtp-Source: AA0mqf6m57G6OIF6Lkd3kJ1xJkHZ218mfLOoYXLDfo3+9SiRl/6E+ALecYq8yb8PC6j5XF4lG1qh0A== X-Received: by 2002:a17:906:36d2:b0:7ae:9c7b:4d5c with SMTP id b18-20020a17090636d200b007ae9c7b4d5cmr59825551ejc.598.1670017403756; Fri, 02 Dec 2022 13:43:23 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-f99b-6f1a-2cc1-7368.res6.spectrum.com. [2603:6081:7b00:6400:f99b:6f1a:2cc1:7368]) by smtp.gmail.com with ESMTPSA id b23-20020a1709062b5700b007c0991735c0sm3434248ejg.79.2022.12.02.13.43.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 13:43:23 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 27/41] Convert CONFIG_MXC_NAND_HWECC to Kconfig Date: Fri, 2 Dec 2022 16:42:37 -0500 Message-Id: <20221202214251.3027264-27-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221202214251.3027264-1-trini@konsulko.com> References: <20221127152536.1556469-41-trini@konsulko.com> <20221202214251.3027264-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean This converts the following to Kconfig: CONFIG_MXC_NAND_HWECC Signed-off-by: Tom Rini --- configs/m53menlo_defconfig | 1 + drivers/mtd/nand/raw/Kconfig | 4 ++++ include/configs/m53menlo.h | 1 - 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/m53menlo_defconfig b/configs/m53menlo_defconfig index b70d10433d7d..70df2b5fd243 100644 --- a/configs/m53menlo_defconfig +++ b/configs/m53menlo_defconfig @@ -88,6 +88,7 @@ CONFIG_MTD=y CONFIG_MTD_RAW_NAND=y CONFIG_SYS_NAND_USE_FLASH_BBT=y CONFIG_NAND_MXC=y +CONFIG_MXC_NAND_HWECC=y CONFIG_SYS_NAND_BLOCK_SIZE=0x20000 CONFIG_SYS_NAND_PAGE_COUNT=0x40 CONFIG_SYS_NAND_PAGE_SIZE=0x800 diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index 338a3562a4ac..c98230ed35b2 100644 --- a/drivers/mtd/nand/raw/Kconfig +++ b/drivers/mtd/nand/raw/Kconfig @@ -479,6 +479,10 @@ config SYS_NAND_SIZE depends on NAND_MXC && SPL_NAND_SUPPORT default 268435456 +config MXC_NAND_HWECC + bool "Hardware ECC support in MXC NAND" + depends on NAND_MXC + config NAND_MXS bool "MXS NAND support" depends on MX23 || MX28 || MX6 || MX7 || IMX8 || IMX8M diff --git a/include/configs/m53menlo.h b/include/configs/m53menlo.h index 189b2113f751..d42ad9acb40d 100644 --- a/include/configs/m53menlo.h +++ b/include/configs/m53menlo.h @@ -48,7 +48,6 @@ #define CONFIG_MXC_NAND_REGS_BASE NFC_BASE_ADDR_AXI #define CONFIG_MXC_NAND_IP_REGS_BASE NFC_BASE_ADDR #define CFG_SYS_NAND_LARGEPAGE -#define CONFIG_MXC_NAND_HWECC #endif /* -- 2.25.1