From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7477EC433EF for ; Wed, 22 Sep 2021 18:51:14 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C7A1F61131 for ; Wed, 22 Sep 2021 18:51:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C7A1F61131 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8A0B583337; Wed, 22 Sep 2021 20:51:09 +0200 (CEST) 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 BF8278331C; Wed, 22 Sep 2021 20:50:53 +0200 (CEST) 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 DF17B83221 for ; Wed, 22 Sep 2021 20:50:45 +0200 (CEST) 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 i132so13467218qke.1 for ; Wed, 22 Sep 2021 11:50:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=B3ypl6PjXu5EslYo888L2Y+8ZZybFHwWxxjD3R81f50=; b=imEJycUdv6Mnp0sdGEvNNutImILhBVNc30S9DgwhzfpkSI0RFlCTjQ2oR8sVXY1XXW i/XpUrM5zNPUWMfATjaw9ptyL3ZWfRdh2GulNR5wcAG9Upiqhcgu8G8tZFkE6sL5Zt7F FLaEWHWvRufCPqgArnR/QV0a4gdnsifUYPiMnauF8s+/9GdDgxmgqW7Jh2ukyCV8A3F4 KPprh7ciA2ZfCiG7X1tQGgXsPA/kArSoajk/h1P16GFlLCMyRnflZ6e4mNIt2wBMVTfQ fQLBlbroST7ZlnxcnmS0gJg2TcwlQoeGF8+yx/jSHTONzkrCWPA4EfNcru8ajxGHtMiN TZkA== X-Gm-Message-State: AOAM533QmZb5PgQP6qspIna0dhdknKtvmlvk6lKXkDdOGYgwnNgL1fJ9 AYKlblPuryg5Hj140YJ7Y5tDC5hrtg== X-Google-Smtp-Source: ABdhPJwlit3SY3bDbkXH7VAxxFywhAMUTAZrd/IUHH0sXRbqFhiFjT3s/hN9FNlvIq/PpH+Ny4OC+w== X-Received: by 2002:a37:9bd5:: with SMTP id d204mr780590qke.451.1632336644296; Wed, 22 Sep 2021 11:50:44 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-01ae-c37f-f577-ef41.res6.spectrum.com. [2603:6081:7b01:cbda:1ae:c37f:f577:ef41]) by smtp.gmail.com with ESMTPSA id v24sm2398860qkv.11.2021.09.22.11.50.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Sep 2021 11:50:43 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: Marek Vasut , Olaf Mandel Subject: [PATCH 02/14] m53menlo: Switch to deriving CONFIG_SYS_NAND_PAGE_COUNT Date: Wed, 22 Sep 2021 14:50:27 -0400 Message-Id: <20210922185039.30707-2-trini@konsulko.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210922185039.30707-1-trini@konsulko.com> References: <20210922185039.30707-1-trini@konsulko.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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 Typically platforms will define CONFIG_SYS_NAND_PAGE_COUNT based on CONFIG_SYS_NAND_BLOCK_SIZE / CONFIG_SYS_NAND_PAGE_SIZE. Switch to this in preparation for migrating CONFIG_SYS_NAND namespace to Kconfig. Cc: Marek Vasut Cc: Olaf Mandel Signed-off-by: Tom Rini --- include/configs/m53menlo.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/configs/m53menlo.h b/include/configs/m53menlo.h index 813d326cdaf5..11c8a87c95ad 100644 --- a/include/configs/m53menlo.h +++ b/include/configs/m53menlo.h @@ -140,9 +140,11 @@ #define CONFIG_SPL_STACK 0x70004000 #define CONFIG_SYS_NAND_U_BOOT_OFFS CONFIG_SPL_PAD_TO +#define CONFIG_SYS_NAND_BLOCK_SIZE (128 * 1024) #define CONFIG_SYS_NAND_PAGE_SIZE 2048 #define CONFIG_SYS_NAND_OOBSIZE 64 -#define CONFIG_SYS_NAND_PAGE_COUNT 64 +#define CONFIG_SYS_NAND_PAGE_COUNT (CONFIG_SYS_NAND_BLOCK_SIZE / \ + CONFIG_SYS_NAND_PAGE_SIZE) #define CONFIG_SYS_NAND_SIZE (256 * 1024 * 1024) #define CONFIG_SYS_NAND_BAD_BLOCK_POS 0 -- 2.17.1