mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] ddr: imx: hide config prompt unless COMPILE_TEST
Date: Tue, 23 Apr 2024 08:00:46 +0200	[thread overview]
Message-ID: <20240423060046.1513717-1-a.fatoum@pengutronix.de> (raw)

The DDR drivers are called into by low-level code for DRAM init.
The Kconfig options for them are selected by the SOC symbols, e.g.
ARCH_IMX8M and there's no point in asking for user decision: either
it's required and already selected or it will be unused and subject
to linker garbage collection. Therefore, hide the prompts by default.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/ddr/imx/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ddr/imx/Kconfig b/drivers/ddr/imx/Kconfig
index 71d4144e856e..ec6c097ec9f6 100644
--- a/drivers/ddr/imx/Kconfig
+++ b/drivers/ddr/imx/Kconfig
@@ -7,10 +7,10 @@ config IMX_DRAM
 
 config IMX8M_DRAM
 	select IMX_DRAM
-	bool "imx8m dram controller support"
+	bool "imx8m dram controller support" if COMPILE_TEST
 
 config IMX9_DRAM
 	select IMX_DRAM
-	bool "imx9 dram controller support"
+	bool "imx9 dram controller support" if COMPILE_TEST
 
 endmenu
-- 
2.39.2




             reply	other threads:[~2024-04-23  6:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-23  6:00 Ahmad Fatoum [this message]
2024-04-23  6:24 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240423060046.1513717-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox