Skip to content

Commit d87daa1

Browse files
committed
dt-bindings: clk: at91: Add clock IDs for the slow clock controller
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Claudiu Beznea <[email protected]>
1 parent 40384c8 commit d87daa1

File tree

1 file changed

+4
-0
lines changed
  • include/dt-bindings/clock

1 file changed

+4
-0
lines changed

include/dt-bindings/clock/at91.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,8 @@
5555
#define AT91_PMC_GCKRDY 24 /* Generated Clocks */
5656
#endif
5757

58+
/* Slow clock. */
59+
#define SCKC_MD_SLCK 0
60+
#define SCKC_TD_SLCK 1
61+
5862
#endif

0 commit comments

Comments
 (0)