u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
From: thomas.perrot@bootlin.com
To: u-boot@lists.denx.de
Cc: "Clément Léger" <clement.leger@bootlin.com>,
	"Thomas Perrot" <thomas.perrot@bootlin.com>
Subject: [PATCH] ARM: at91: armv7: don't initialize clocks if scmi clock driver is enabled
Date: Tue, 30 May 2023 11:05:16 +0200	[thread overview]
Message-ID: <20230530090516.199426-1-thomas.perrot@bootlin.com> (raw)

From: Clément Léger <clement.leger@bootlin.com>

Because clock devices are initialized by the SCMI server, if
CONFIG_CLK_SCMI is defined.

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
---
 arch/arm/mach-at91/armv7/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-at91/armv7/cpu.c b/arch/arm/mach-at91/armv7/cpu.c
index 616621a1f9de..5ea7e2609f59 100644
--- a/arch/arm/mach-at91/armv7/cpu.c
+++ b/arch/arm/mach-at91/armv7/cpu.c
@@ -24,7 +24,7 @@
 
 int arch_cpu_init(void)
 {
-#if defined(CONFIG_CLK_CCF)
+#if defined(CONFIG_CLK_CCF) || defined(CONFIG_CLK_SCMI)
 	return 0;
 #else
 	return at91_clock_init(CFG_SYS_AT91_MAIN_CLOCK);
-- 
2.40.1


             reply	other threads:[~2023-05-30  9:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-30  9:05 thomas.perrot [this message]
2023-06-16  9:19 ` [PATCH] ARM: at91: armv7: don't initialize clocks if scmi clock driver is enabled Eugen Hristev

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=20230530090516.199426-1-thomas.perrot@bootlin.com \
    --to=thomas.perrot@bootlin.com \
    --cc=clement.leger@bootlin.com \
    --cc=u-boot@lists.denx.de \
    /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;
as well as URLs for NNTP newsgroup(s).