blob: 4d87e7ebc39b671b8d43398b04f0c97df915dd0d [file] [log] [blame]
Patrice Chotard4c3aebd2017-09-13 18:00:06 +02001/* SYS, CORE AND BUS CLOCKS */
2#define SYS_D1CPRE 0
3#define HCLK 1
4#define PCLK1 2
5#define PCLK2 3
6#define PCLK3 4
7#define PCLK4 5
8#define HSI_DIV 6
9#define HSE_1M 7
10#define I2S_CKIN 8
11#define CK_DSI_PHY 9
12#define HSE_CK 10
13#define LSE_CK 11
14#define CSI_KER_DIV122 12
15#define RTC_CK 13
16#define CPU_SYSTICK 14
17
18/* OSCILLATOR BANK */
19#define OSC_BANK 18
20#define HSI_CK 18
21#define HSI_KER_CK 19
22#define CSI_CK 20
23#define CSI_KER_CK 21
24#define RC48_CK 22
25#define LSI_CK 23
26
27/* MCLOCK BANK */
28#define MCLK_BANK 28
29#define PER_CK 28
30#define PLLSRC 29
31#define SYS_CK 30
32#define TRACEIN_CK 31
33
34/* ODF BANK */
35#define ODF_BANK 32
36#define PLL1_P 32
37#define PLL1_Q 33
38#define PLL1_R 34
39#define PLL2_P 35
40#define PLL2_Q 36
41#define PLL2_R 37
42#define PLL3_P 38
43#define PLL3_Q 39
44#define PLL3_R 40
45
46/* MCO BANK */
47#define MCO_BANK 41
48#define MCO1 41
49#define MCO2 42
50
51/* PERIF BANK */
52#define PERIF_BANK 50
53#define D1SRAM1_CK 50
54#define ITCM_CK 51
55#define DTCM2_CK 52
56#define DTCM1_CK 53
57#define FLITF_CK 54
58#define JPGDEC_CK 55
59#define DMA2D_CK 56
60#define MDMA_CK 57
61#define USB2ULPI_CK 58
62#define USB1ULPI_CK 59
63#define ETH1RX_CK 60
64#define ETH1TX_CK 61
65#define ETH1MAC_CK 62
66#define ART_CK 63
67#define DMA2_CK 64
68#define DMA1_CK 65
69#define D2SRAM3_CK 66
70#define D2SRAM2_CK 67
71#define D2SRAM1_CK 68
72#define HASH_CK 69
73#define CRYPT_CK 70
74#define CAMITF_CK 71
75#define BKPRAM_CK 72
76#define HSEM_CK 73
77#define BDMA_CK 74
78#define CRC_CK 75
79#define GPIOK_CK 76
80#define GPIOJ_CK 77
81#define GPIOI_CK 78
82#define GPIOH_CK 79
83#define GPIOG_CK 80
84#define GPIOF_CK 81
85#define GPIOE_CK 82
86#define GPIOD_CK 83
87#define GPIOC_CK 84
88#define GPIOB_CK 85
89#define GPIOA_CK 86
90#define WWDG1_CK 87
91#define DAC12_CK 88
92#define WWDG2_CK 89
93#define TIM14_CK 90
94#define TIM13_CK 91
95#define TIM12_CK 92
96#define TIM7_CK 93
97#define TIM6_CK 94
98#define TIM5_CK 95
99#define TIM4_CK 96
100#define TIM3_CK 97
101#define TIM2_CK 98
102#define MDIOS_CK 99
103#define OPAMP_CK 100
104#define CRS_CK 101
105#define TIM17_CK 102
106#define TIM16_CK 103
107#define TIM15_CK 104
108#define TIM8_CK 105
109#define TIM1_CK 106
110#define TMPSENS_CK 107
111#define RTCAPB_CK 108
112#define VREF_CK 109
113#define COMP12_CK 110
114#define SYSCFG_CK 111
115/* must be equal to last peripheral clock index */
116#define LAST_PERIF_BANK SYSCFG_CK
117
118/* KERNEL BANK */
119#define KERN_BANK 120
120#define SDMMC1_CK 120
121#define QUADSPI_CK 121
122#define FMC_CK 122
123#define USB2OTG_CK 123
124#define USB1OTG_CK 124
125#define ADC12_CK 125
126#define SDMMC2_CK 126
127#define RNG_CK 127
128#define ADC3_CK 128
129#define DSI_CK 129
130#define LTDC_CK 130
131#define USART8_CK 131
132#define USART7_CK 132
133#define HDMICEC_CK 133
134#define I2C3_CK 134
135#define I2C2_CK 135
136#define I2C1_CK 136
137#define UART5_CK 137
138#define UART4_CK 138
139#define USART3_CK 139
140#define USART2_CK 140
141#define SPDIFRX_CK 141
142#define SPI3_CK 142
143#define SPI2_CK 143
144#define LPTIM1_CK 144
145#define FDCAN_CK 145
146#define SWP_CK 146
147#define HRTIM_CK 147
148#define DFSDM1_CK 148
149#define SAI3_CK 149
150#define SAI2_CK 150
151#define SAI1_CK 151
152#define SPI5_CK 152
153#define SPI4_CK 153
154#define SPI1_CK 154
155#define USART6_CK 155
156#define USART1_CK 156
157#define SAI4B_CK 157
158#define SAI4A_CK 158
159#define LPTIM5_CK 159
160#define LPTIM4_CK 160
161#define LPTIM3_CK 161
162#define LPTIM2_CK 162
163#define I2C4_CK 163
164#define SPI6_CK 164
165#define LPUART1_CK 165
166
167#define STM32H7_MAX_CLKS 166