From patchwork Thu Sep 5 08:28:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 825621 Delivered-To: patch@linaro.org Received: by 2002:adf:a345:0:b0:367:895a:4699 with SMTP id d5csp186901wrb; Thu, 5 Sep 2024 01:29:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVX8QpozE7adLklqfqG4jbyTC5fDUgxOvk2N0oA/D00rD5/WjBQa8jgkr7cjY2CNe7j1rXRWw==@linaro.org X-Google-Smtp-Source: AGHT+IEs1bSlf1sg4+BJ9z5+fN2ki6E26qwEKFTPocaY49vDKdIMyWvnOATf+VeTnB/YVkyjPV52 X-Received: by 2002:a17:907:97d4:b0:a86:aded:b09c with SMTP id a640c23a62f3a-a8a32fe141cmr587827966b.60.1725524997471; Thu, 05 Sep 2024 01:29:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725524997; cv=none; d=google.com; s=arc-20240605; b=QmK0lwoJO603KC9XJzYVliopP4IxC2ij8syG89bwtIl4Q7WNqMgaVsCW8LRkBxKB5R gWRB+iIIN6NR78uWhU/dVt2HF4Kkc7TLEC0fQriHiaxbN7InQyhmJlwJ/1nH1MRUGPAP vZJni3dd4Lf4+rqTc8Zj1ZZ509ErVnjT/S3hx6MuowdTpIAvsGN46ieMRK+6DU945f+p Jce6EsXS+98uWDLY0NOA553tSj67MObTaMVBKe6uObytTdxmZLlGnwm/ycQtOkhlH3S1 LIqH8yDxxmHkg4IAIghIgauModBVEcKMVbYx/CsOPg5//lDXME4uVwj8bIALxMsh4SMS fzog== 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=6x3RpPEG25nLrqvVFznJKHdw4bB47Y0Ef4fpaZB1dW0=; fh=xhhG27Jur2HVmyj6xWbgrQg2vRawqr6LmtjP4yz05ls=; b=Sc+i5SoBbPpTVn9J80uUks8KPFcHitgoua8Xsa85Ks1dg/BY5iiFD3Vy/und1cPiqC MIb08vvcytNT2cbz90W+gIoaBUpE1SNKEa2N8g6FKM3i7NwbhZg9nJ4v+AuaSK0leOec 41cUTx5HjJC2J7EG0zEOyqeZgyn1igVlIMZ467yV/pOuVlN7lIkgbl1w7XM77+w92rvQ YsTQuXGLKZb2nEPdQOj675puHgrcjUMBfdMcfcMEkzdolf+t0xaLY/T2dSvW7Pay7V7l X49NvkbeyhaWUKMDtu2+dKH6pgshT91dlHi/e9AG39gPgWuJvBnHg5VkiHzNxZIdPwbx DjiQ==; 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 a640c23a62f3a-a8a78b381dasi25497866b.447.2024.09.05.01.29.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 01:29:57 -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 A1EC388CCE; Thu, 5 Sep 2024 10:29:03 +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 EAB1E88CCB; Thu, 5 Sep 2024 10:29:02 +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_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE 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 03E4288C6D for ; Thu, 5 Sep 2024 10:29:01 +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 E550BFEC; Thu, 5 Sep 2024 01:29:26 -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 F23013F66E; Thu, 5 Sep 2024 01:28:57 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Tom Rini , Bin Meng , Sughosh Ganu Subject: [PATCH 09/16] ti: k3: remove efi_add_known_memory() function definition Date: Thu, 5 Sep 2024 13:58:04 +0530 Message-Id: <20240905082811.1585467-10-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240905082811.1585467-1-sughosh.ganu@linaro.org> References: <20240905082811.1585467-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 --- 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); -}