1 1.1 jmcneill /* $NetBSD: at91.h,v 1.1.1.4 2021/11/07 16:49:57 jmcneill Exp $ */ 2 1.1 jmcneill 3 1.1.1.3 skrll /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 1.1 jmcneill /* 5 1.1 jmcneill * This header provides constants for AT91 pmc status. 6 1.1 jmcneill * 7 1.1 jmcneill * The constants defined in this header are being used in dts. 8 1.1 jmcneill */ 9 1.1 jmcneill 10 1.1 jmcneill #ifndef _DT_BINDINGS_CLK_AT91_H 11 1.1 jmcneill #define _DT_BINDINGS_CLK_AT91_H 12 1.1 jmcneill 13 1.1.1.2 jmcneill #define PMC_TYPE_CORE 0 14 1.1.1.2 jmcneill #define PMC_TYPE_SYSTEM 1 15 1.1.1.2 jmcneill #define PMC_TYPE_PERIPHERAL 2 16 1.1.1.2 jmcneill #define PMC_TYPE_GCK 3 17 1.1.1.4 jmcneill #define PMC_TYPE_PROGRAMMABLE 4 18 1.1.1.2 jmcneill 19 1.1.1.2 jmcneill #define PMC_SLOW 0 20 1.1.1.2 jmcneill #define PMC_MCK 1 21 1.1.1.2 jmcneill #define PMC_UTMI 2 22 1.1.1.2 jmcneill #define PMC_MAIN 3 23 1.1.1.2 jmcneill #define PMC_MCK2 4 24 1.1.1.2 jmcneill #define PMC_I2S0_MUX 5 25 1.1.1.2 jmcneill #define PMC_I2S1_MUX 6 26 1.1.1.4 jmcneill #define PMC_PLLACK 7 27 1.1.1.4 jmcneill #define PMC_PLLBCK 8 28 1.1.1.4 jmcneill #define PMC_AUDIOPLLCK 9 29 1.1.1.4 jmcneill 30 1.1.1.4 jmcneill /* SAMA7G5 */ 31 1.1.1.4 jmcneill #define PMC_CPUPLL (PMC_MAIN + 1) 32 1.1.1.4 jmcneill #define PMC_SYSPLL (PMC_MAIN + 2) 33 1.1.1.4 jmcneill #define PMC_DDRPLL (PMC_MAIN + 3) 34 1.1.1.4 jmcneill #define PMC_IMGPLL (PMC_MAIN + 4) 35 1.1.1.4 jmcneill #define PMC_BAUDPLL (PMC_MAIN + 5) 36 1.1.1.4 jmcneill #define PMC_AUDIOPMCPLL (PMC_MAIN + 6) 37 1.1.1.4 jmcneill #define PMC_AUDIOIOPLL (PMC_MAIN + 7) 38 1.1.1.4 jmcneill #define PMC_ETHPLL (PMC_MAIN + 8) 39 1.1.1.4 jmcneill #define PMC_CPU (PMC_MAIN + 9) 40 1.1.1.2 jmcneill 41 1.1.1.2 jmcneill #ifndef AT91_PMC_MOSCS 42 1.1 jmcneill #define AT91_PMC_MOSCS 0 /* MOSCS Flag */ 43 1.1 jmcneill #define AT91_PMC_LOCKA 1 /* PLLA Lock */ 44 1.1 jmcneill #define AT91_PMC_LOCKB 2 /* PLLB Lock */ 45 1.1 jmcneill #define AT91_PMC_MCKRDY 3 /* Master Clock */ 46 1.1 jmcneill #define AT91_PMC_LOCKU 6 /* UPLL Lock */ 47 1.1 jmcneill #define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */ 48 1.1 jmcneill #define AT91_PMC_MOSCSELS 16 /* Main Oscillator Selection */ 49 1.1 jmcneill #define AT91_PMC_MOSCRCS 17 /* Main On-Chip RC */ 50 1.1 jmcneill #define AT91_PMC_CFDEV 18 /* Clock Failure Detector Event */ 51 1.1 jmcneill #define AT91_PMC_GCKRDY 24 /* Generated Clocks */ 52 1.1.1.2 jmcneill #endif 53 1.1 jmcneill 54 1.1 jmcneill #endif 55