From patchwork Thu Jul 4 07:35:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 809949 Delivered-To: patch@linaro.org Received: by 2002:adf:a199:0:b0:367:895a:4699 with SMTP id u25csp1044011wru; Thu, 4 Jul 2024 00:43:54 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXSFH8LEtziPeBq3+v5v+isTQSi2NXuUmr5dWLNe0MOKlS/7Bcs3vM4lb7BlU7pgrLKijvzuP2fVhzcd1m0UttL X-Google-Smtp-Source: AGHT+IHb4gJMu35zX5gKzYy7jKq+KkVyaIrek13Plrom+6xMEBe+nhn6nc16lepiTBVwn4o27x2R X-Received: by 2002:a17:907:3f1d:b0:a72:8296:ca12 with SMTP id a640c23a62f3a-a77ba4cca5dmr55338066b.36.1720079034065; Thu, 04 Jul 2024 00:43:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720079034; cv=none; d=google.com; s=arc-20160816; b=R8T8jAGgTMcIkx/5C2bJkz6aqILQlIhoMdQh6F3qlqJQ2A7MaM70rWi9OXblUsxFe5 FgP3HVq/bZ6UYwGBkF6ZasR7hldEyavbfvPvp0s0Y0c1Q6k5zXlQpcibffA9hvOvof1Y 5pASGGjxpDP7K8hPM/x0DdMC8tzo9T9UJ+/qJuaB0qniXgb5ggj8DsA9GBIQRBJw+dt5 Ztp0fL9P/SNfEm+6NO2F/CAVbRYwHQebivZtI7tewZxGK0gBM8LYqum79CMBlLKRG61N ThtMIosMbvYGOmEoGEZPQqnNoupkG+YFRt37A3X1+t7WJ+sCqHJRP4tcmSU9n5rgEY7V OAvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=1UcQypedKrwPP+uw5n4PFtuad1i+ga2GATON9IKaiL0=; fh=ez1zzjhC0XWyqTp7tWutqrA/nFdALDnQKrnQnXYhk5Q=; b=wqgTRhJ3h6FPUkvj8iAbEKAp2s9xAB0e4Wfb01+HXohBYOZwUdQDRHZV+oHFIKGnKJ s44mXoLNDeDk3JDKkqCdeBFsBn806scdISThauh48TcoxeQvVjRS5krMOaWk8g67SciJ uuyBu7+YKMebvLJlw8FLb5wOR7dRHomwbI/kPtWaHIeq5XrtFOtX5qd+Xa6H1HCGMoeY /6JEuQg8KiPbUSXUurV6RBzrOxcZ0dmXEZYtiG4zSqF3Az4qESXVO4aQNr+x5TOmc0DC onUiVWLMcT8wYeMi9DUq3MX7lk80pcL/DLjmYer6sQcc0rsJwE2JArpITQ1JL2aGUXep WOSA==; 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 a640c23a62f3a-a77c00cead5si15240066b.55.2024.07.04.00.43.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 00:43:54 -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 8C28488984; Thu, 4 Jul 2024 09:38:43 +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 A1A288889D; Thu, 4 Jul 2024 09:38:41 +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_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 A76BA88979 for ; Thu, 4 Jul 2024 09:38:39 +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 34899DA7; Thu, 4 Jul 2024 00:39:04 -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 EE7F53F762; Thu, 4 Jul 2024 00:38:35 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Tom Rini , Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Marek Vasut , Mark Kettenis , Fabio Estevam , Michal Simek , Sughosh Ganu Subject: [RFC PATCH v2 42/48] ti: k3: remove efi_add_known_memory() function definition Date: Thu, 4 Jul 2024 13:05:38 +0530 Message-Id: <20240704073544.670249-43-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240704073544.670249-1-sughosh.ganu@linaro.org> References: <20240704073544.670249-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 --- Changes since V1: New patch 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 eaa7d36176..a5c0170cd2 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); -}