Skip to content

Commit

Permalink
dt-bindings: clk: at91: Add clock IDs for the slow clock controller
Browse files Browse the repository at this point in the history
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.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240826173116.3628337-2-claudiu.beznea@tuxon.dev
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
  • Loading branch information
Claudiu Beznea committed Dec 8, 2024
1 parent 40384c8 commit d87daa1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/dt-bindings/clock/at91.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d87daa1

Please sign in to comment.