Re: [PATCH v4 3/3] clk: at91: allow setting all PMC clock parents via DT

From: Alexandre Belloni
Date: Mon May 04 2020 - 16:04:36 EST


Hi,

On 03/05/2020 19:19:26+0200, MichaÅ MirosÅaw wrote:
> diff --git a/include/dt-bindings/clock/at91.h b/include/dt-bindings/clock/at91.h
> index c3f4aa6a2d29..adcf608b41fa 100644
> --- a/include/dt-bindings/clock/at91.h
> +++ b/include/dt-bindings/clock/at91.h
> @@ -21,6 +21,9 @@
> #define PMC_MCK2 4
> #define PMC_I2S0_MUX 5
> #define PMC_I2S1_MUX 6
> +#define PMC_PLLACK 7
> +#define PMC_PLLBCK 8
> +#define PMC_AUDIOPLLCK 8 /* SAMA5D2-only, no PLLB there */

Just use 9 here because we can't know for sure that a future SoC won't
have both a PLLB and audio PLL.

>
> #ifndef AT91_PMC_MOSCS
> #define AT91_PMC_MOSCS 0 /* MOSCS Flag */
> --
> 2.20.1
>

--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com