From patchwork Wed Sep 11 14:46:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1161049 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="wd5nHtke"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46T4V14L88z9s4Y for ; Thu, 12 Sep 2019 00:46:33 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 4AA14C21DD7; Wed, 11 Sep 2019 14:46:28 +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=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID 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 7C68EC21CB1; Wed, 11 Sep 2019 14:46:27 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5EF55C21CB1; Wed, 11 Sep 2019 14:46:26 +0000 (UTC) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by lists.denx.de (Postfix) with ESMTPS id 0F019C21C8B for ; Wed, 11 Sep 2019 14:46:26 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id t16so24900336wra.6 for ; Wed, 11 Sep 2019 07:46:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id; bh=VfGW/92gIQzNbjrRYExtHdmbiHzbv5cTObDmyq6mGrs=; b=wd5nHtke6fyOA/2GnRD91BAHyosxJXlYs7VEQ42Dnt7TKEVq3F6Nhu8E1EoSzlroHN SV+rkAHBqzVSJpCQN3XHttfgEGdqGhSEbAqin9lpzP6AOkQUa3YiDmyzIvgn5EWm/s15 8xrIHGI+T4q1/C1C6Ul2v2u5OPvPO840xwS+4sgWCxiQnHP0QdeiGnL4M8Wz7fwUakLG YyU0vDpSmlzFf98MhnX/vd/ofyH9z+qhzL1zsUDwNIBRVVkrcO9wHoAodDba3Ixc2DL7 Ffykn+JQnpRNXPeKK/xheZlZm5TbS6qAjeeH+gbIHW1icCy/DC0ShypHS9/HrNHs4OKQ RsQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=VfGW/92gIQzNbjrRYExtHdmbiHzbv5cTObDmyq6mGrs=; b=ugP7X1Qi+Y4mgp7cVJrmK5WedgqkMFajzLfYyuerjj0FFNLP3RB/l5gBY+QVU9+I+1 PWFkAiGkuL+q/ttpGO1NuAMFVvRS+otbz8O114treouIfQs59Uw0T3CVGDcPwhaUJpxF TQ+XMvn6Nvx6ZGXJZLyHg5r2EAifWSH2sL1HrvJhp16XX9/OQQeiKdlVyx/hNyGLu81s KVFqv0XlDaPGe8intym3TQ7XIow5FOi+XwqUZJJDA+s0M6kd0keSqq3xy3TJBInOEHay 709Yt+kXPj5O/oEkB/aQJJ2DaWW3rWAPBnG6CLIAAlruPFAI/khrhtCHxGI5H74LplkF AGsQ== X-Gm-Message-State: APjAAAUNx2QvLAdTZcKWs43f/khUgEI3LEqGHgxVBfmnGgYe03gRw76+ R3ordbFKeb3FX7U9T2PZKdinlq3u9XLyuSnP X-Google-Smtp-Source: APXvYqy4iHYZJFRQUJ46et7lekGw30eaaJfDdf55ZOgfdMhqtTs4ZrNY2APEzu12cmj8suy8fRH3Ew== X-Received: by 2002:adf:e2d0:: with SMTP id d16mr1556258wrj.245.1568213185349; Wed, 11 Sep 2019 07:46:25 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id w8sm3758918wmc.1.2019.09.11.07.46.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2019 07:46:24 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Date: Wed, 11 Sep 2019 16:46:23 +0200 Message-Id: X-Mailer: git-send-email 2.17.1 Cc: Hamish Guthrie , T Karthik Reddy Subject: [U-Boot] [PATCH] env: Kconfig: Add environment default offset in versal 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" From: T Karthik Reddy This patch adds default offset & sector size values for environment variables to save in qspi/ospi flash for versal. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- env/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/env/Kconfig b/env/Kconfig index 74db2f38cc19..e4ba12ece3f6 100644 --- a/env/Kconfig +++ b/env/Kconfig @@ -473,6 +473,7 @@ config ENV_OFFSET default 0x88000 if ARCH_SUNXI default 0xE0000 if ARCH_ZYNQ default 0x1E00000 if ARCH_ZYNQMP + default 0x7F40000 if ARCH_VERSAL default 0 if ARC default 0x140000 if ARCH_AT91 default 0x260000 if ARCH_OMAP2PLUS @@ -491,8 +492,8 @@ config ENV_SIZE config ENV_SECT_SIZE hex "Environment Sector-Size" - depends on (!ENV_IS_NOWHERE && (ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_OMAP2PLUS || ARCH_AT91) )|| ARCH_STM32MP - default 0x40000 if ARCH_ZYNQMP + depends on (!ENV_IS_NOWHERE && (ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL || ARCH_OMAP2PLUS || ARCH_AT91) )|| ARCH_STM32MP + default 0x40000 if ARCH_ZYNQMP || ARCH_VERSAL default 0x20000 if ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91 help Size of the sector containing the environment.