ARM: at91: don't initialize clocks if scmi clock driver is enabled

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>
This commit is contained in:
Clément Léger 2023-05-30 11:05:16 +02:00 committed by Eugen Hristev
parent c89982f089
commit ee8f873678

View file

@ -24,7 +24,7 @@
int arch_cpu_init(void) int arch_cpu_init(void)
{ {
#if defined(CONFIG_CLK_CCF) #if defined(CONFIG_CLK_CCF) || defined(CONFIG_CLK_SCMI)
return 0; return 0;
#else #else
return at91_clock_init(CFG_SYS_AT91_MAIN_CLOCK); return at91_clock_init(CFG_SYS_AT91_MAIN_CLOCK);