Message ID | 20240826173116.3628337-2-claudiu.beznea@tuxon.dev (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | clk: at91: sckc: Add macros for the slow clock | expand |
On Mon, Aug 26, 2024 at 08:31:14PM +0300, Claudiu Beznea wrote: > Add clock IDs for the slow clock controller. Previously, raw numbers > were used (0 or 1) for clocks generated by the slow clock controller. This > leads to confusion and wrong IDs were used on few device trees. To avoid > this add macros. > > Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev> > --- > include/dt-bindings/clock/at91.h | 4 ++++ Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
diff --git a/include/dt-bindings/clock/at91.h b/include/dt-bindings/clock/at91.h index 6ede88c3992d..99f4767ff6bb 100644 --- a/include/dt-bindings/clock/at91.h +++ b/include/dt-bindings/clock/at91.h @@ -55,4 +55,8 @@ #define AT91_PMC_GCKRDY 24 /* Generated Clocks */ #endif +/* Slow clock. */ +#define SCKC_MD_SLCK 0 +#define SCKC_TD_SLCK 1 + #endif
Add clock IDs for the slow clock controller. Previously, raw numbers were used (0 or 1) for clocks generated by the slow clock controller. This leads to confusion and wrong IDs were used on few device trees. To avoid this add macros. Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev> --- include/dt-bindings/clock/at91.h | 4 ++++ 1 file changed, 4 insertions(+)