]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: clk: at91: Add clock IDs for the slow clock controller
authorClaudiu Beznea <claudiu.beznea@tuxon.dev>
Mon, 26 Aug 2024 17:31:14 +0000 (20:31 +0300)
committerClaudiu Beznea <claudiu.beznea@tuxon.dev>
Sun, 8 Dec 2024 15:55:26 +0000 (17:55 +0200)
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>
include/dt-bindings/clock/at91.h

index 6ede88c3992d1bea4d65096f7c60c235befedf04..99f4767ff6bb407e1bba673a867c42369e9df8aa 100644 (file)
@@ -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