From patchwork Fri Oct 25 17:27:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 838367 Delivered-To: patch@linaro.org Received: by 2002:adf:e287:0:b0:37d:45d0:187 with SMTP id v7csp415023wri; Fri, 25 Oct 2024 10:28:08 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVV0w/S+iS7mKEypYues6dKC9naF7l0J0FU19Z4qE+eqdyAODyCYK8KyfCZA0OTrUcJkGwoOg==@linaro.org X-Google-Smtp-Source: AGHT+IHFDrHdEbSn39PSRXGbs42wnvlCNL9Xq3TGvAyniJlpFXBBJJKiC6uom5687wIOMGQU6rRd X-Received: by 2002:a05:6512:3b27:b0:53b:154c:f762 with SMTP id 2adb3069b0e04-53b1a361953mr6386121e87.46.1729877287857; Fri, 25 Oct 2024 10:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729877287; cv=none; d=google.com; s=arc-20240605; b=X+xFbjCuSSz1BOhaE/XU8wgT/BQJLQA6TO5pE3qr8gmaSQvQBqwcNPlx2AaO4iXDU7 psapvSyDD9ufIpkaFSQC3tUsXw7emuHxQFvDhkiNgJ7CtwuFJo0CgaGRHLGZVNWjkB5y mGIrCpJ8sxBHdYOeAZFrAtiZvQPz7XyBGNiFxDJkNPMKo4icLb6U/ottfs9Lv5hZT4gk twYsO7glwgcrTw2vgQZqdZY6pTzNM7dLtPEQWzd59j8McMzj5ahURBFSWQrNUizdT7HK WkzQ0jBkwbdrtMDd6XQMjdkOMPgZxrPODC5Ooudwx3Xtr5b4n4GRBpL42Q5qq1qdxiWc seMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=DycW5WFMIDipcDy2tbgddNdknCfw2n7DZSE8J/BMnfQ=; fh=GbcxIacvxzBGjRu6h7ap324UjtfY8k/ku32YgDYEa9o=; b=ayGuNnYvej5Ley7d6obk/OaWZoJbFK2kGyrNPJkNnEJclDNzvQXhX79NFf2BbMTLuC rz0uHG+yexajMDac78/HsxFOO9XPjAnNRvWsdHIHuJXBbkRG10TSqBW6vGG19PAgbDQh WCYmYEftNuI4UVXF3qEvrjWwxvNbX3mlGVTwO8kFVTZHEimNdgxHFbRmEGFqG29Hw2b5 FQeAdp227/YDnvR65sl5+/o0/XD2BFdMWuybsV7gPMRO0Yb8xKjaHFhQeXxpUNDH01dM 1bdcSKHMXnSogo3q0/6UR9uHi2CK8AGZsh+8wMbMwADCAjxBHtZiUI6I+sC0Ed3M0I+U 8jZw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 2adb3069b0e04-53b2e1c83e5si551517e87.359.2024.10.25.10.28.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2024 10:28:07 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1E45F8902F; Fri, 25 Oct 2024 19:27:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org 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 651E78902F; Fri, 25 Oct 2024 19:27:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 0DEA988216 for ; Fri, 25 Oct 2024 19:27:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 37874339; Fri, 25 Oct 2024 10:28:07 -0700 (PDT) Received: from a079122.blr.arm.com (a079122.arm.com [10.162.17.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DE5FC3F71E; Fri, 25 Oct 2024 10:27:35 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Michal Simek , love.kumar@amd.com, Tom Rini Subject: [PATCH v2 0/2] Add generic function for computing ram_top Date: Fri, 25 Oct 2024 22:57:22 +0530 Message-Id: <20241025172724.195093-1-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean Changes since V1: Remove the comment above the function definition Sughosh Ganu (2): common: memtop: add logic to detect ram_top xilinx: use get_mem_top() to compute ram_top board/xilinx/common/board.c | 25 ++++++ common/Makefile | 1 + common/memtop.c | 171 ++++++++++++++++++++++++++++++++++++ include/memtop.h | 22 +++++ 4 files changed, 219 insertions(+) create mode 100644 common/memtop.c create mode 100644 include/memtop.h