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] ARM: psci: hide ARM_PSCI options when ARCH_IMX7 is disabled
Date: Wed, 11 Sep 2024 10:17:30 +0200	[thread overview]
Message-ID: <20240911081730.1523334-1-a.fatoum@pengutronix.de> (raw)

We only support providing PSCI on a single SoC, the i.MX7. Having the
option in other configuration is thus confusing.

Therefore hide the symbols when not building for the i.MX7. Using PSCI
as consumer is a separate symbol (ARM_PSCI_CLIENT) and should be
unaffected.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 arch/arm/Kconfig          | 11 +++++++++--
 arch/arm/mach-imx/Kconfig |  1 +
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 6406b8ebe073..6815e4de46bd 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -412,9 +412,16 @@ config ARM_SECURE_MONITOR
 config ARM_PSCI_OF
 	bool
 
+config HAS_PSCI_PROVIDER
+	bool
+	help
+	  Selected by platforms that implement PSCI inside barebox.
+	  This is uncommon as barebox is usually PSCI client on systems
+	  with PSCI with the provider being ARM Trusted Firmware.
+
 config ARM_PSCI
-	bool "enable Power State Coordination Interface (PSCI) support"
-	depends on CPU_V7
+	bool "Provide Power State Coordination Interface (PSCI) support"
+	depends on HAS_PSCI_PROVIDER
 	select ARM_SECURE_MONITOR
 	select ARM_PSCI_OF
 	help
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index 96ab72315732..d1f8dc795b57 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -143,6 +143,7 @@ config ARCH_IMX6UL
 config ARCH_IMX7
 	bool
 	select CPU_V7
+	select HAS_PSCI_PROVIDER
 	select PINCTRL_IMX_IOMUX_V3
 	select COMMON_CLK_OF_PROVIDER
 	select ARCH_HAS_FEC_IMX
-- 
2.39.2




             reply	other threads:[~2024-09-11  8:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-11  8:17 Ahmad Fatoum [this message]
2024-09-11  8:30 ` 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=20240911081730.1523334-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