From patchwork Sun Oct 13 10:55:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 835074 Delivered-To: patch@linaro.org Received: by 2002:adf:b352:0:b0:37d:45d0:187 with SMTP id k18csp1536753wrd; Sun, 13 Oct 2024 03:57:06 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUritFRZRHJnpijFykv3q6kDLchpzq8WgtnR20GHYDh5ienXrkK5m07hm8ICXz3XNnYXwvNxg==@linaro.org X-Google-Smtp-Source: AGHT+IEWPpoOSJ8AAGNDA0lTCqs8baxtU3PbLcmKuCsff+NQgnR0zHvTzLslfy1LdjrNYM/ilY7m X-Received: by 2002:a05:6e02:1566:b0:3a3:a639:a594 with SMTP id e9e14a558f8ab-3a3b5865e13mr51559425ab.4.1728817025728; Sun, 13 Oct 2024 03:57:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728817025; cv=none; d=google.com; s=arc-20240605; b=G86EMEkxGJaDRSf9+75eHyrkHvYwYMYt1mhxnnFAYS8SscGzepfVDaYdmP/zfYgIjx LZ1GK0Yqph5XMxRr1j5Y7KMo0+snU01KDlNc65xFCHnORoF0popG4ECmT5im8ZOcHngf mVZYcp3DCj5wnM8aIf7aW1tBJVUxKSMadVwhHDx1JLC99rtSaX1ezYT+mXOKm8o5KhV7 fesoV8/W/gjG9nwhIz1c8SJ9QpyBvlf/gkdWC3r2GTta7BRmJ6TDEYuTF3n5Ovf7ATiu qEUALA2VpQ5dswAiF1TDWGdMTEwJMkvKYj7BTeRM2ytfMmRRnsNIwmhCr1djq3Eeh53K Lr9w== 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:references:in-reply-to:message-id:date:subject:cc:to :from; bh=tzxKT8u6JAbTmuPqCCvYHHam9KfzWCV76Qcq2S5lEns=; fh=DqKFq13hCy9hcb48ZltPVvgEKSF1g1c/m42wn0WwlIc=; b=aQi5I2Wr+bM94dhQiAKtMLOmt86QiRnObvXImazMV8DjbXelgene0ta9yll6fqYljQ dtzDVOF5Kb0jo0hVKuFI/cWF7P9fKN+DuQ/STFB1dcEUjC5g4V800o+wY3NbslBuAZQf ZAdb//M5pxNTad3u1UbMeCnZD02eyinx0J5++/RsCLQwohKAy7/7txlGi2SCyzfm28+w bhfsqADVV5Ysj34bug7BiaxSHVA1biIiUNjmuDYwgI8l+2o+/hYU/7/jix6zWWpc7tvl +DCEyLB+vVrAcRpAoO2zXAMqh1kyNlDsXXwV05+b1dXyDG063X7tqHdeoZRqfvpoPLXi sY1w==; 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 e9e14a558f8ab-3a3afdfb4d9si32379195ab.105.2024.10.13.03.57.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Oct 2024 03:57:05 -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 7F5EC88F44; Sun, 13 Oct 2024 12:56:09 +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 BE98888F44; Sun, 13 Oct 2024 12:56:08 +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_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_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 CD03D88DF5 for ; Sun, 13 Oct 2024 12:56:06 +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 E09291007; Sun, 13 Oct 2024 03:56:35 -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 B9C1F3F71E; Sun, 13 Oct 2024 03:56:03 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Tom Rini , Caleb Connolly , Jonas Karlman , Sughosh Ganu Subject: [PATCH v3 08/15] ti: k3: remove efi_add_known_memory() function definition Date: Sun, 13 Oct 2024 16:25:15 +0530 Message-Id: <20241013105522.391414-9-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241013105522.391414-1-sughosh.ganu@linaro.org> References: <20241013105522.391414-1-sughosh.ganu@linaro.org> 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 The efi_add_known_memory() function for the TI K3 platforms is adding the EFI_CONVENTIONAL_MEMORY type. This memory is now being handled through the LMB module -- the lmb_add_memory() adds this memory to the memory map. Remove the definition of the now superfluous efi_add_known_memory() function. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewed-by: Simon Glass --- Changes since V2: None arch/arm/mach-k3/common.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c index df48ec8d47..f2086cbdf5 100644 --- a/arch/arm/mach-k3/common.c +++ b/arch/arm/mach-k3/common.c @@ -310,14 +310,3 @@ void setup_qos(void) writel(qos_data[i].val, (uintptr_t)qos_data[i].reg); } #endif - -void efi_add_known_memory(void) -{ - if (IS_ENABLED(CONFIG_EFI_LOADER)) - /* - * Memory over ram_top can be used by various firmware - * Declare to EFI only memory area below ram_top - */ - efi_add_memory_map(gd->ram_base, gd->ram_top - gd->ram_base, - EFI_CONVENTIONAL_MEMORY); -}