]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/include/dt-bindings/clock/at91.h
Import DTS files for arm, arm64, riscv from Linux 5.8
[FreeBSD/FreeBSD.git] / sys / gnu / dts / include / dt-bindings / clock / at91.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * This header provides constants for AT91 pmc status.
4  *
5  * The constants defined in this header are being used in dts.
6  */
7
8 #ifndef _DT_BINDINGS_CLK_AT91_H
9 #define _DT_BINDINGS_CLK_AT91_H
10
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
29 #define AT91_PMC_MOSCS          0               /* MOSCS Flag */
30 #define AT91_PMC_LOCKA          1               /* PLLA Lock */
31 #define AT91_PMC_LOCKB          2               /* PLLB Lock */
32 #define AT91_PMC_MCKRDY         3               /* Master Clock */
33 #define AT91_PMC_LOCKU          6               /* UPLL Lock */
34 #define AT91_PMC_PCKRDY(id)     (8 + (id))      /* Programmable Clock */
35 #define AT91_PMC_MOSCSELS       16              /* Main Oscillator Selection */
36 #define AT91_PMC_MOSCRCS        17              /* Main On-Chip RC */
37 #define AT91_PMC_CFDEV          18              /* Clock Failure Detector Event */
38 #define AT91_PMC_GCKRDY         24              /* Generated Clocks */
39 #endif
40
41 #endif