From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 16B5FC7EE23 for ; Tue, 30 May 2023 09:05:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1F5DE8471B; Tue, 30 May 2023 11:05:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=bootlin.com 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=bootlin.com header.i=@bootlin.com header.b="MZ6iE4+y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 470678479F; Tue, 30 May 2023 11:05:26 +0200 (CEST) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DC71C8471A for ; Tue, 30 May 2023 11:05:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=thomas.perrot@bootlin.com X-GND-Sasl: thomas.perrot@bootlin.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1685437523; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RDggiN3cmYOsOUFzE/kogXC37uj+1SvpSAWc2f/rups=; b=MZ6iE4+yzWBACb9xaH1qw4rGyQFLqYZfVZv/Cif0BawB6DumUWE7vN7+oU89KZYN15ecda /Sx7m4feQnFK66ytV8IXjlZ9McrU0v0mhLk+TIS1X3hNsYGmJTdZ6M0+lsD40uUD9iIQ22 atbd4U4eg6mdcdQbpkYBCDJlCbFaEaO2flZxRXynzhWRKTNn9dbY3RIvaU4ekYQc0Owa8m ZMuJEOngvDoc3chKKsnP5GpUdO9eyIWeqUZ6BiHmOkccMK+5/cOCKan9KWbMSGxHIZBqvc krfAnRgWw6lrTpJD2Ao2j1aRZjiWwB+Ih2AmxQfJvYAbSfqJzs0GCZCLIWcOMA== X-GND-Sasl: thomas.perrot@bootlin.com X-GND-Sasl: thomas.perrot@bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 13D6E60014; Tue, 30 May 2023 09:05:22 +0000 (UTC) From: thomas.perrot@bootlin.com To: u-boot@lists.denx.de Cc: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Thomas Perrot Subject: [PATCH] ARM: at91: armv7: don't initialize clocks if scmi clock driver is enabled Date: Tue, 30 May 2023 11:05:16 +0200 Message-Id: <20230530090516.199426-1-thomas.perrot@bootlin.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 From: Clément Léger Because clock devices are initialized by the SCMI server, if CONFIG_CLK_SCMI is defined. Signed-off-by: Clément Léger Signed-off-by: Thomas Perrot --- 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