1 /* $NetBSD: at91.h,v 1.1.1.1.10.1 2019/01/26 22:00:34 pgoyette Exp $ */ 2 3 /* 4 * This header provides constants for AT91 pmc status. 5 * 6 * The constants defined in this header are being used in dts. 7 * 8 * Licensed under GPLv2 or later. 9 */ 10 11 #ifndef _DT_BINDINGS_CLK_AT91_H 12 #define _DT_BINDINGS_CLK_AT91_H 13 14 #define PMC_TYPE_CORE 0 15 #define PMC_TYPE_SYSTEM 1 16 #define PMC_TYPE_PERIPHERAL 2 17 #define PMC_TYPE_GCK 3 18 19 #define PMC_SLOW 0 20 #define PMC_MCK 1 21 #define PMC_UTMI 2 22 #define PMC_MAIN 3 23 #define PMC_MCK2 4 24 #define PMC_I2S0_MUX 5 25 #define PMC_I2S1_MUX 6 26 27 #ifndef AT91_PMC_MOSCS 28 #define AT91_PMC_MOSCS 0 /* MOSCS Flag */ 29 #define AT91_PMC_LOCKA 1 /* PLLA Lock */ 30 #define AT91_PMC_LOCKB 2 /* PLLB Lock */ 31 #define AT91_PMC_MCKRDY 3 /* Master Clock */ 32 #define AT91_PMC_LOCKU 6 /* UPLL Lock */ 33 #define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */ 34 #define AT91_PMC_MOSCSELS 16 /* Main Oscillator Selection */ 35 #define AT91_PMC_MOSCRCS 17 /* Main On-Chip RC */ 36 #define AT91_PMC_CFDEV 18 /* Clock Failure Detector Event */ 37 #define AT91_PMC_GCKRDY 24 /* Generated Clocks */ 38 #endif 39 40 #endif 41