diff options
Diffstat (limited to 'include/dt-bindings/clock/stm32fx-clock.h')
-rw-r--r-- | include/dt-bindings/clock/stm32fx-clock.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/dt-bindings/clock/stm32fx-clock.h b/include/dt-bindings/clock/stm32fx-clock.h new file mode 100644 index 000000000000..08bcab61b714 --- /dev/null +++ b/include/dt-bindings/clock/stm32fx-clock.h | |||
@@ -0,0 +1,39 @@ | |||
1 | /* | ||
2 | * stm32fx-clock.h | ||
3 | * | ||
4 | * Copyright (C) 2016 STMicroelectronics | ||
5 | * Author: Gabriel Fernandez for STMicroelectronics. | ||
6 | * License terms: GNU General Public License (GPL), version 2 | ||
7 | */ | ||
8 | |||
9 | /* | ||
10 | * List of clocks wich are not derived from system clock (SYSCLOCK) | ||
11 | * | ||
12 | * The index of these clocks is the secondary index of DT bindings | ||
13 | * (see Documentatoin/devicetree/bindings/clock/st,stm32-rcc.txt) | ||
14 | * | ||
15 | * e.g: | ||
16 | <assigned-clocks = <&rcc 1 CLK_LSE>; | ||
17 | */ | ||
18 | |||
19 | #ifndef _DT_BINDINGS_CLK_STMFX_H | ||
20 | #define _DT_BINDINGS_CLK_STMFX_H | ||
21 | |||
22 | #define SYSTICK 0 | ||
23 | #define FCLK 1 | ||
24 | #define CLK_LSI 2 | ||
25 | #define CLK_LSE 3 | ||
26 | #define CLK_HSE_RTC 4 | ||
27 | #define CLK_RTC 5 | ||
28 | #define PLL_VCO_I2S 6 | ||
29 | #define PLL_VCO_SAI 7 | ||
30 | #define CLK_LCD 8 | ||
31 | #define CLK_I2S 9 | ||
32 | #define CLK_SAI1 10 | ||
33 | #define CLK_SAI2 11 | ||
34 | #define CLK_I2SQ_PDIV 12 | ||
35 | #define CLK_SAIQ_PDIV 13 | ||
36 | |||
37 | #define END_PRIMARY_CLK 14 | ||
38 | |||
39 | #endif | ||