From patchwork Tue Oct 15 15:37:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 835451 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c8f:0:b0:37d:45d0:187 with SMTP id z15csp300962wrs; Tue, 15 Oct 2024 08:38:51 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXpShAAZfcEwXINzOidCBe2ZeieCqPVxVhCH1mq6VS5t0+RcOH95DdYzHBoW2ZIs3McubyiLg==@linaro.org X-Google-Smtp-Source: AGHT+IF8RxCnepoPoJpDUQkOOPk15xXo9H8hWRFL3TozDDkQnCDpCI1tJLrSmwQwXlfJXkfKFdca X-Received: by 2002:a05:6602:6d18:b0:835:42ce:933d with SMTP id ca18e2360f4ac-83a943d8943mr130024939f.1.1729006731702; Tue, 15 Oct 2024 08:38:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729006731; cv=none; d=google.com; s=arc-20240605; b=dBQFLMHsuG3WyF4tapk272eg1Gn4NhRQUPN1EfHNr1L77t0Up+NU3s6boRW7wJdde/ 9VokoZg9nlHEnXOZTaLSzfuIDaxRbX3kDCU9atmZ0IvqXhxCgZJdU+IwMQ9ADmvzQ9EK c+FuxdlI2352Isfpm8iMU7XEUEJsJzxh+dkhPvJQm5Cyuzzl93IOD6rYzBAJMerYLHDV QPAFrX/qMlSU5LprLSp2Lffssx5BWomXA/gxYv3nC/Fh82a7jEc60J0gPauAitt3w7or wHMtFFW9SRrFPAScrnO0Ag5JkgoCVMvKo9t2qE3myrZM6qvXs0JoV73F51Qz3wCQ6OH1 sNBw== 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=wgwlq+fU6DX1HsNbXjT6xBjmNB8tmStaTGTznCIcAG4=; fh=MYvlzMqd61VHJORtkCu1tTA+qP9jRMJFkVEqSzDEdy8=; b=FwN7w2JLqPV5kiokH5p/qaOZQPaFMlKJ0m+huaYy8Y9cUuFNehTlQ+bnbBxmru7G42 hXQC4T7SHeFNgj6g0yESm0nNCi98ZSn5fNsZJQO0K9yDeBz9SDdEyaeidVd1KO87pRE5 Xxd+qcFq9bzS/4Oy6T2jP3GOza2damCgNiIGdKdJgTne2BuPIkuTCbndAJb76f+0cDYo pghPMPljsLCMK1NaLFPmvWowtWURBup/2NHfDcA8f9t4Jd8ofTZg6W+T/nsWM7nFvWU4 b59d4Z7V7QP6TD6LGHrq6Hj4WBI8cx/4y+7k9EIUBfcb2P1Yj5ITG83Ug69z0A+GytaJ MCeA==; 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 8926c6da1cb9f-4dbeccdf984si710828173.137.2024.10.15.08.38.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 08:38:51 -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 702CA88BB2; Tue, 15 Oct 2024 17:38:06 +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 6144E88730; Tue, 15 Oct 2024 17:38:05 +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 AB9D888BB2 for ; Tue, 15 Oct 2024 17:38:02 +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 C2D75169E; Tue, 15 Oct 2024 08:38:31 -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 4FCE43F528; Tue, 15 Oct 2024 08:37:59 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Tom Rini , Caleb Connolly , Jonas Karlman , Mark Kettenis , Sughosh Ganu Subject: [PATCH v4 07/15] ti: k3: remove efi_add_known_memory() function definition Date: Tue, 15 Oct 2024 21:07:09 +0530 Message-Id: <20241015153717.401371-8-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241015153717.401371-1-sughosh.ganu@linaro.org> References: <20241015153717.401371-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 V3: 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 df48ec8d479..f2086cbdf51 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); -}