From patchwork Tue Oct 8 18:14:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 833593 Delivered-To: patch@linaro.org Received: by 2002:adf:a1d9:0:b0:367:895a:4699 with SMTP id v25csp435888wrv; Tue, 8 Oct 2024 11:16:16 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV41DJ79gkySRL0CaWuvZwBreb84jYa5IzXpq0qHfUjemvoj5AdOQDPjBmrNr9HaNRrgVbdqQ==@linaro.org X-Google-Smtp-Source: AGHT+IFSpykQA+vPrmPBz/DDwnbSG3mWlYhbB1Mc1oNqfP5WWA5s+2ZfzPSvMGSVmDB/f1BRSALO X-Received: by 2002:a05:6602:2b03:b0:82c:f2f5:388d with SMTP id ca18e2360f4ac-834f7cdd748mr1770206439f.7.1728411375707; Tue, 08 Oct 2024 11:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728411375; cv=none; d=google.com; s=arc-20240605; b=LaKJkPuXHaEuDdAEWJRpM3PLGYrXsaugr2xkxbIYY9AX9ghbThsJx75fbtOUtLQ1yI izHi/TYIkj/sYXfM8wzk8rgR6CB5C29dYVvsudGN/dxnAzWgcW9dw0PWq5iRGG19PEuO eDgnzKaltHvbAS1sEAsrjQJ5g9e+Xf+zaxpSvVraFIYgabwsq0DWfu3hc2CEFeXSygVq LXmpbZ0uwlTfKZjtOd6os6Ji9VG4IV9rqeK1G/XzlHdLhNaS+kUJBpcTN/ycCuFlHwOW Gvxpf/bkC2Mub16hI3Zaj6J3AgYWT399qS4/rZgjTNBF601u8vYnYxGYUUUj+5heSjS5 CCsQ== 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=hmnYqbcu0GBoksGz39KBh8ThVWot0OoVy8jZMA/qXf0=; fh=EURqIhM9Cs9+QDCQ9Vm6IsJQ8gNya1VBDuunKFxPiA8=; b=XF9Lzpi0y7L1tKRtLS0tGP4Qj5YfvGdvf1oNuMBSjmof6YdPtFlq/pSy+JvdQMzqir g7oExzpR2KBaQ1gkqPOgx0vx+0hWKdZ8Lyh3MyoRI4hTHMex7c3y0cZmPLHE2EE2Xelv 2T+biYDaqJbFKXsZ8WhL3csZG3gt9jktNeDQjNskFH7fTnctloaRVwNNjnilF1lFk15w 1UoFpYiXQlo9b4IzY+OS2TTtOQSemVqviRBEZ1vTW5iO4C7UXfYiOhptZOfF4ggAuBbl 4Z7xuYhR5sNvWeArPEVjcDB+5TK4SiYlhDBHsMO2+O/Siyf+d/s7853LSpgm3vb3e7/0 J3AA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id ca18e2360f4ac-8353945028bsi19897739f.97.2024.10.08.11.16.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:16:15 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 B12D388EE1; Tue, 8 Oct 2024 20:15:16 +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 28DDA88F35; Tue, 8 Oct 2024 20:15:16 +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 3222988E26 for ; Tue, 8 Oct 2024 20:15:14 +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 39285DA7; Tue, 8 Oct 2024 11:15:43 -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 C405A3F64C; Tue, 8 Oct 2024 11:15:10 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Tom Rini , Bin Meng , Caleb Connolly , Jonas Karlman , Sughosh Ganu Subject: [PATCH v2 08/14] stm32mp: remove efi_add_known_memory() function definition Date: Tue, 8 Oct 2024 23:44:29 +0530 Message-Id: <20241008181435.1753814-9-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241008181435.1753814-1-sughosh.ganu@linaro.org> References: <20241008181435.1753814-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 stm32mp 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 --- Changes since V1: None arch/arm/mach-stm32mp/dram_init.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/arch/arm/mach-stm32mp/dram_init.c b/arch/arm/mach-stm32mp/dram_init.c index 198785353f1..3698fc49bf1 100644 --- a/arch/arm/mach-stm32mp/dram_init.c +++ b/arch/arm/mach-stm32mp/dram_init.c @@ -86,14 +86,3 @@ phys_addr_t board_get_usable_ram_top(phys_size_t total_size) return reg + size; } - -void efi_add_known_memory(void) -{ - if (IS_ENABLED(CONFIG_EFI_LOADER)) - /* - * Memory over ram_top is reserved to OPTEE. - * 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); -}