hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/include/dt-bindings/clock/at91.h
....@@ -1,14 +1,31 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * This header provides constants for AT91 pmc status.
34 *
45 * The constants defined in this header are being used in dts.
5
- *
6
- * Licensed under GPLv2 or later.
76 */
87
98 #ifndef _DT_BINDINGS_CLK_AT91_H
109 #define _DT_BINDINGS_CLK_AT91_H
1110
11
+#define PMC_TYPE_CORE 0
12
+#define PMC_TYPE_SYSTEM 1
13
+#define PMC_TYPE_PERIPHERAL 2
14
+#define PMC_TYPE_GCK 3
15
+#define PMC_TYPE_PROGRAMMABLE 4
16
+
17
+#define PMC_SLOW 0
18
+#define PMC_MCK 1
19
+#define PMC_UTMI 2
20
+#define PMC_MAIN 3
21
+#define PMC_MCK2 4
22
+#define PMC_I2S0_MUX 5
23
+#define PMC_I2S1_MUX 6
24
+#define PMC_PLLACK 7
25
+#define PMC_PLLBCK 8
26
+#define PMC_AUDIOPLLCK 9
27
+
28
+#ifndef AT91_PMC_MOSCS
1229 #define AT91_PMC_MOSCS 0 /* MOSCS Flag */
1330 #define AT91_PMC_LOCKA 1 /* PLLA Lock */
1431 #define AT91_PMC_LOCKB 2 /* PLLB Lock */
....@@ -19,5 +36,6 @@
1936 #define AT91_PMC_MOSCRCS 17 /* Main On-Chip RC */
2037 #define AT91_PMC_CFDEV 18 /* Clock Failure Detector Event */
2138 #define AT91_PMC_GCKRDY 24 /* Generated Clocks */
39
+#endif
2240
2341 #endif