xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/at91.h (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0-or-later */
2*c66ec88fSEmmanuel Vadot /*
3*c66ec88fSEmmanuel Vadot  * This header provides constants for AT91 pmc status.
4*c66ec88fSEmmanuel Vadot  *
5*c66ec88fSEmmanuel Vadot  * The constants defined in this header are being used in dts.
6*c66ec88fSEmmanuel Vadot  */
7*c66ec88fSEmmanuel Vadot 
8*c66ec88fSEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_AT91_H
9*c66ec88fSEmmanuel Vadot #define _DT_BINDINGS_CLK_AT91_H
10*c66ec88fSEmmanuel Vadot 
11*c66ec88fSEmmanuel Vadot #define PMC_TYPE_CORE		0
12*c66ec88fSEmmanuel Vadot #define PMC_TYPE_SYSTEM		1
13*c66ec88fSEmmanuel Vadot #define PMC_TYPE_PERIPHERAL	2
14*c66ec88fSEmmanuel Vadot #define PMC_TYPE_GCK		3
15*c66ec88fSEmmanuel Vadot #define PMC_TYPE_PROGRAMMABLE	4
16*c66ec88fSEmmanuel Vadot 
17*c66ec88fSEmmanuel Vadot #define PMC_SLOW		0
18*c66ec88fSEmmanuel Vadot #define PMC_MCK			1
19*c66ec88fSEmmanuel Vadot #define PMC_UTMI		2
20*c66ec88fSEmmanuel Vadot #define PMC_MAIN		3
21*c66ec88fSEmmanuel Vadot #define PMC_MCK2		4
22*c66ec88fSEmmanuel Vadot #define PMC_I2S0_MUX		5
23*c66ec88fSEmmanuel Vadot #define PMC_I2S1_MUX		6
24*c66ec88fSEmmanuel Vadot #define PMC_PLLACK		7
25*c66ec88fSEmmanuel Vadot #define PMC_PLLBCK		8
26*c66ec88fSEmmanuel Vadot #define PMC_AUDIOPLLCK		9
27*c66ec88fSEmmanuel Vadot 
28*c66ec88fSEmmanuel Vadot #ifndef AT91_PMC_MOSCS
29*c66ec88fSEmmanuel Vadot #define AT91_PMC_MOSCS		0		/* MOSCS Flag */
30*c66ec88fSEmmanuel Vadot #define AT91_PMC_LOCKA		1		/* PLLA Lock */
31*c66ec88fSEmmanuel Vadot #define AT91_PMC_LOCKB		2		/* PLLB Lock */
32*c66ec88fSEmmanuel Vadot #define AT91_PMC_MCKRDY		3		/* Master Clock */
33*c66ec88fSEmmanuel Vadot #define AT91_PMC_LOCKU		6		/* UPLL Lock */
34*c66ec88fSEmmanuel Vadot #define AT91_PMC_PCKRDY(id)	(8 + (id))	/* Programmable Clock */
35*c66ec88fSEmmanuel Vadot #define AT91_PMC_MOSCSELS	16		/* Main Oscillator Selection */
36*c66ec88fSEmmanuel Vadot #define AT91_PMC_MOSCRCS	17		/* Main On-Chip RC */
37*c66ec88fSEmmanuel Vadot #define AT91_PMC_CFDEV		18		/* Clock Failure Detector Event */
38*c66ec88fSEmmanuel Vadot #define AT91_PMC_GCKRDY		24		/* Generated Clocks */
39*c66ec88fSEmmanuel Vadot #endif
40*c66ec88fSEmmanuel Vadot 
41*c66ec88fSEmmanuel Vadot #endif
42