From patchwork Tue Sep 10 09:00:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 826939 Delivered-To: patch@linaro.org Received: by 2002:adf:ab1c:0:b0:367:895a:4699 with SMTP id q28csp198513wrc; Tue, 10 Sep 2024 02:01:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWa4p5SosSYbN8xweZq4zxT9CIZAhgcdgWJRkaWq0+7d2TASG5t8Nxfu3a2AcIhogfZVoqVlw==@linaro.org X-Google-Smtp-Source: AGHT+IHjK7TdVDxUqacCiVJ2P2IMyQhVH2MZSATfGyNe6er4gRLa6u6sOp3tgk8LjcK3DaE7j6h3 X-Received: by 2002:a05:600c:1c25:b0:42c:ae1d:ea4b with SMTP id 5b1f17b1804b1-42cbde1a51emr12069385e9.13.1725958872198; Tue, 10 Sep 2024 02:01:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725958872; cv=none; d=google.com; s=arc-20240605; b=iUcu8GFi+S7EiCAnq1uT2C49eJzwOALFF4zTrx1NYTPRG6TiRr8CRbrdHVPuczCgmB VTotihpWLCGfeHeTzVQ/8pro58O0w38TL3XQon+E8c401Up7jihSJNKO52xfApyxy0Ei mMqpQZRUufb0GerJuj/qIrVPDwQ2Rg31g25Y1+b7zaj0SCqDge84pBNf5RCzr2j5c+no Ln7iN/oCq2vBqz8rRkD1uDMmpefe21R8GUGD2HcwWGG16go8E9lD08REI0Jg4BNrlRVU DxIz8+xk0rr/tkIk2fwKJKa1/HBwapBfUPL0ZWMMwJBu/gt4pZMOiwveoEae7MRCkHOw CHKg== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=fL+9abO3xxqeqCbLBC9JZ00FGqEby9ZFqwOg8qUBwcU=; fh=2bRG8GvMKT7nIL6/3YMhvJ67Q90bJihRhwbTZL8VOiY=; b=Q6QL0DkgmyiwG54WEnvEDhfGkBaWCWajGpCElNBZxaoAUyj5+Xut8ojSkzBfKJ2we1 VJvFJTbzQzWBRiOAPfXVhkIm2erkaGDeNm6B05m5cNb73enHYWFTjQAqmVUVYmZbF51M VXVQoDCCNr80KaqmfJ6oSy4fuiMtTOgEwcatwSgl63jgTH0JAhqcHaTsPR8LKCnvJ+4P ErvfAXUWJ/9CtFLNsK8Q8p1kbaPXxzBWLYuBaxKqvcCJ/a84wDRT5tgtMpyDbd8+Mo1c ELEAXXyIuwKD/MZYlRqdjkbhh3AKgOdJjlr30Etj5LQkdXvIURic4UyXa4qCgYUCdYOq 3c4w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="RnLen/2h"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@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-42cbf03f3d4si6232615e9.228.2024.09.10.02.01.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 02:01:12 -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; dkim=pass header.i=@linaro.org header.s=google header.b="RnLen/2h"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A3AE588F47; Tue, 10 Sep 2024 11:01:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="RnLen/2h"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7DB6588F52; Tue, 10 Sep 2024 11:01:09 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3A59488F44 for ; Tue, 10 Sep 2024 11:01:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jerome.forissier@linaro.org Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-42cbc38a997so6955755e9.1 for ; Tue, 10 Sep 2024 02:01:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725958866; x=1726563666; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fL+9abO3xxqeqCbLBC9JZ00FGqEby9ZFqwOg8qUBwcU=; b=RnLen/2hwIpwHPjw7Tf6H7sYOO3SyN+LtI2RWN39qfu9IjFbUPiNMey2c9HbGuPEuX dsnxB/Szwd44Qud/1x/0UziVtgT7P7Jp/bghFSp14bPSz2FaA275lVzgc2RFVNgLwBKG OLvwPNafBECv47MwcJ3xXcxTBc5G/rgA0LJCpCJVE6xQtTgT6LkpaoBKpBb5NVQAbld8 qhINqqF0bnKrQPUUB0XBBRyQ3kpZL6cc9gmbR8lf7h31Tj8Gn8TCkK/HVdu450RfE1eI J2s42oHaklgJKgaQZEDBDCuql7q8Gjn8UJukwyeSty7BsAIuUeh47iXhh5tuMpkhTieT 2r8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725958866; x=1726563666; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fL+9abO3xxqeqCbLBC9JZ00FGqEby9ZFqwOg8qUBwcU=; b=nDjtSu3ws2OasfJACiX9gqV0o/gH94YdEshIrKNvOw5PhI40PmiPo13zpCEeA/KM92 h37YzxUOcxVtivNsxrOfVgumAYEygH8pYCsm91UCVPMPRY9rRVaIPMsUWHS1oby15IaC D2N7iAPUmrQbBI0ZmoKPs1QsmPqbW2I+X4m7f+GJm+LhHFS8/7CAQnPiWwUZ3tyEoFEH 8HofcoD2T2aEmPipQ099CS3iufqpteoWmAqaUe0ihNsXI+0QQyxky4TxSo3VlXqsuf5Q Ff2Yvb5htueKpZYatCTGYamcnb8IFPtbZ70OWXB3rpR/2SweneBsLgAdSB8K7jtLIWPe SKLw== X-Gm-Message-State: AOJu0YwJm6QOIsSavhr/JjRbAh4YNhm/rCdpmiesXMGWbWRD3yx/LvMn +/8lgJ0fh6oIzEGOrFlnM1cMgeRVkVXZUrRoTQ7YpzbnEjFWuoh7c64lR4wAsaJ+fdIjWgD2HTp 43bBiZA== X-Received: by 2002:a05:600c:45d1:b0:42c:ba81:117c with SMTP id 5b1f17b1804b1-42cbddd6575mr13426855e9.6.1725958866260; Tue, 10 Sep 2024 02:01:06 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:d022:7718:6b27:6851]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37895675c40sm8281423f8f.51.2024.09.10.02.01.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 02:01:06 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Jerome Forissier , Tom Rini , Simon Glass , Sean Anderson , Andre Przywara , Samuel Holland , Lukas Funke Subject: [PATCH] spl: ram: hide SPL_RAM_SUPPORT Date: Tue, 10 Sep 2024 11:00:12 +0200 Message-Id: <20240910090013.2686124-1-jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 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 Make SPL_RAM_SUPPORT a hidden Kconfig symbol, automatically selected by SPL_RAM_DEVICE or SPL_DFU. Avoids the situation where SPL_RAM_SUPPORT may be enabled without the other two being enabled, which results in the following build warning: common/spl/spl_ram.c:19:14: warning: ‘spl_ram_load_read’ defined but not used [-Wunused-function] 19 | static ulong spl_ram_load_read(struct spl_load_info *load, ulong sector, | ^~~~~~~~~~~~~~~~~ Signed-off-by: Jerome Forissier --- common/spl/Kconfig | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) Replaces "spl: ram: fix build warning when neither RAM_DEVICE nor DFU are enabled" [1]. [1] https://lists.denx.de/pipermail/u-boot/2024-September/564302.html diff --git a/common/spl/Kconfig b/common/spl/Kconfig index c08ff064493..885a012461c 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -1238,15 +1238,11 @@ config SPL_POWER_DOMAIN the drivers in drivers/power/domain as part of a SPL build. config SPL_RAM_SUPPORT - bool "Support booting from RAM" - default y if MICROBLAZE || ARCH_SOCFPGA || ARCH_TEGRA || ARCH_ZYNQ - help - Enable booting of an image in RAM. The image can be preloaded or - it can be loaded by SPL directly into RAM (e.g. using USB). + bool config SPL_RAM_DEVICE bool "Support booting from preloaded image in RAM" - depends on SPL_RAM_SUPPORT + select SPL_RAM_SUPPORT default y if MICROBLAZE || ARCH_SOCFPGA || ARCH_TEGRA || ARCH_ZYNQ help Enable booting of an image already loaded in RAM. The image has to