From patchwork Tue Oct 8 18:14:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 833592 Delivered-To: patch@linaro.org Received: by 2002:adf:a1d9:0:b0:367:895a:4699 with SMTP id v25csp435804wrv; Tue, 8 Oct 2024 11:16:05 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWI0OZgDatBwyS3nM4/2NfgDTYGEKhCNLm9V1v1hlAvIYbtksDEjYacZRgJu2ms6SDEfxiEXQ==@linaro.org X-Google-Smtp-Source: AGHT+IHwPX4GrmjcgNCl70lq5eQRTFlJ7MYFL0TfkkuUXroSQKoNs1E2VwhzvOOA2ciftdEf0zwE X-Received: by 2002:a05:600c:1c8a:b0:42c:a387:6a6f with SMTP id 5b1f17b1804b1-42f85ab86c3mr161329225e9.20.1728411365427; Tue, 08 Oct 2024 11:16:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728411365; cv=none; d=google.com; s=arc-20240605; b=C66Sa29mCrdh3IeKLQJDYEwnp2Ci/3d/guSr2SDQS2mVmWTgsSaTdjtj0OW49QZ03+ zmeFMxQuCCUo2o4afMgHJaocGI6L25h+K9EVFN91Vbcq09YwAqg9bwijT1/sv/J4WvYg 3ZBU1w1beBKCJGoAAU4WO5+qTNKEyFJAb+wjePSaT2hfufhXYv+CpxcA7OyvsmB7CsD/ cf3Vy24rSOfOxePt9yoHTzj9X6AuBTrJNokuSacOhhyh2tWhrV3WE5N5boZ6/+Vszk9D SmBfIDZwwzKaLEv45T4DH8WOLBRN4v8E5u8Cro6zBfVsr6n2Oe4qXRfu0KcjhCWNOnhI QYXg== 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=3p/tU36z+lUHd2eInqzC2A2egjWMuNPP3Yl2LyMO4Wg=; fh=EURqIhM9Cs9+QDCQ9Vm6IsJQ8gNya1VBDuunKFxPiA8=; b=Lvy5mGy8vTeiHJjsIGKX1QoO4J8GDeHOBYI5+sYzpc+WsVTYfN0WU8TbFHJj7vVIU2 w6g0wrf8SVYvEJwXtLEDiQejH16Dv1O3j5OlzSogsjWOuNnZQu/SQ8UYPJVHrfhtKBOa +1/3BWrk93x3L1sV2HypraBGUXIpvucEnfd1Hv6wcGfy6nMTfJVVnU2+AmH5TIufHnId retzbr/nfVXkGZ2XLsiXtJ9+JSjBr2cQ7GYB4Z3O9iw0PawRmV27Vw/BJ7W8a8PPYJs5 Zcu4ueMtqcGhixNY5zqCqUZSYNnGbQ1w4yf3TPn5WtkgccH3Fd7Two4iPZZHRncFi4I4 JLpg==; 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 5b1f17b1804b1-42f86b521desi50439085e9.205.2024.10.08.11.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 11:16:05 -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 5420C88EF9; 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=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id B449D88F2A; Tue, 8 Oct 2024 20:15:12 +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 BF00F88E26 for ; Tue, 8 Oct 2024 20:15: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 C95EDDA7; Tue, 8 Oct 2024 11:15: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 5FFC83F64C; Tue, 8 Oct 2024 11:15:07 -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 07/14] ti: k3: remove efi_add_known_memory() function definition Date: Tue, 8 Oct 2024 23:44:28 +0530 Message-Id: <20241008181435.1753814-8-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 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 --- Changes since V1: 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); -}