diff options
| author | Boris BREZILLON <b.brezillon@overkiz.com> | 2013-10-11 04:41:25 -0400 |
|---|---|---|
| committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2013-12-02 09:31:21 -0500 |
| commit | 7e682b44376e8caa6fc57acbf818b52747b1f922 (patch) | |
| tree | c6f538d3395142ae9f583c52a12428bc861987ca /include/dt-bindings/clk | |
| parent | 0ad6125b1579cac8ccbd0f46ec6d33cf71b79f51 (diff) | |
clk: at91: add PMC macro file for dt definitions
This patch adds a new macro file for PMC macros.
This macro file includes the definitions of SR (status register) bit
offsets and will be use to reference PMC irqs.
Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'include/dt-bindings/clk')
| -rw-r--r-- | include/dt-bindings/clk/at91.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/dt-bindings/clk/at91.h b/include/dt-bindings/clk/at91.h new file mode 100644 index 000000000000..0b4cb999a3f7 --- /dev/null +++ b/include/dt-bindings/clk/at91.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | /* | ||
| 2 | * This header provides constants for AT91 pmc status. | ||
| 3 | * | ||
| 4 | * The constants defined in this header are being used in dts. | ||
| 5 | * | ||
| 6 | * Licensed under GPLv2 or later. | ||
| 7 | */ | ||
| 8 | |||
| 9 | #ifndef _DT_BINDINGS_CLK_AT91_H | ||
| 10 | #define _DT_BINDINGS_CLK_AT91_H | ||
| 11 | |||
| 12 | #define AT91_PMC_MOSCS 0 /* MOSCS Flag */ | ||
| 13 | #define AT91_PMC_LOCKA 1 /* PLLA Lock */ | ||
| 14 | #define AT91_PMC_LOCKB 2 /* PLLB Lock */ | ||
| 15 | #define AT91_PMC_MCKRDY 3 /* Master Clock */ | ||
| 16 | #define AT91_PMC_LOCKU 6 /* UPLL Lock */ | ||
| 17 | #define AT91_PMC_PCKRDY(id) (8 + (id)) /* Programmable Clock */ | ||
| 18 | #define AT91_PMC_MOSCSELS 16 /* Main Oscillator Selection */ | ||
| 19 | #define AT91_PMC_MOSCRCS 17 /* Main On-Chip RC */ | ||
| 20 | #define AT91_PMC_CFDEV 18 /* Clock Failure Detector Event */ | ||
| 21 | |||
| 22 | #endif | ||
