162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * This header provides constants for AT91 pmc status. 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * The constants defined in this header are being used in dts. 662306a36Sopenharmony_ci */ 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_AT91_H 962306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_AT91_H 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#define PMC_TYPE_CORE 0 1262306a36Sopenharmony_ci#define PMC_TYPE_SYSTEM 1 1362306a36Sopenharmony_ci#define PMC_TYPE_PERIPHERAL 2 1462306a36Sopenharmony_ci#define PMC_TYPE_GCK 3 1562306a36Sopenharmony_ci#define PMC_TYPE_PROGRAMMABLE 4 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci#define PMC_SLOW 0 1862306a36Sopenharmony_ci#define PMC_MCK 1 1962306a36Sopenharmony_ci#define PMC_UTMI 2 2062306a36Sopenharmony_ci#define PMC_MAIN 3 2162306a36Sopenharmony_ci#define PMC_MCK2 4 2262306a36Sopenharmony_ci#define PMC_I2S0_MUX 5 2362306a36Sopenharmony_ci#define PMC_I2S1_MUX 6 2462306a36Sopenharmony_ci#define PMC_PLLACK 7 2562306a36Sopenharmony_ci#define PMC_PLLBCK 8 2662306a36Sopenharmony_ci#define PMC_AUDIOPLLCK 9 2762306a36Sopenharmony_ci#define PMC_AUDIOPINCK 10 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci/* SAMA7G5 */ 3062306a36Sopenharmony_ci#define PMC_CPUPLL (PMC_MAIN + 1) 3162306a36Sopenharmony_ci#define PMC_SYSPLL (PMC_MAIN + 2) 3262306a36Sopenharmony_ci#define PMC_DDRPLL (PMC_MAIN + 3) 3362306a36Sopenharmony_ci#define PMC_IMGPLL (PMC_MAIN + 4) 3462306a36Sopenharmony_ci#define PMC_BAUDPLL (PMC_MAIN + 5) 3562306a36Sopenharmony_ci#define PMC_AUDIOPMCPLL (PMC_MAIN + 6) 3662306a36Sopenharmony_ci#define PMC_AUDIOIOPLL (PMC_MAIN + 7) 3762306a36Sopenharmony_ci#define PMC_ETHPLL (PMC_MAIN + 8) 3862306a36Sopenharmony_ci#define PMC_CPU (PMC_MAIN + 9) 3962306a36Sopenharmony_ci#define PMC_MCK1 (PMC_MAIN + 10) 4062306a36Sopenharmony_ci 4162306a36Sopenharmony_ci#ifndef AT91_PMC_MOSCS 4262306a36Sopenharmony_ci#define AT91_PMC_MOSCS 0 /* MOSCS Flag */ 4362306a36Sopenharmony_ci#define AT91_PMC_LOCKA 1 /* PLLA Lock */ 4462306a36Sopenharmony_ci#define AT91_PMC_LOCKB 2 /* PLLB Lock */ 4562306a36Sopenharmony_ci#define AT91_PMC_MCKRDY 3 /* Master Clock */ 4662306a36Sopenharmony_ci#define AT91_PMC_LOCKU 6 /* UPLL Lock */ 4762306a36Sopenharmony_ci#define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */ 4862306a36Sopenharmony_ci#define AT91_PMC_MOSCSELS 16 /* Main Oscillator Selection */ 4962306a36Sopenharmony_ci#define AT91_PMC_MOSCRCS 17 /* Main On-Chip RC */ 5062306a36Sopenharmony_ci#define AT91_PMC_CFDEV 18 /* Clock Failure Detector Event */ 5162306a36Sopenharmony_ci#define AT91_PMC_GCKRDY 24 /* Generated Clocks */ 5262306a36Sopenharmony_ci#endif 5362306a36Sopenharmony_ci 5462306a36Sopenharmony_ci#endif 55