From patchwork Sun Oct 13 10:55:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 835075 Delivered-To: patch@linaro.org Received: by 2002:adf:b352:0:b0:37d:45d0:187 with SMTP id k18csp1536799wrd; Sun, 13 Oct 2024 03:57:16 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXy9Q/RbQqgn9pRyXDSbGv+jctckrKP5Djj48ht5DRW0GDLUmXq/l99V/KSMtpO5MBJMlr8mA==@linaro.org X-Google-Smtp-Source: AGHT+IG3cJr+sC8/d190BjOLTmAxPPyn2MwWxX3ELSxQPycB9cBnRrWUtsbfMeALkAOUm3RVNMIU X-Received: by 2002:a05:6e02:1fc3:b0:3a3:4122:b56e with SMTP id e9e14a558f8ab-3a3b608711cmr46514385ab.26.1728817036655; Sun, 13 Oct 2024 03:57:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728817036; cv=none; d=google.com; s=arc-20240605; b=K5XvMqrkbIy8/1my1BGIJwwc59TvrVXo7xQKhqRRAHRsJVd7g1jtenJnHVDu9rjdop 6K+rikzuTspQ/aVpfEYu8Dkd8Ag0n7W6kGkj6Gxdbmxe50y7T6cWJqjNoW7BUhY+aKLv MCiAC9ZK2foDlaqIw9TVEiQZm9gnrkqt3La7M4GTNI8jNhqb/0cCFjk5VAOR9Yl2x5sV yiqGttFan1akuHn0JoUzIDhJGpopiljwnt3qcs63D/PzlQ8jEplejjNBFHp0zN5qMF/P SmXiPWL1FfbxYCaabJqaIjzvdhx105iMonw7+7XUx2UPKlfxu2D0ELQI7YJTqxBDZMMo 7Vmg== 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=i1sptK0Ecp2Af5IAIT+wepN4TX+iikAdUAt0bzVPDVw=; fh=DqKFq13hCy9hcb48ZltPVvgEKSF1g1c/m42wn0WwlIc=; b=e2PUF/JYk/BYHCFdY5pfwlobpvhqbNzd7nfydf1NLMl0NBF48BGY4kp6sDLlk8RPL1 jcrZmULs9ZvJEdFzYXDz6u41/6mbwLMaSSwjGGMqRbjkiyrYtrrjj3Ho4oFwLlHniELQ jcW8rOR08gBDi1QdI57hJ5yGOjzAk4TRGtv2XaUmttW+QRU2nK3ZJIhpUTEmZ6MRb1OW H5bhTE3mMXXxVbzwxPZTXuq7uBL4byCXkjIae2/E5xmfSaEf9sOcI483Xk0N27bD9Kau 1qh6hSInw/AdkaHKIzopGuhgDjD43QE6lSYWP0Jl3Psa4RHo3nXFnAFas5S98imrZrur g7kw==; 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 e9e14a558f8ab-3a3afe136desi33745425ab.177.2024.10.13.03.57.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Oct 2024 03:57:16 -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 C24C488F55; Sun, 13 Oct 2024 12:56:14 +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 60DCF88F4E; Sun, 13 Oct 2024 12:56:13 +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 661FB88F23 for ; Sun, 13 Oct 2024 12:56:10 +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 03E331007; Sun, 13 Oct 2024 03:56:39 -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 D068C3F71E; Sun, 13 Oct 2024 03:56:06 -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 09/15] stm32mp: remove efi_add_known_memory() function definition Date: Sun, 13 Oct 2024 16:25:16 +0530 Message-Id: <20241013105522.391414-10-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 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 Reviewed-by: Simon Glass --- Changes since V2: 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 198785353f..3698fc49bf 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); -}