xref: /optee_os/core/include/drivers/stm32mp25_rcc.h (revision 5d5d7d0b1c038a6836be9f0b38585f5aa6a4dd01)
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (c) 2024, STMicroelectronics
4  */
5 
6 #ifndef __DRIVERS_STM32MP25_RCC_H
7 #define __DRIVERS_STM32MP25_RCC_H
8 
9 #include <util.h>
10 
11 #define RCC_SECCFGR0				U(0x0)
12 #define RCC_SECCFGR1				U(0x4)
13 #define RCC_SECCFGR2				U(0x8)
14 #define RCC_SECCFGR3				U(0xC)
15 #define RCC_PRIVCFGR0				U(0x10)
16 #define RCC_PRIVCFGR1				U(0x14)
17 #define RCC_PRIVCFGR2				U(0x18)
18 #define RCC_PRIVCFGR3				U(0x1C)
19 #define RCC_RCFGLOCKR0				U(0x20)
20 #define RCC_RCFGLOCKR1				U(0x24)
21 #define RCC_RCFGLOCKR2				U(0x28)
22 #define RCC_RCFGLOCKR3				U(0x2C)
23 #define RCC_R0CIDCFGR				U(0x30)
24 #define RCC_R0SEMCR				U(0x34)
25 #define RCC_R1CIDCFGR				U(0x38)
26 #define RCC_R1SEMCR				U(0x3C)
27 #define RCC_R2CIDCFGR				U(0x40)
28 #define RCC_R2SEMCR				U(0x44)
29 #define RCC_R3CIDCFGR				U(0x48)
30 #define RCC_R3SEMCR				U(0x4C)
31 #define RCC_R4CIDCFGR				U(0x50)
32 #define RCC_R4SEMCR				U(0x54)
33 #define RCC_R5CIDCFGR				U(0x58)
34 #define RCC_R5SEMCR				U(0x5C)
35 #define RCC_R6CIDCFGR				U(0x60)
36 #define RCC_R6SEMCR				U(0x64)
37 #define RCC_R7CIDCFGR				U(0x68)
38 #define RCC_R7SEMCR				U(0x6C)
39 #define RCC_R8CIDCFGR				U(0x70)
40 #define RCC_R8SEMCR				U(0x74)
41 #define RCC_R9CIDCFGR				U(0x78)
42 #define RCC_R9SEMCR				U(0x7C)
43 #define RCC_R10CIDCFGR				U(0x80)
44 #define RCC_R10SEMCR				U(0x84)
45 #define RCC_R11CIDCFGR				U(0x88)
46 #define RCC_R11SEMCR				U(0x8C)
47 #define RCC_R12CIDCFGR				U(0x90)
48 #define RCC_R12SEMCR				U(0x94)
49 #define RCC_R13CIDCFGR				U(0x98)
50 #define RCC_R13SEMCR				U(0x9C)
51 #define RCC_R14CIDCFGR				U(0xA0)
52 #define RCC_R14SEMCR				U(0xA4)
53 #define RCC_R15CIDCFGR				U(0xA8)
54 #define RCC_R15SEMCR				U(0xAC)
55 #define RCC_R16CIDCFGR				U(0xB0)
56 #define RCC_R16SEMCR				U(0xB4)
57 #define RCC_R17CIDCFGR				U(0xB8)
58 #define RCC_R17SEMCR				U(0xBC)
59 #define RCC_R18CIDCFGR				U(0xC0)
60 #define RCC_R18SEMCR				U(0xC4)
61 #define RCC_R19CIDCFGR				U(0xC8)
62 #define RCC_R19SEMCR				U(0xCC)
63 #define RCC_R20CIDCFGR				U(0xD0)
64 #define RCC_R20SEMCR				U(0xD4)
65 #define RCC_R21CIDCFGR				U(0xD8)
66 #define RCC_R21SEMCR				U(0xDC)
67 #define RCC_R22CIDCFGR				U(0xE0)
68 #define RCC_R22SEMCR				U(0xE4)
69 #define RCC_R23CIDCFGR				U(0xE8)
70 #define RCC_R23SEMCR				U(0xEC)
71 #define RCC_R24CIDCFGR				U(0xF0)
72 #define RCC_R24SEMCR				U(0xF4)
73 #define RCC_R25CIDCFGR				U(0xF8)
74 #define RCC_R25SEMCR				U(0xFC)
75 #define RCC_R26CIDCFGR				U(0x100)
76 #define RCC_R26SEMCR				U(0x104)
77 #define RCC_R27CIDCFGR				U(0x108)
78 #define RCC_R27SEMCR				U(0x10C)
79 #define RCC_R28CIDCFGR				U(0x110)
80 #define RCC_R28SEMCR				U(0x114)
81 #define RCC_R29CIDCFGR				U(0x118)
82 #define RCC_R29SEMCR				U(0x11C)
83 #define RCC_R30CIDCFGR				U(0x120)
84 #define RCC_R30SEMCR				U(0x124)
85 #define RCC_R31CIDCFGR				U(0x128)
86 #define RCC_R31SEMCR				U(0x12C)
87 #define RCC_R32CIDCFGR				U(0x130)
88 #define RCC_R32SEMCR				U(0x134)
89 #define RCC_R33CIDCFGR				U(0x138)
90 #define RCC_R33SEMCR				U(0x13C)
91 #define RCC_R34CIDCFGR				U(0x140)
92 #define RCC_R34SEMCR				U(0x144)
93 #define RCC_R35CIDCFGR				U(0x148)
94 #define RCC_R35SEMCR				U(0x14C)
95 #define RCC_R36CIDCFGR				U(0x150)
96 #define RCC_R36SEMCR				U(0x154)
97 #define RCC_R37CIDCFGR				U(0x158)
98 #define RCC_R37SEMCR				U(0x15C)
99 #define RCC_R38CIDCFGR				U(0x160)
100 #define RCC_R38SEMCR				U(0x164)
101 #define RCC_R39CIDCFGR				U(0x168)
102 #define RCC_R39SEMCR				U(0x16C)
103 #define RCC_R40CIDCFGR				U(0x170)
104 #define RCC_R40SEMCR				U(0x174)
105 #define RCC_R41CIDCFGR				U(0x178)
106 #define RCC_R41SEMCR				U(0x17C)
107 #define RCC_R42CIDCFGR				U(0x180)
108 #define RCC_R42SEMCR				U(0x184)
109 #define RCC_R43CIDCFGR				U(0x188)
110 #define RCC_R43SEMCR				U(0x18C)
111 #define RCC_R44CIDCFGR				U(0x190)
112 #define RCC_R44SEMCR				U(0x194)
113 #define RCC_R45CIDCFGR				U(0x198)
114 #define RCC_R45SEMCR				U(0x19C)
115 #define RCC_R46CIDCFGR				U(0x1A0)
116 #define RCC_R46SEMCR				U(0x1A4)
117 #define RCC_R47CIDCFGR				U(0x1A8)
118 #define RCC_R47SEMCR				U(0x1AC)
119 #define RCC_R48CIDCFGR				U(0x1B0)
120 #define RCC_R48SEMCR				U(0x1B4)
121 #define RCC_R49CIDCFGR				U(0x1B8)
122 #define RCC_R49SEMCR				U(0x1BC)
123 #define RCC_R50CIDCFGR				U(0x1C0)
124 #define RCC_R50SEMCR				U(0x1C4)
125 #define RCC_R51CIDCFGR				U(0x1C8)
126 #define RCC_R51SEMCR				U(0x1CC)
127 #define RCC_R52CIDCFGR				U(0x1D0)
128 #define RCC_R52SEMCR				U(0x1D4)
129 #define RCC_R53CIDCFGR				U(0x1D8)
130 #define RCC_R53SEMCR				U(0x1DC)
131 #define RCC_R54CIDCFGR				U(0x1E0)
132 #define RCC_R54SEMCR				U(0x1E4)
133 #define RCC_R55CIDCFGR				U(0x1E8)
134 #define RCC_R55SEMCR				U(0x1EC)
135 #define RCC_R56CIDCFGR				U(0x1F0)
136 #define RCC_R56SEMCR				U(0x1F4)
137 #define RCC_R57CIDCFGR				U(0x1F8)
138 #define RCC_R57SEMCR				U(0x1FC)
139 #define RCC_R58CIDCFGR				U(0x200)
140 #define RCC_R58SEMCR				U(0x204)
141 #define RCC_R59CIDCFGR				U(0x208)
142 #define RCC_R59SEMCR				U(0x20C)
143 #define RCC_R60CIDCFGR				U(0x210)
144 #define RCC_R60SEMCR				U(0x214)
145 #define RCC_R61CIDCFGR				U(0x218)
146 #define RCC_R61SEMCR				U(0x21C)
147 #define RCC_R62CIDCFGR				U(0x220)
148 #define RCC_R62SEMCR				U(0x224)
149 #define RCC_R63CIDCFGR				U(0x228)
150 #define RCC_R63SEMCR				U(0x22C)
151 #define RCC_R64CIDCFGR				U(0x230)
152 #define RCC_R64SEMCR				U(0x234)
153 #define RCC_R65CIDCFGR				U(0x238)
154 #define RCC_R65SEMCR				U(0x23C)
155 #define RCC_R66CIDCFGR				U(0x240)
156 #define RCC_R66SEMCR				U(0x244)
157 #define RCC_R67CIDCFGR				U(0x248)
158 #define RCC_R67SEMCR				U(0x24C)
159 #define RCC_R68CIDCFGR				U(0x250)
160 #define RCC_R68SEMCR				U(0x254)
161 #define RCC_R69CIDCFGR				U(0x258)
162 #define RCC_R69SEMCR				U(0x25C)
163 #define RCC_R70CIDCFGR				U(0x260)
164 #define RCC_R70SEMCR				U(0x264)
165 #define RCC_R71CIDCFGR				U(0x268)
166 #define RCC_R71SEMCR				U(0x26C)
167 #define RCC_R72CIDCFGR				U(0x270)
168 #define RCC_R72SEMCR				U(0x274)
169 #define RCC_R73CIDCFGR				U(0x278)
170 #define RCC_R73SEMCR				U(0x27C)
171 #define RCC_R74CIDCFGR				U(0x280)
172 #define RCC_R74SEMCR				U(0x284)
173 #define RCC_R75CIDCFGR				U(0x288)
174 #define RCC_R75SEMCR				U(0x28C)
175 #define RCC_R76CIDCFGR				U(0x290)
176 #define RCC_R76SEMCR				U(0x294)
177 #define RCC_R77CIDCFGR				U(0x298)
178 #define RCC_R77SEMCR				U(0x29C)
179 #define RCC_R78CIDCFGR				U(0x2A0)
180 #define RCC_R78SEMCR				U(0x2A4)
181 #define RCC_R79CIDCFGR				U(0x2A8)
182 #define RCC_R79SEMCR				U(0x2AC)
183 #define RCC_R80CIDCFGR				U(0x2B0)
184 #define RCC_R80SEMCR				U(0x2B4)
185 #define RCC_R81CIDCFGR				U(0x2B8)
186 #define RCC_R81SEMCR				U(0x2BC)
187 #define RCC_R82CIDCFGR				U(0x2C0)
188 #define RCC_R82SEMCR				U(0x2C4)
189 #define RCC_R83CIDCFGR				U(0x2C8)
190 #define RCC_R83SEMCR				U(0x2CC)
191 #define RCC_R84CIDCFGR				U(0x2D0)
192 #define RCC_R84SEMCR				U(0x2D4)
193 #define RCC_R85CIDCFGR				U(0x2D8)
194 #define RCC_R85SEMCR				U(0x2DC)
195 #define RCC_R86CIDCFGR				U(0x2E0)
196 #define RCC_R86SEMCR				U(0x2E4)
197 #define RCC_R87CIDCFGR				U(0x2E8)
198 #define RCC_R87SEMCR				U(0x2EC)
199 #define RCC_R88CIDCFGR				U(0x2F0)
200 #define RCC_R88SEMCR				U(0x2F4)
201 #define RCC_R89CIDCFGR				U(0x2F8)
202 #define RCC_R89SEMCR				U(0x2FC)
203 #define RCC_R90CIDCFGR				U(0x300)
204 #define RCC_R90SEMCR				U(0x304)
205 #define RCC_R91CIDCFGR				U(0x308)
206 #define RCC_R91SEMCR				U(0x30C)
207 #define RCC_R92CIDCFGR				U(0x310)
208 #define RCC_R92SEMCR				U(0x314)
209 #define RCC_R93CIDCFGR				U(0x318)
210 #define RCC_R93SEMCR				U(0x31C)
211 #define RCC_R94CIDCFGR				U(0x320)
212 #define RCC_R94SEMCR				U(0x324)
213 #define RCC_R95CIDCFGR				U(0x328)
214 #define RCC_R95SEMCR				U(0x32C)
215 #define RCC_R96CIDCFGR				U(0x330)
216 #define RCC_R96SEMCR				U(0x334)
217 #define RCC_R97CIDCFGR				U(0x338)
218 #define RCC_R97SEMCR				U(0x33C)
219 #define RCC_R98CIDCFGR				U(0x340)
220 #define RCC_R98SEMCR				U(0x344)
221 #define RCC_R99CIDCFGR				U(0x348)
222 #define RCC_R99SEMCR				U(0x34C)
223 #define RCC_R100CIDCFGR				U(0x350)
224 #define RCC_R100SEMCR				U(0x354)
225 #define RCC_R101CIDCFGR				U(0x358)
226 #define RCC_R101SEMCR				U(0x35C)
227 #define RCC_R102CIDCFGR				U(0x360)
228 #define RCC_R102SEMCR				U(0x364)
229 #define RCC_R103CIDCFGR				U(0x368)
230 #define RCC_R103SEMCR				U(0x36C)
231 #define RCC_R104CIDCFGR				U(0x370)
232 #define RCC_R104SEMCR				U(0x374)
233 #define RCC_R105CIDCFGR				U(0x378)
234 #define RCC_R105SEMCR				U(0x37C)
235 #define RCC_R106CIDCFGR				U(0x380)
236 #define RCC_R106SEMCR				U(0x384)
237 #define RCC_R107CIDCFGR				U(0x388)
238 #define RCC_R107SEMCR				U(0x38C)
239 #define RCC_R108CIDCFGR				U(0x390)
240 #define RCC_R108SEMCR				U(0x394)
241 #define RCC_R109CIDCFGR				U(0x398)
242 #define RCC_R109SEMCR				U(0x39C)
243 #define RCC_R110CIDCFGR				U(0x3A0)
244 #define RCC_R110SEMCR				U(0x3A4)
245 #define RCC_R111CIDCFGR				U(0x3A8)
246 #define RCC_R111SEMCR				U(0x3AC)
247 #define RCC_R112CIDCFGR				U(0x3B0)
248 #define RCC_R112SEMCR				U(0x3B4)
249 #define RCC_R113CIDCFGR				U(0x3B8)
250 #define RCC_R113SEMCR				U(0x3BC)
251 #define RCC_GRSTCSETR				U(0x400)
252 #define RCC_C1RSTCSETR				U(0x404)
253 #define RCC_C1P1RSTCSETR			U(0x408)
254 #define RCC_C2RSTCSETR				U(0x40C)
255 #define RCC_HWRSTSCLRR				U(0x410)
256 #define RCC_C1HWRSTSCLRR			U(0x414)
257 #define RCC_C2HWRSTSCLRR			U(0x418)
258 #define RCC_C1BOOTRSTSSETR			U(0x41C)
259 #define RCC_C1BOOTRSTSCLRR			U(0x420)
260 #define RCC_C2BOOTRSTSSETR			U(0x424)
261 #define RCC_C2BOOTRSTSCLRR			U(0x428)
262 #define RCC_C1SREQSETR				U(0x42C)
263 #define RCC_C1SREQCLRR				U(0x430)
264 #define RCC_CPUBOOTCR				U(0x434)
265 #define RCC_STBYBOOTCR				U(0x438)
266 #define RCC_LEGBOOTCR				U(0x43C)
267 #define RCC_BDCR				U(0x440)
268 #define RCC_D3DCR				U(0x444)
269 #define RCC_D3DSR				U(0x448)
270 #define RCC_RDCR				U(0x44C)
271 #define RCC_C1MSRDCR				U(0x450)
272 #define RCC_PWRLPDLYCR				U(0x454)
273 #define RCC_C1CIESETR				U(0x458)
274 #define RCC_C1CIFCLRR				U(0x45C)
275 #define RCC_C2CIESETR				U(0x460)
276 #define RCC_C2CIFCLRR				U(0x464)
277 #define RCC_IWDGC1FZSETR			U(0x468)
278 #define RCC_IWDGC1FZCLRR			U(0x46C)
279 #define RCC_IWDGC1CFGSETR			U(0x470)
280 #define RCC_IWDGC1CFGCLRR			U(0x474)
281 #define RCC_IWDGC2FZSETR			U(0x478)
282 #define RCC_IWDGC2FZCLRR			U(0x47C)
283 #define RCC_IWDGC2CFGSETR			U(0x480)
284 #define RCC_IWDGC2CFGCLRR			U(0x484)
285 #define RCC_IWDGC3CFGSETR			U(0x488)
286 #define RCC_IWDGC3CFGCLRR			U(0x48C)
287 #define RCC_C3CFGR				U(0x490)
288 #define RCC_MCO1CFGR				U(0x494)
289 #define RCC_MCO2CFGR				U(0x498)
290 #define RCC_OCENSETR				U(0x49C)
291 #define RCC_OCENCLRR				U(0x4A0)
292 #define RCC_OCRDYR				U(0x4A4)
293 #define RCC_HSICFGR				U(0x4A8)
294 #define RCC_MSICFGR				U(0x4AC)
295 #define RCC_RTCDIVR				U(0x4B0)
296 #define RCC_APB1DIVR				U(0x4B4)
297 #define RCC_APB2DIVR				U(0x4B8)
298 #define RCC_APB3DIVR				U(0x4BC)
299 #define RCC_APB4DIVR				U(0x4C0)
300 #define RCC_APBDBGDIVR				U(0x4C4)
301 #define RCC_TIMG1PRER				U(0x4C8)
302 #define RCC_TIMG2PRER				U(0x4CC)
303 #define RCC_LSMCUDIVR				U(0x4D0)
304 #define RCC_DDRCPCFGR				U(0x4D4)
305 #define RCC_DDRCAPBCFGR				U(0x4D8)
306 #define RCC_DDRPHYCAPBCFGR			U(0x4DC)
307 #define RCC_DDRPHYCCFGR				U(0x4E0)
308 #define RCC_DDRCFGR				U(0x4E4)
309 #define RCC_DDRITFCFGR				U(0x4E8)
310 #define RCC_SYSRAMCFGR				U(0x4F0)
311 #define RCC_VDERAMCFGR				U(0x4F4)
312 #define RCC_SRAM1CFGR				U(0x4F8)
313 #define RCC_SRAM2CFGR				U(0x4FC)
314 #define RCC_RETRAMCFGR				U(0x500)
315 #define RCC_BKPSRAMCFGR				U(0x504)
316 #define RCC_LPSRAM1CFGR				U(0x508)
317 #define RCC_LPSRAM2CFGR				U(0x50C)
318 #define RCC_LPSRAM3CFGR				U(0x510)
319 #define RCC_OSPI1CFGR				U(0x514)
320 #define RCC_OSPI2CFGR				U(0x518)
321 #define RCC_FMCCFGR				U(0x51C)
322 #define RCC_DBGCFGR				U(0x520)
323 #define RCC_STMCFGR				U(0x524)
324 #define RCC_ETRCFGR				U(0x528)
325 #define RCC_GPIOACFGR				U(0x52C)
326 #define RCC_GPIOBCFGR				U(0x530)
327 #define RCC_GPIOCCFGR				U(0x534)
328 #define RCC_GPIODCFGR				U(0x538)
329 #define RCC_GPIOECFGR				U(0x53C)
330 #define RCC_GPIOFCFGR				U(0x540)
331 #define RCC_GPIOGCFGR				U(0x544)
332 #define RCC_GPIOHCFGR				U(0x548)
333 #define RCC_GPIOICFGR				U(0x54C)
334 #define RCC_GPIOJCFGR				U(0x550)
335 #define RCC_GPIOKCFGR				U(0x554)
336 #define RCC_GPIOZCFGR				U(0x558)
337 #define RCC_HPDMA1CFGR				U(0x55C)
338 #define RCC_HPDMA2CFGR				U(0x560)
339 #define RCC_HPDMA3CFGR				U(0x564)
340 #define RCC_LPDMACFGR				U(0x568)
341 #define RCC_HSEMCFGR				U(0x56C)
342 #define RCC_IPCC1CFGR				U(0x570)
343 #define RCC_IPCC2CFGR				U(0x574)
344 #define RCC_RTCCFGR				U(0x578)
345 #define RCC_SYSCPU1CFGR				U(0x580)
346 #define RCC_BSECCFGR				U(0x584)
347 #define RCC_IS2MCFGR				U(0x58C)
348 #define RCC_PLL2CFGR1				U(0x590)
349 #define RCC_PLL2CFGR2				U(0x594)
350 #define RCC_PLL2CFGR3				U(0x598)
351 #define RCC_PLL2CFGR4				U(0x59C)
352 #define RCC_PLL2CFGR5				U(0x5A0)
353 #define RCC_PLL2CFGR6				U(0x5A8)
354 #define RCC_PLL2CFGR7				U(0x5AC)
355 #define RCC_PLL3CFGR1				U(0x5B8)
356 #define RCC_PLL3CFGR2				U(0x5BC)
357 #define RCC_PLL3CFGR3				U(0x5C0)
358 #define RCC_PLL3CFGR4				U(0x5C4)
359 #define RCC_PLL3CFGR5				U(0x5C8)
360 #define RCC_PLL3CFGR6				U(0x5D0)
361 #define RCC_PLL3CFGR7				U(0x5D4)
362 #define RCC_HSIFMONCR				U(0x5E0)
363 #define RCC_HSIFVALR				U(0x5E4)
364 #define RCC_TIM1CFGR				U(0x700)
365 #define RCC_TIM2CFGR				U(0x704)
366 #define RCC_TIM3CFGR				U(0x708)
367 #define RCC_TIM4CFGR				U(0x70C)
368 #define RCC_TIM5CFGR				U(0x710)
369 #define RCC_TIM6CFGR				U(0x714)
370 #define RCC_TIM7CFGR				U(0x718)
371 #define RCC_TIM8CFGR				U(0x71C)
372 #define RCC_TIM10CFGR				U(0x720)
373 #define RCC_TIM11CFGR				U(0x724)
374 #define RCC_TIM12CFGR				U(0x728)
375 #define RCC_TIM13CFGR				U(0x72C)
376 #define RCC_TIM14CFGR				U(0x730)
377 #define RCC_TIM15CFGR				U(0x734)
378 #define RCC_TIM16CFGR				U(0x738)
379 #define RCC_TIM17CFGR				U(0x73C)
380 #define RCC_TIM20CFGR				U(0x740)
381 #define RCC_LPTIM1CFGR				U(0x744)
382 #define RCC_LPTIM2CFGR				U(0x748)
383 #define RCC_LPTIM3CFGR				U(0x74C)
384 #define RCC_LPTIM4CFGR				U(0x750)
385 #define RCC_LPTIM5CFGR				U(0x754)
386 #define RCC_SPI1CFGR				U(0x758)
387 #define RCC_SPI2CFGR				U(0x75C)
388 #define RCC_SPI3CFGR				U(0x760)
389 #define RCC_SPI4CFGR				U(0x764)
390 #define RCC_SPI5CFGR				U(0x768)
391 #define RCC_SPI6CFGR				U(0x76C)
392 #define RCC_SPI7CFGR				U(0x770)
393 #define RCC_SPI8CFGR				U(0x774)
394 #define RCC_SPDIFRXCFGR				U(0x778)
395 #define RCC_USART1CFGR				U(0x77C)
396 #define RCC_USART2CFGR				U(0x780)
397 #define RCC_USART3CFGR				U(0x784)
398 #define RCC_UART4CFGR				U(0x788)
399 #define RCC_UART5CFGR				U(0x78C)
400 #define RCC_USART6CFGR				U(0x790)
401 #define RCC_UART7CFGR				U(0x794)
402 #define RCC_UART8CFGR				U(0x798)
403 #define RCC_UART9CFGR				U(0x79C)
404 #define RCC_LPUART1CFGR				U(0x7A0)
405 #define RCC_I2C1CFGR				U(0x7A4)
406 #define RCC_I2C2CFGR				U(0x7A8)
407 #define RCC_I2C3CFGR				U(0x7AC)
408 #define RCC_I2C4CFGR				U(0x7B0)
409 #define RCC_I2C5CFGR				U(0x7B4)
410 #define RCC_I2C6CFGR				U(0x7B8)
411 #define RCC_I2C7CFGR				U(0x7BC)
412 #define RCC_I2C8CFGR				U(0x7C0)
413 #define RCC_SAI1CFGR				U(0x7C4)
414 #define RCC_SAI2CFGR				U(0x7C8)
415 #define RCC_SAI3CFGR				U(0x7CC)
416 #define RCC_SAI4CFGR				U(0x7D0)
417 #define RCC_MDF1CFGR				U(0x7D8)
418 #define RCC_ADF1CFGR				U(0x7DC)
419 #define RCC_FDCANCFGR				U(0x7E0)
420 #define RCC_HDPCFGR				U(0x7E4)
421 #define RCC_ADC12CFGR				U(0x7E8)
422 #define RCC_ADC3CFGR				U(0x7EC)
423 #define RCC_ETH1CFGR				U(0x7F0)
424 #define RCC_ETH2CFGR				U(0x7F4)
425 #define RCC_USB2CFGR				U(0x7FC)
426 #define RCC_USB2PHY1CFGR			U(0x800)
427 #define RCC_USB2PHY2CFGR			U(0x804)
428 #define RCC_USB3DRCFGR				U(0x808)
429 #define RCC_USB3PCIEPHYCFGR			U(0x80C)
430 #define RCC_PCIECFGR				U(0x810)
431 #define RCC_USBTCCFGR				U(0x814)
432 #define RCC_ETHSWCFGR				U(0x818)
433 #define RCC_ETHSWACMCFGR			U(0x81C)
434 #define RCC_ETHSWACMMSGCFGR			U(0x820)
435 #define RCC_STGENCFGR				U(0x824)
436 #define RCC_SDMMC1CFGR				U(0x830)
437 #define RCC_SDMMC2CFGR				U(0x834)
438 #define RCC_SDMMC3CFGR				U(0x838)
439 #define RCC_GPUCFGR				U(0x83C)
440 #define RCC_LTDCCFGR				U(0x840)
441 #define RCC_DSICFGR				U(0x844)
442 #define RCC_LVDSCFGR				U(0x850)
443 #define RCC_CSICFGR				U(0x858)
444 #define RCC_DCMIPPCFGR				U(0x85C)
445 #define RCC_CCICFGR				U(0x860)
446 #define RCC_VDECCFGR				U(0x864)
447 #define RCC_VENCCFGR				U(0x868)
448 #define RCC_RNGCFGR				U(0x870)
449 #define RCC_PKACFGR				U(0x874)
450 #define RCC_SAESCFGR				U(0x878)
451 #define RCC_HASHCFGR				U(0x87C)
452 #define RCC_CRYP1CFGR				U(0x880)
453 #define RCC_CRYP2CFGR				U(0x884)
454 #define RCC_IWDG1CFGR				U(0x888)
455 #define RCC_IWDG2CFGR				U(0x88C)
456 #define RCC_IWDG3CFGR				U(0x890)
457 #define RCC_IWDG4CFGR				U(0x894)
458 #define RCC_IWDG5CFGR				U(0x898)
459 #define RCC_WWDG1CFGR				U(0x89C)
460 #define RCC_WWDG2CFGR				U(0x8A0)
461 #define RCC_VREFCFGR				U(0x8A8)
462 #define RCC_DTSCFGR				U(0x8AC)
463 #define RCC_CRCCFGR				U(0x8B4)
464 #define RCC_SERCCFGR				U(0x8B8)
465 #define RCC_OSPIIOMCFGR				U(0x8BC)
466 #define RCC_GICV2MCFGR				U(0x8C0)
467 #define RCC_I3C1CFGR				U(0x8C8)
468 #define RCC_I3C2CFGR				U(0x8CC)
469 #define RCC_I3C3CFGR				U(0x8D0)
470 #define RCC_I3C4CFGR				U(0x8D4)
471 #define RCC_MUXSELCFGR				U(0x1000)
472 #define RCC_XBAR0CFGR				U(0x1018)
473 #define RCC_XBAR1CFGR				U(0x101C)
474 #define RCC_XBAR2CFGR				U(0x1020)
475 #define RCC_XBAR3CFGR				U(0x1024)
476 #define RCC_XBAR4CFGR				U(0x1028)
477 #define RCC_XBAR5CFGR				U(0x102C)
478 #define RCC_XBAR6CFGR				U(0x1030)
479 #define RCC_XBAR7CFGR				U(0x1034)
480 #define RCC_XBAR8CFGR				U(0x1038)
481 #define RCC_XBAR9CFGR				U(0x103C)
482 #define RCC_XBAR10CFGR				U(0x1040)
483 #define RCC_XBAR11CFGR				U(0x1044)
484 #define RCC_XBAR12CFGR				U(0x1048)
485 #define RCC_XBAR13CFGR				U(0x104C)
486 #define RCC_XBAR14CFGR				U(0x1050)
487 #define RCC_XBAR15CFGR				U(0x1054)
488 #define RCC_XBAR16CFGR				U(0x1058)
489 #define RCC_XBAR17CFGR				U(0x105C)
490 #define RCC_XBAR18CFGR				U(0x1060)
491 #define RCC_XBAR19CFGR				U(0x1064)
492 #define RCC_XBAR20CFGR				U(0x1068)
493 #define RCC_XBAR21CFGR				U(0x106C)
494 #define RCC_XBAR22CFGR				U(0x1070)
495 #define RCC_XBAR23CFGR				U(0x1074)
496 #define RCC_XBAR24CFGR				U(0x1078)
497 #define RCC_XBAR25CFGR				U(0x107C)
498 #define RCC_XBAR26CFGR				U(0x1080)
499 #define RCC_XBAR27CFGR				U(0x1084)
500 #define RCC_XBAR28CFGR				U(0x1088)
501 #define RCC_XBAR29CFGR				U(0x108C)
502 #define RCC_XBAR30CFGR				U(0x1090)
503 #define RCC_XBAR31CFGR				U(0x1094)
504 #define RCC_XBAR32CFGR				U(0x1098)
505 #define RCC_XBAR33CFGR				U(0x109C)
506 #define RCC_XBAR34CFGR				U(0x10A0)
507 #define RCC_XBAR35CFGR				U(0x10A4)
508 #define RCC_XBAR36CFGR				U(0x10A8)
509 #define RCC_XBAR37CFGR				U(0x10AC)
510 #define RCC_XBAR38CFGR				U(0x10B0)
511 #define RCC_XBAR39CFGR				U(0x10B4)
512 #define RCC_XBAR40CFGR				U(0x10B8)
513 #define RCC_XBAR41CFGR				U(0x10BC)
514 #define RCC_XBAR42CFGR				U(0x10C0)
515 #define RCC_XBAR43CFGR				U(0x10C4)
516 #define RCC_XBAR44CFGR				U(0x10C8)
517 #define RCC_XBAR45CFGR				U(0x10CC)
518 #define RCC_XBAR46CFGR				U(0x10D0)
519 #define RCC_XBAR47CFGR				U(0x10D4)
520 #define RCC_XBAR48CFGR				U(0x10D8)
521 #define RCC_XBAR49CFGR				U(0x10DC)
522 #define RCC_XBAR50CFGR				U(0x10E0)
523 #define RCC_XBAR51CFGR				U(0x10E4)
524 #define RCC_XBAR52CFGR				U(0x10E8)
525 #define RCC_XBAR53CFGR				U(0x10EC)
526 #define RCC_XBAR54CFGR				U(0x10F0)
527 #define RCC_XBAR55CFGR				U(0x10F4)
528 #define RCC_XBAR56CFGR				U(0x10F8)
529 #define RCC_XBAR57CFGR				U(0x10FC)
530 #define RCC_XBAR58CFGR				U(0x1100)
531 #define RCC_XBAR59CFGR				U(0x1104)
532 #define RCC_XBAR60CFGR				U(0x1108)
533 #define RCC_XBAR61CFGR				U(0x110C)
534 #define RCC_XBAR62CFGR				U(0x1110)
535 #define RCC_XBAR63CFGR				U(0x1114)
536 #define RCC_PREDIV0CFGR				U(0x1118)
537 #define RCC_PREDIV1CFGR				U(0x111C)
538 #define RCC_PREDIV2CFGR				U(0x1120)
539 #define RCC_PREDIV3CFGR				U(0x1124)
540 #define RCC_PREDIV4CFGR				U(0x1128)
541 #define RCC_PREDIV5CFGR				U(0x112C)
542 #define RCC_PREDIV6CFGR				U(0x1130)
543 #define RCC_PREDIV7CFGR				U(0x1134)
544 #define RCC_PREDIV8CFGR				U(0x1138)
545 #define RCC_PREDIV9CFGR				U(0x113C)
546 #define RCC_PREDIV10CFGR			U(0x1140)
547 #define RCC_PREDIV11CFGR			U(0x1144)
548 #define RCC_PREDIV12CFGR			U(0x1148)
549 #define RCC_PREDIV13CFGR			U(0x114C)
550 #define RCC_PREDIV14CFGR			U(0x1150)
551 #define RCC_PREDIV15CFGR			U(0x1154)
552 #define RCC_PREDIV16CFGR			U(0x1158)
553 #define RCC_PREDIV17CFGR			U(0x115C)
554 #define RCC_PREDIV18CFGR			U(0x1160)
555 #define RCC_PREDIV19CFGR			U(0x1164)
556 #define RCC_PREDIV20CFGR			U(0x1168)
557 #define RCC_PREDIV21CFGR			U(0x116C)
558 #define RCC_PREDIV22CFGR			U(0x1170)
559 #define RCC_PREDIV23CFGR			U(0x1174)
560 #define RCC_PREDIV24CFGR			U(0x1178)
561 #define RCC_PREDIV25CFGR			U(0x117C)
562 #define RCC_PREDIV26CFGR			U(0x1180)
563 #define RCC_PREDIV27CFGR			U(0x1184)
564 #define RCC_PREDIV28CFGR			U(0x1188)
565 #define RCC_PREDIV29CFGR			U(0x118C)
566 #define RCC_PREDIV30CFGR			U(0x1190)
567 #define RCC_PREDIV31CFGR			U(0x1194)
568 #define RCC_PREDIV32CFGR			U(0x1198)
569 #define RCC_PREDIV33CFGR			U(0x119C)
570 #define RCC_PREDIV34CFGR			U(0x11A0)
571 #define RCC_PREDIV35CFGR			U(0x11A4)
572 #define RCC_PREDIV36CFGR			U(0x11A8)
573 #define RCC_PREDIV37CFGR			U(0x11AC)
574 #define RCC_PREDIV38CFGR			U(0x11B0)
575 #define RCC_PREDIV39CFGR			U(0x11B4)
576 #define RCC_PREDIV40CFGR			U(0x11B8)
577 #define RCC_PREDIV41CFGR			U(0x11BC)
578 #define RCC_PREDIV42CFGR			U(0x11C0)
579 #define RCC_PREDIV43CFGR			U(0x11C4)
580 #define RCC_PREDIV44CFGR			U(0x11C8)
581 #define RCC_PREDIV45CFGR			U(0x11CC)
582 #define RCC_PREDIV46CFGR			U(0x11D0)
583 #define RCC_PREDIV47CFGR			U(0x11D4)
584 #define RCC_PREDIV48CFGR			U(0x11D8)
585 #define RCC_PREDIV49CFGR			U(0x11DC)
586 #define RCC_PREDIV50CFGR			U(0x11E0)
587 #define RCC_PREDIV51CFGR			U(0x11E4)
588 #define RCC_PREDIV52CFGR			U(0x11E8)
589 #define RCC_PREDIV53CFGR			U(0x11EC)
590 #define RCC_PREDIV54CFGR			U(0x11F0)
591 #define RCC_PREDIV55CFGR			U(0x11F4)
592 #define RCC_PREDIV56CFGR			U(0x11F8)
593 #define RCC_PREDIV57CFGR			U(0x11FC)
594 #define RCC_PREDIV58CFGR			U(0x1200)
595 #define RCC_PREDIV59CFGR			U(0x1204)
596 #define RCC_PREDIV60CFGR			U(0x1208)
597 #define RCC_PREDIV61CFGR			U(0x120C)
598 #define RCC_PREDIV62CFGR			U(0x1210)
599 #define RCC_PREDIV63CFGR			U(0x1214)
600 #define RCC_PREDIVSR1				U(0x1218)
601 #define RCC_PREDIVSR2				U(0x121C)
602 #define RCC_FINDIV0CFGR				U(0x1224)
603 #define RCC_FINDIV1CFGR				U(0x1228)
604 #define RCC_FINDIV2CFGR				U(0x122C)
605 #define RCC_FINDIV3CFGR				U(0x1230)
606 #define RCC_FINDIV4CFGR				U(0x1234)
607 #define RCC_FINDIV5CFGR				U(0x1238)
608 #define RCC_FINDIV6CFGR				U(0x123C)
609 #define RCC_FINDIV7CFGR				U(0x1240)
610 #define RCC_FINDIV8CFGR				U(0x1244)
611 #define RCC_FINDIV9CFGR				U(0x1248)
612 #define RCC_FINDIV10CFGR			U(0x124C)
613 #define RCC_FINDIV11CFGR			U(0x1250)
614 #define RCC_FINDIV12CFGR			U(0x1254)
615 #define RCC_FINDIV13CFGR			U(0x1258)
616 #define RCC_FINDIV14CFGR			U(0x125C)
617 #define RCC_FINDIV15CFGR			U(0x1260)
618 #define RCC_FINDIV16CFGR			U(0x1264)
619 #define RCC_FINDIV17CFGR			U(0x1268)
620 #define RCC_FINDIV18CFGR			U(0x126C)
621 #define RCC_FINDIV19CFGR			U(0x1270)
622 #define RCC_FINDIV20CFGR			U(0x1274)
623 #define RCC_FINDIV21CFGR			U(0x1278)
624 #define RCC_FINDIV22CFGR			U(0x127C)
625 #define RCC_FINDIV23CFGR			U(0x1280)
626 #define RCC_FINDIV24CFGR			U(0x1284)
627 #define RCC_FINDIV25CFGR			U(0x1288)
628 #define RCC_FINDIV26CFGR			U(0x128C)
629 #define RCC_FINDIV27CFGR			U(0x1290)
630 #define RCC_FINDIV28CFGR			U(0x1294)
631 #define RCC_FINDIV29CFGR			U(0x1298)
632 #define RCC_FINDIV30CFGR			U(0x129C)
633 #define RCC_FINDIV31CFGR			U(0x12A0)
634 #define RCC_FINDIV32CFGR			U(0x12A4)
635 #define RCC_FINDIV33CFGR			U(0x12A8)
636 #define RCC_FINDIV34CFGR			U(0x12AC)
637 #define RCC_FINDIV35CFGR			U(0x12B0)
638 #define RCC_FINDIV36CFGR			U(0x12B4)
639 #define RCC_FINDIV37CFGR			U(0x12B8)
640 #define RCC_FINDIV38CFGR			U(0x12BC)
641 #define RCC_FINDIV39CFGR			U(0x12C0)
642 #define RCC_FINDIV40CFGR			U(0x12C4)
643 #define RCC_FINDIV41CFGR			U(0x12C8)
644 #define RCC_FINDIV42CFGR			U(0x12CC)
645 #define RCC_FINDIV43CFGR			U(0x12D0)
646 #define RCC_FINDIV44CFGR			U(0x12D4)
647 #define RCC_FINDIV45CFGR			U(0x12D8)
648 #define RCC_FINDIV46CFGR			U(0x12DC)
649 #define RCC_FINDIV47CFGR			U(0x12E0)
650 #define RCC_FINDIV48CFGR			U(0x12E4)
651 #define RCC_FINDIV49CFGR			U(0x12E8)
652 #define RCC_FINDIV50CFGR			U(0x12EC)
653 #define RCC_FINDIV51CFGR			U(0x12F0)
654 #define RCC_FINDIV52CFGR			U(0x12F4)
655 #define RCC_FINDIV53CFGR			U(0x12F8)
656 #define RCC_FINDIV54CFGR			U(0x12FC)
657 #define RCC_FINDIV55CFGR			U(0x1300)
658 #define RCC_FINDIV56CFGR			U(0x1304)
659 #define RCC_FINDIV57CFGR			U(0x1308)
660 #define RCC_FINDIV58CFGR			U(0x130C)
661 #define RCC_FINDIV59CFGR			U(0x1310)
662 #define RCC_FINDIV60CFGR			U(0x1314)
663 #define RCC_FINDIV61CFGR			U(0x1318)
664 #define RCC_FINDIV62CFGR			U(0x131C)
665 #define RCC_FINDIV63CFGR			U(0x1320)
666 #define RCC_FINDIVSR1				U(0x1324)
667 #define RCC_FINDIVSR2				U(0x1328)
668 #define RCC_FCALCOBS0CFGR			U(0x1340)
669 #define RCC_FCALCOBS1CFGR			U(0x1344)
670 #define RCC_FCALCREFCFGR			U(0x1348)
671 #define RCC_FCALCCR1				U(0x134C)
672 #define RCC_FCALCCR2				U(0x1354)
673 #define RCC_FCALCSR				U(0x1358)
674 #define RCC_PLL4CFGR1				U(0x1360)
675 #define RCC_PLL4CFGR2				U(0x1364)
676 #define RCC_PLL4CFGR3				U(0x1368)
677 #define RCC_PLL4CFGR4				U(0x136C)
678 #define RCC_PLL4CFGR5				U(0x1370)
679 #define RCC_PLL4CFGR6				U(0x1378)
680 #define RCC_PLL4CFGR7				U(0x137C)
681 #define RCC_PLL5CFGR1				U(0x1388)
682 #define RCC_PLL5CFGR2				U(0x138C)
683 #define RCC_PLL5CFGR3				U(0x1390)
684 #define RCC_PLL5CFGR4				U(0x1394)
685 #define RCC_PLL5CFGR5				U(0x1398)
686 #define RCC_PLL5CFGR6				U(0x13A0)
687 #define RCC_PLL5CFGR7				U(0x13A4)
688 #define RCC_PLL6CFGR1				U(0x13B0)
689 #define RCC_PLL6CFGR2				U(0x13B4)
690 #define RCC_PLL6CFGR3				U(0x13B8)
691 #define RCC_PLL6CFGR4				U(0x13BC)
692 #define RCC_PLL6CFGR5				U(0x13C0)
693 #define RCC_PLL6CFGR6				U(0x13C8)
694 #define RCC_PLL6CFGR7				U(0x13CC)
695 #define RCC_PLL7CFGR1				U(0x13D8)
696 #define RCC_PLL7CFGR2				U(0x13DC)
697 #define RCC_PLL7CFGR3				U(0x13E0)
698 #define RCC_PLL7CFGR4				U(0x13E4)
699 #define RCC_PLL7CFGR5				U(0x13E8)
700 #define RCC_PLL7CFGR6				U(0x13F0)
701 #define RCC_PLL7CFGR7				U(0x13F4)
702 #define RCC_PLL8CFGR1				U(0x1400)
703 #define RCC_PLL8CFGR2				U(0x1404)
704 #define RCC_PLL8CFGR3				U(0x1408)
705 #define RCC_PLL8CFGR4				U(0x140C)
706 #define RCC_PLL8CFGR5				U(0x1410)
707 #define RCC_PLL8CFGR6				U(0x1418)
708 #define RCC_PLL8CFGR7				U(0x141C)
709 #define RCC_VERR				U(0xFFF4)
710 #define RCC_IDR					U(0xFFF8)
711 #define RCC_SIDR				U(0xFFFC)
712 
713 /* Offset between RCC_MP_xxxENSETR and RCC_MP_xxxENCLRR registers */
714 #define RCC_MP_ENCLRR_OFFSET			U(4)
715 
716 /* RCC_GRSTCSETR register fields */
717 #define RCC_GRSTCSETR_SYSRST			BIT(0)
718 
719 /* RCC_C1RSTCSETR register fields */
720 #define RCC_C1RSTCSETR_C1RST			BIT(0)
721 
722 /* RCC_C1P1RSTCSETR register fields */
723 #define RCC_C1P1RSTCSETR_C1P1PORRST		BIT(0)
724 #define RCC_C1P1RSTCSETR_C1P1RST		BIT(1)
725 
726 /* RCC_C2RSTCSETR register fields */
727 #define RCC_C2RSTCSETR_C2RST			BIT(0)
728 
729 /* RCC_CxRSTCSETR register fields */
730 #define RCC_CxRSTCSETR_CxRST			BIT(0)
731 
732 /* RCC_HWRSTSCLRR register fields */
733 #define RCC_HWRSTSCLRR_PORRSTF			BIT(0)
734 #define RCC_HWRSTSCLRR_BORRSTF			BIT(1)
735 #define RCC_HWRSTSCLRR_PADRSTF			BIT(2)
736 #define RCC_HWRSTSCLRR_HCSSRSTF			BIT(3)
737 #define RCC_HWRSTSCLRR_VCORERSTF		BIT(4)
738 #define RCC_HWRSTSCLRR_SYSC1RSTF		BIT(5)
739 #define RCC_HWRSTSCLRR_SYSC2RSTF		BIT(6)
740 #define RCC_HWRSTSCLRR_IWDG1SYSRSTF		BIT(7)
741 #define RCC_HWRSTSCLRR_IWDG2SYSRSTF		BIT(8)
742 #define RCC_HWRSTSCLRR_IWDG3SYSRSTF		BIT(9)
743 #define RCC_HWRSTSCLRR_IWDG4SYSRSTF		BIT(10)
744 #define RCC_HWRSTSCLRR_IWDG5SYSRSTF		BIT(11)
745 #define RCC_HWRSTSCLRR_RETCRCERRRSTF		BIT(12)
746 #define RCC_HWRSTSCLRR_RETECCFAILCRCRSTF	BIT(13)
747 #define RCC_HWRSTSCLRR_RETECCFAILRESTRSTF	BIT(14)
748 
749 /* RCC_C1HWRSTSCLRR register fields */
750 #define RCC_C1HWRSTSCLRR_VCPURSTF		BIT(0)
751 #define RCC_C1HWRSTSCLRR_C1RSTF			BIT(1)
752 #define RCC_C1HWRSTSCLRR_C1P1RSTF		BIT(2)
753 
754 /* RCC_C2HWRSTSCLRR register fields */
755 #define RCC_C2HWRSTSCLRR_C2RSTF			BIT(0)
756 
757 /* RCC_C1BOOTRSTSSETR register fields */
758 #define RCC_C1BOOTRSTSSETR_PORRSTF		BIT(0)
759 #define RCC_C1BOOTRSTSSETR_BORRSTF		BIT(1)
760 #define RCC_C1BOOTRSTSSETR_PADRSTF		BIT(2)
761 #define RCC_C1BOOTRSTSSETR_HCSSRSTF		BIT(3)
762 #define RCC_C1BOOTRSTSSETR_VCORERSTF		BIT(4)
763 #define RCC_C1BOOTRSTSSETR_VCPURSTF		BIT(5)
764 #define RCC_C1BOOTRSTSSETR_SYSC1RSTF		BIT(6)
765 #define RCC_C1BOOTRSTSSETR_SYSC2RSTF		BIT(7)
766 #define RCC_C1BOOTRSTSSETR_IWDG1SYSRSTF		BIT(8)
767 #define RCC_C1BOOTRSTSSETR_IWDG2SYSRSTF		BIT(9)
768 #define RCC_C1BOOTRSTSSETR_IWDG3SYSRSTF		BIT(10)
769 #define RCC_C1BOOTRSTSSETR_IWDG4SYSRSTF		BIT(11)
770 #define RCC_C1BOOTRSTSSETR_IWDG5SYSRSTF		BIT(12)
771 #define RCC_C1BOOTRSTSSETR_C1RSTF		BIT(13)
772 #define RCC_C1BOOTRSTSSETR_C1P1RSTF		BIT(16)
773 #define RCC_C1BOOTRSTSSETR_RETCRCERRRSTF	BIT(17)
774 #define RCC_C1BOOTRSTSSETR_RETECCFAILCRCRSTF	BIT(18)
775 #define RCC_C1BOOTRSTSSETR_RETECCFAILRESTRSTF	BIT(19)
776 #define RCC_C1BOOTRSTSSETR_STBYC1RSTF		BIT(20)
777 #define RCC_C1BOOTRSTSSETR_D1STBYRSTF		BIT(22)
778 #define RCC_C1BOOTRSTSSETR_D2STBYRSTF		BIT(23)
779 
780 /* RCC_C1BOOTRSTSCLRR register fields */
781 #define RCC_C1BOOTRSTSCLRR_PORRSTF		BIT(0)
782 #define RCC_C1BOOTRSTSCLRR_BORRSTF		BIT(1)
783 #define RCC_C1BOOTRSTSCLRR_PADRSTF		BIT(2)
784 #define RCC_C1BOOTRSTSCLRR_HCSSRSTF		BIT(3)
785 #define RCC_C1BOOTRSTSCLRR_VCORERSTF		BIT(4)
786 #define RCC_C1BOOTRSTSCLRR_VCPURSTF		BIT(5)
787 #define RCC_C1BOOTRSTSCLRR_SYSC1RSTF		BIT(6)
788 #define RCC_C1BOOTRSTSCLRR_SYSC2RSTF		BIT(7)
789 #define RCC_C1BOOTRSTSCLRR_IWDG1SYSRSTF		BIT(8)
790 #define RCC_C1BOOTRSTSCLRR_IWDG2SYSRSTF		BIT(9)
791 #define RCC_C1BOOTRSTSCLRR_IWDG3SYSRSTF		BIT(10)
792 #define RCC_C1BOOTRSTSCLRR_IWDG4SYSRSTF		BIT(11)
793 #define RCC_C1BOOTRSTSCLRR_IWDG5SYSRSTF		BIT(12)
794 #define RCC_C1BOOTRSTSCLRR_C1RSTF		BIT(13)
795 #define RCC_C1BOOTRSTSCLRR_C1P1RSTF		BIT(16)
796 #define RCC_C1BOOTRSTSCLRR_RETCRCERRRSTF	BIT(17)
797 #define RCC_C1BOOTRSTSCLRR_RETECCFAILCRCRSTF	BIT(18)
798 #define RCC_C1BOOTRSTSCLRR_RETECCFAILRESTRSTF	BIT(19)
799 #define RCC_C1BOOTRSTSCLRR_STBYC1RSTF		BIT(20)
800 #define RCC_C1BOOTRSTSCLRR_D1STBYRSTF		BIT(22)
801 #define RCC_C1BOOTRSTSCLRR_D2STBYRSTF		BIT(23)
802 
803 /* RCC_C2BOOTRSTSSETR register fields */
804 #define RCC_C2BOOTRSTSSETR_PORRSTF		BIT(0)
805 #define RCC_C2BOOTRSTSSETR_BORRSTF		BIT(1)
806 #define RCC_C2BOOTRSTSSETR_PADRSTF		BIT(2)
807 #define RCC_C2BOOTRSTSSETR_HCSSRSTF		BIT(3)
808 #define RCC_C2BOOTRSTSSETR_VCORERSTF		BIT(4)
809 #define RCC_C2BOOTRSTSSETR_SYSC1RSTF		BIT(6)
810 #define RCC_C2BOOTRSTSSETR_SYSC2RSTF		BIT(7)
811 #define RCC_C2BOOTRSTSSETR_IWDG1SYSRSTF		BIT(8)
812 #define RCC_C2BOOTRSTSSETR_IWDG2SYSRSTF		BIT(9)
813 #define RCC_C2BOOTRSTSSETR_IWDG3SYSRSTF		BIT(10)
814 #define RCC_C2BOOTRSTSSETR_IWDG4SYSRSTF		BIT(11)
815 #define RCC_C2BOOTRSTSSETR_IWDG5SYSRSTF		BIT(12)
816 #define RCC_C2BOOTRSTSSETR_C2RSTF		BIT(14)
817 #define RCC_C2BOOTRSTSSETR_RETCRCERRRSTF	BIT(17)
818 #define RCC_C2BOOTRSTSSETR_RETECCFAILCRCRSTF	BIT(18)
819 #define RCC_C2BOOTRSTSSETR_RETECCFAILRESTRSTF	BIT(19)
820 #define RCC_C2BOOTRSTSSETR_STBYC2RSTF		BIT(21)
821 #define RCC_C2BOOTRSTSSETR_D2STBYRSTF		BIT(23)
822 #define RCC_C2BOOTRSTSSETR_IWDG3LOCRSTF		BIT(26)
823 #define RCC_C2BOOTRSTSSETR_IWDG4LOCRSTF		BIT(27)
824 
825 /* RCC_C2BOOTRSTSCLRR register fields */
826 #define RCC_C2BOOTRSTSCLRR_PORRSTF		BIT(0)
827 #define RCC_C2BOOTRSTSCLRR_BORRSTF		BIT(1)
828 #define RCC_C2BOOTRSTSCLRR_PADRSTF		BIT(2)
829 #define RCC_C2BOOTRSTSCLRR_HCSSRSTF		BIT(3)
830 #define RCC_C2BOOTRSTSCLRR_VCORERSTF		BIT(4)
831 #define RCC_C2BOOTRSTSCLRR_SYSC1RSTF		BIT(6)
832 #define RCC_C2BOOTRSTSCLRR_SYSC2RSTF		BIT(7)
833 #define RCC_C2BOOTRSTSCLRR_IWDG1SYSRSTF		BIT(8)
834 #define RCC_C2BOOTRSTSCLRR_IWDG2SYSRSTF		BIT(9)
835 #define RCC_C2BOOTRSTSCLRR_IWDG3SYSRSTF		BIT(10)
836 #define RCC_C2BOOTRSTSCLRR_IWDG4SYSRSTF		BIT(11)
837 #define RCC_C2BOOTRSTSCLRR_IWDG5SYSRSTF		BIT(12)
838 #define RCC_C2BOOTRSTSCLRR_C2RSTF		BIT(14)
839 #define RCC_C2BOOTRSTSCLRR_RETCRCERRRSTF	BIT(17)
840 #define RCC_C2BOOTRSTSCLRR_RETECCFAILCRCRSTF	BIT(18)
841 #define RCC_C2BOOTRSTSCLRR_RETECCFAILRESTRSTF	BIT(19)
842 #define RCC_C2BOOTRSTSCLRR_STBYC2RSTF		BIT(21)
843 #define RCC_C2BOOTRSTSCLRR_D2STBYRSTF		BIT(23)
844 
845 /* RCC_C1SREQSETR register fields */
846 #define RCC_C1SREQSETR_STPREQ_P0		BIT(0)
847 #define RCC_C1SREQSETR_STPREQ_P1		BIT(1)
848 
849 /* RCC_C1SREQCLRR register fields */
850 #define RCC_C1SREQCLRR_STPREQ_P0		BIT(0)
851 #define RCC_C1SREQCLRR_STPREQ_P1		BIT(1)
852 
853 /* RCC_CPUBOOTCR register fields */
854 #define RCC_CPUBOOTCR_BOOT_CPU2			BIT(0)
855 #define RCC_CPUBOOTCR_BOOT_CPU1			BIT(1)
856 
857 /* RCC_STBYBOOTCR register fields */
858 #define RCC_STBYBOOTCR_CPU_BEN_SEL		BIT(1)
859 #define RCC_STBYBOOTCR_COLD_CPU2		BIT(2)
860 #define RCC_STBYBOOTCR_CPU2_HW_BEN		BIT(4)
861 #define RCC_STBYBOOTCR_CPU1_HW_BEN		BIT(5)
862 #define RCC_STBYBOOTCR_RET_CRCERR_RSTEN		BIT(8)
863 
864 /* RCC_LEGBOOTCR register fields */
865 #define RCC_LEGBOOTCR_LEGACY_BEN		BIT(0)
866 
867 /* RCC_BDCR register fields */
868 #define RCC_BDCR_LSEON				BIT(0)
869 #define RCC_BDCR_LSEBYP				BIT(1)
870 #define RCC_BDCR_LSERDY				BIT(2)
871 #define RCC_BDCR_LSEDIGBYP			BIT(3)
872 #define RCC_BDCR_LSEDRV_MASK			GENMASK_32(5, 4)
873 #define RCC_BDCR_LSEDRV_SHIFT			4
874 #define RCC_BDCR_LSECSSON			BIT(6)
875 #define RCC_BDCR_LSEGFON			BIT(7)
876 #define RCC_BDCR_LSECSSD			BIT(8)
877 #define RCC_BDCR_LSION				BIT(9)
878 #define RCC_BDCR_LSIRDY				BIT(10)
879 #define RCC_BDCR_RTCSRC_MASK			GENMASK_32(17, 16)
880 #define RCC_BDCR_RTCSRC_SHIFT			16
881 #define RCC_BDCR_RTCCKEN			BIT(20)
882 #define RCC_BDCR_MSIFREQSEL			BIT(24)
883 #define RCC_BDCR_C3SYSTICKSEL			BIT(25)
884 #define RCC_BDCR_VSWRST				BIT(31)
885 #define RCC_BDCR_LSEBYP_BIT			1
886 #define RCC_BDCR_LSEDIGBYP_BIT			3
887 #define RCC_BDCR_LSECSSON_BIT			6
888 #define RCC_BDCR_LSERDY_BIT			2
889 #define RCC_BDCR_LSIRDY_BIT			10
890 
891 #define RCC_BDCR_LSEDRV_SHIFT			4
892 #define RCC_BDCR_LSEDRV_WIDTH			2
893 
894 /* RCC_D3DCR register fields */
895 #define RCC_D3DCR_MSION				BIT(0)
896 #define RCC_D3DCR_MSIKERON			BIT(1)
897 #define RCC_D3DCR_MSIRDY			BIT(2)
898 #define RCC_D3DCR_D3PERCKSEL_MASK		GENMASK_32(17, 16)
899 #define RCC_D3DCR_D3PERCKSEL_SHIFT		16
900 #define RCC_D3DCR_MSIRDY_BIT			2
901 
902 /* RCC_D3DSR register fields */
903 #define RCC_D3DSR_D3STATE_MASK			GENMASK_32(1, 0)
904 #define RCC_D3DSR_D3STATE_SHIFT			0
905 
906 /* RCC_RDCR register fields */
907 #define RCC_RDCR_MRD_MASK			GENMASK_32(20, 16)
908 #define RCC_RDCR_MRD_SHIFT			16
909 #define RCC_RDCR_EADLY_MASK			GENMASK_32(27, 24)
910 #define RCC_RDCR_EADLY_SHIFT			24
911 
912 /* RCC_C1MSRDCR register fields */
913 #define RCC_C1MSRDCR_C1MSRD_MASK		GENMASK_32(4, 0)
914 #define RCC_C1MSRDCR_C1MSRD_SHIFT		0
915 #define RCC_C1MSRDCR_C1MSRST			BIT(8)
916 
917 /* RCC_PWRLPDLYCR register fields */
918 #define RCC_PWRLPDLYCR_PWRLP_DLY_MASK		GENMASK_32(21, 0)
919 #define RCC_PWRLPDLYCR_PWRLP_DLY_SHIFT		0
920 #define RCC_PWRLPDLYCR_CPU2TMPSKP		BIT(24)
921 
922 /* RCC_C1CIESETR register fields */
923 #define RCC_C1CIESETR_LSIRDYIE			BIT(0)
924 #define RCC_C1CIESETR_LSERDYIE			BIT(1)
925 #define RCC_C1CIESETR_HSIRDYIE			BIT(2)
926 #define RCC_C1CIESETR_HSERDYIE			BIT(3)
927 #define RCC_C1CIESETR_MSIRDYIE			BIT(4)
928 #define RCC_C1CIESETR_PLL1RDYIE			BIT(5)
929 #define RCC_C1CIESETR_PLL2RDYIE			BIT(6)
930 #define RCC_C1CIESETR_PLL3RDYIE			BIT(7)
931 #define RCC_C1CIESETR_PLL4RDYIE			BIT(8)
932 #define RCC_C1CIESETR_PLL5RDYIE			BIT(9)
933 #define RCC_C1CIESETR_PLL6RDYIE			BIT(10)
934 #define RCC_C1CIESETR_PLL7RDYIE			BIT(11)
935 #define RCC_C1CIESETR_PLL8RDYIE			BIT(12)
936 #define RCC_C1CIESETR_LSECSSIE			BIT(16)
937 #define RCC_C1CIESETR_WKUPIE			BIT(20)
938 
939 /* RCC_C1CIFCLRR register fields */
940 #define RCC_C1CIFCLRR_LSIRDYF			BIT(0)
941 #define RCC_C1CIFCLRR_LSERDYF			BIT(1)
942 #define RCC_C1CIFCLRR_HSIRDYF			BIT(2)
943 #define RCC_C1CIFCLRR_HSERDYF			BIT(3)
944 #define RCC_C1CIFCLRR_MSIRDYF			BIT(4)
945 #define RCC_C1CIFCLRR_PLL1RDYF			BIT(5)
946 #define RCC_C1CIFCLRR_PLL2RDYF			BIT(6)
947 #define RCC_C1CIFCLRR_PLL3RDYF			BIT(7)
948 #define RCC_C1CIFCLRR_PLL4RDYF			BIT(8)
949 #define RCC_C1CIFCLRR_PLL5RDYF			BIT(9)
950 #define RCC_C1CIFCLRR_PLL6RDYF			BIT(10)
951 #define RCC_C1CIFCLRR_PLL7RDYF			BIT(11)
952 #define RCC_C1CIFCLRR_PLL8RDYF			BIT(12)
953 #define RCC_C1CIFCLRR_LSECSSF			BIT(16)
954 #define RCC_C1CIFCLRR_WKUPF			BIT(20)
955 
956 /* RCC_C2CIESETR register fields */
957 #define RCC_C2CIESETR_LSIRDYIE			BIT(0)
958 #define RCC_C2CIESETR_LSERDYIE			BIT(1)
959 #define RCC_C2CIESETR_HSIRDYIE			BIT(2)
960 #define RCC_C2CIESETR_HSERDYIE			BIT(3)
961 #define RCC_C2CIESETR_MSIRDYIE			BIT(4)
962 #define RCC_C2CIESETR_PLL1RDYIE			BIT(5)
963 #define RCC_C2CIESETR_PLL2RDYIE			BIT(6)
964 #define RCC_C2CIESETR_PLL3RDYIE			BIT(7)
965 #define RCC_C2CIESETR_PLL4RDYIE			BIT(8)
966 #define RCC_C2CIESETR_PLL5RDYIE			BIT(9)
967 #define RCC_C2CIESETR_PLL6RDYIE			BIT(10)
968 #define RCC_C2CIESETR_PLL7RDYIE			BIT(11)
969 #define RCC_C2CIESETR_PLL8RDYIE			BIT(12)
970 #define RCC_C2CIESETR_LSECSSIE			BIT(16)
971 #define RCC_C2CIESETR_WKUPIE			BIT(20)
972 
973 /* RCC_C2CIFCLRR register fields */
974 #define RCC_C2CIFCLRR_LSIRDYF			BIT(0)
975 #define RCC_C2CIFCLRR_LSERDYF			BIT(1)
976 #define RCC_C2CIFCLRR_HSIRDYF			BIT(2)
977 #define RCC_C2CIFCLRR_HSERDYF			BIT(3)
978 #define RCC_C2CIFCLRR_MSIRDYF			BIT(4)
979 #define RCC_C2CIFCLRR_PLL1RDYF			BIT(5)
980 #define RCC_C2CIFCLRR_PLL2RDYF			BIT(6)
981 #define RCC_C2CIFCLRR_PLL3RDYF			BIT(7)
982 #define RCC_C2CIFCLRR_PLL4RDYF			BIT(8)
983 #define RCC_C2CIFCLRR_PLL5RDYF			BIT(9)
984 #define RCC_C2CIFCLRR_PLL6RDYF			BIT(10)
985 #define RCC_C2CIFCLRR_PLL7RDYF			BIT(11)
986 #define RCC_C2CIFCLRR_PLL8RDYF			BIT(12)
987 #define RCC_C2CIFCLRR_LSECSSF			BIT(16)
988 #define RCC_C2CIFCLRR_WKUPF			BIT(20)
989 
990 /* RCC_CxCIESETR register fields */
991 #define RCC_CxCIESETR_LSIRDYIE			BIT(0)
992 #define RCC_CxCIESETR_LSERDYIE			BIT(1)
993 #define RCC_CxCIESETR_HSIRDYIE			BIT(2)
994 #define RCC_CxCIESETR_HSERDYIE			BIT(3)
995 #define RCC_CxCIESETR_MSIRDYIE			BIT(4)
996 #define RCC_CxCIESETR_SHSIRDYIE			BIT(5)
997 #define RCC_CxCIESETR_PLL1RDYIE			BIT(6)
998 #define RCC_CxCIESETR_PLL2RDYIE			BIT(7)
999 #define RCC_CxCIESETR_PLL3RDYIE			BIT(8)
1000 #define RCC_CxCIESETR_PLL4RDYIE			BIT(9)
1001 #define RCC_CxCIESETR_PLL5RDYIE			BIT(10)
1002 #define RCC_CxCIESETR_PLL6RDYIE			BIT(11)
1003 #define RCC_CxCIESETR_PLL7RDYIE			BIT(12)
1004 #define RCC_CxCIESETR_PLL8RDYIE			BIT(13)
1005 #define RCC_CxCIESETR_LSECSSIE			BIT(16)
1006 #define RCC_CxCIESETR_WKUPIE			BIT(20)
1007 
1008 /* RCC_CxCIFCLRR register fields */
1009 #define RCC_CxCIFCLRR_LSIRDYF			BIT(0)
1010 #define RCC_CxCIFCLRR_LSERDYF			BIT(1)
1011 #define RCC_CxCIFCLRR_HSIRDYF			BIT(2)
1012 #define RCC_CxCIFCLRR_HSERDYF			BIT(3)
1013 #define RCC_CxCIFCLRR_MSIRDYF			BIT(4)
1014 #define RCC_CxCIFCLRR_SHSIRDYF			BIT(5)
1015 #define RCC_CxCIFCLRR_PLL1RDYF			BIT(6)
1016 #define RCC_CxCIFCLRR_PLL2RDYF			BIT(7)
1017 #define RCC_CxCIFCLRR_PLL3RDYF			BIT(8)
1018 #define RCC_CxCIFCLRR_PLL4RDYF			BIT(9)
1019 #define RCC_CxCIFCLRR_PLL5RDYF			BIT(10)
1020 #define RCC_CxCIFCLRR_PLL6RDYF			BIT(11)
1021 #define RCC_CxCIFCLRR_PLL7RDYF			BIT(12)
1022 #define RCC_CxCIFCLRR_PLL8RDYF			BIT(13)
1023 #define RCC_CxCIFCLRR_LSECSSF			BIT(16)
1024 #define RCC_CxCIFCLRR_WKUPF			BIT(20)
1025 
1026 /* RCC_IWDGC1FZSETR register fields */
1027 #define RCC_IWDGC1FZSETR_FZ_IWDG1		BIT(0)
1028 #define RCC_IWDGC1FZSETR_FZ_IWDG2		BIT(1)
1029 
1030 /* RCC_IWDGC1FZCLRR register fields */
1031 #define RCC_IWDGC1FZCLRR_FZ_IWDG1		BIT(0)
1032 #define RCC_IWDGC1FZCLRR_FZ_IWDG2		BIT(1)
1033 
1034 /* RCC_IWDGC1CFGSETR register fields */
1035 #define RCC_IWDGC1CFGSETR_IWDG1_SYSRSTEN	BIT(0)
1036 #define RCC_IWDGC1CFGSETR_IWDG2_SYSRSTEN	BIT(2)
1037 #define RCC_IWDGC1CFGSETR_IWDG2_KERRST		BIT(18)
1038 
1039 /* RCC_IWDGC1CFGCLRR register fields */
1040 #define RCC_IWDGC1CFGCLRR_IWDG1_SYSRSTEN	BIT(0)
1041 #define RCC_IWDGC1CFGCLRR_IWDG2_SYSRSTEN	BIT(2)
1042 #define RCC_IWDGC1CFGCLRR_IWDG2_KERRST		BIT(18)
1043 
1044 /* RCC_IWDGC2FZSETR register fields */
1045 #define RCC_IWDGC2FZSETR_FZ_IWDG3		BIT(0)
1046 #define RCC_IWDGC2FZSETR_FZ_IWDG4		BIT(1)
1047 
1048 /* RCC_IWDGC2FZCLRR register fields */
1049 #define RCC_IWDGC2FZCLRR_FZ_IWDG3		BIT(0)
1050 #define RCC_IWDGC2FZCLRR_FZ_IWDG4		BIT(1)
1051 
1052 /* RCC_IWDGC2CFGSETR register fields */
1053 #define RCC_IWDGC2CFGSETR_IWDG3_SYSRSTEN	BIT(0)
1054 #define RCC_IWDGC2CFGSETR_IWDG4_SYSRSTEN	BIT(2)
1055 #define RCC_IWDGC2CFGSETR_IWDG4_KERRST		BIT(18)
1056 
1057 /* RCC_IWDGC2CFGCLRR register fields */
1058 #define RCC_IWDGC2CFGCLRR_IWDG3_SYSRSTEN	BIT(0)
1059 #define RCC_IWDGC2CFGCLRR_IWDG4_SYSRSTEN	BIT(2)
1060 #define RCC_IWDGC2CFGCLRR_IWDG4_KERRST		BIT(18)
1061 
1062 /* RCC_IWDGC3CFGSETR register fields */
1063 #define RCC_IWDGC3CFGSETR_IWDG5_SYSRSTEN	BIT(0)
1064 
1065 /* RCC_IWDGC3CFGCLRR register fields */
1066 #define RCC_IWDGC3CFGCLRR_IWDG5_SYSRSTEN	BIT(0)
1067 
1068 /* RCC_C3CFGR register fields */
1069 #define RCC_C3CFGR_C3RST			BIT(0)
1070 #define RCC_C3CFGR_C3EN				BIT(1)
1071 #define RCC_C3CFGR_C3LPEN			BIT(2)
1072 #define RCC_C3CFGR_C3AMEN			BIT(3)
1073 #define RCC_C3CFGR_LPTIM3C3EN			BIT(16)
1074 #define RCC_C3CFGR_LPTIM4C3EN			BIT(17)
1075 #define RCC_C3CFGR_LPTIM5C3EN			BIT(18)
1076 #define RCC_C3CFGR_SPI8C3EN			BIT(19)
1077 #define RCC_C3CFGR_LPUART1C3EN			BIT(20)
1078 #define RCC_C3CFGR_I2C8C3EN			BIT(21)
1079 #define RCC_C3CFGR_ADF1C3EN			BIT(23)
1080 #define RCC_C3CFGR_GPIOZC3EN			BIT(24)
1081 #define RCC_C3CFGR_LPDMAC3EN			BIT(25)
1082 #define RCC_C3CFGR_RTCC3EN			BIT(26)
1083 #define RCC_C3CFGR_I3C4C3EN			BIT(27)
1084 
1085 /* RCC_MCO1CFGR register fields */
1086 #define RCC_MCO1CFGR_MCO1SEL			BIT(0)
1087 #define RCC_MCO1CFGR_MCO1ON			BIT(8)
1088 
1089 /* RCC_MCO2CFGR register fields */
1090 #define RCC_MCO2CFGR_MCO2SEL			BIT(0)
1091 #define RCC_MCO2CFGR_MCO2ON			BIT(8)
1092 
1093 /* RCC_MCOxCFGR register fields */
1094 #define RCC_MCOxCFGR_MCOxSEL			BIT(0)
1095 #define RCC_MCOxCFGR_MCOxON			BIT(8)
1096 
1097 /* RCC_OCENSETR register fields */
1098 #define RCC_OCENSETR_HSION			BIT(0)
1099 #define RCC_OCENSETR_HSIKERON			BIT(1)
1100 #define RCC_OCENSETR_HSEDIV2ON			BIT(5)
1101 #define RCC_OCENSETR_HSEDIV2BYP			BIT(6)
1102 #define RCC_OCENSETR_HSEDIGBYP			BIT(7)
1103 #define RCC_OCENSETR_HSEON			BIT(8)
1104 #define RCC_OCENSETR_HSEKERON			BIT(9)
1105 #define RCC_OCENSETR_HSEBYP			BIT(10)
1106 #define RCC_OCENSETR_HSECSSON			BIT(11)
1107 
1108 #define RCC_OCENSETR_HSEDIGBYP_BIT		7
1109 #define RCC_OCENSETR_HSEBYP_BIT			10
1110 #define RCC_OCENSETR_HSECSSON_BIT		11
1111 
1112 /* RCC_OCENCLRR register fields */
1113 #define RCC_OCENCLRR_HSION			BIT(0)
1114 #define RCC_OCENCLRR_HSIKERON			BIT(1)
1115 #define RCC_OCENCLRR_HSEDIV2ON			BIT(5)
1116 #define RCC_OCENCLRR_HSEDIV2BYP			BIT(6)
1117 #define RCC_OCENCLRR_HSEDIGBYP			BIT(7)
1118 #define RCC_OCENCLRR_HSEON			BIT(8)
1119 #define RCC_OCENCLRR_HSEKERON			BIT(9)
1120 #define RCC_OCENCLRR_HSEBYP			BIT(10)
1121 
1122 /* RCC_OCRDYR register fields */
1123 #define RCC_OCRDYR_HSIRDY			BIT(0)
1124 #define RCC_OCRDYR_HSERDY			BIT(8)
1125 #define RCC_OCRDYR_CKREST			BIT(25)
1126 
1127 #define RCC_OCRDYR_HSIRDY_BIT			0
1128 #define RCC_OCRDYR_HSERDY_BIT			8
1129 
1130 /* RCC_HSICFGR register fields */
1131 #define RCC_HSICFGR_HSITRIM_MASK		GENMASK_32(14, 8)
1132 #define RCC_HSICFGR_HSITRIM_SHIFT		8
1133 #define RCC_HSICFGR_HSICAL_MASK			GENMASK_32(24, 16)
1134 #define RCC_HSICFGR_HSICAL_SHIFT		16
1135 
1136 /* RCC_MSICFGR register fields */
1137 #define RCC_MSICFGR_MSITRIM_MASK		GENMASK_32(12, 8)
1138 #define RCC_MSICFGR_MSITRIM_SHIFT		8
1139 #define RCC_MSICFGR_MSICAL_MASK			GENMASK_32(23, 16)
1140 #define RCC_MSICFGR_MSICAL_SHIFT		16
1141 
1142 /* RCC_RTCDIVR register fields */
1143 #define RCC_RTCDIVR_RTCDIV_MASK			GENMASK_32(5, 0)
1144 #define RCC_RTCDIVR_RTCDIV_SHIFT		0
1145 
1146 /* RCC_APB1DIVR register fields */
1147 #define RCC_APB1DIVR_APB1DIV_MASK		GENMASK_32(2, 0)
1148 #define RCC_APB1DIVR_APB1DIV_SHIFT		0
1149 #define RCC_APB1DIVR_APB1DIVRDY			BIT(31)
1150 
1151 /* RCC_APB2DIVR register fields */
1152 #define RCC_APB2DIVR_APB2DIV_MASK		GENMASK_32(2, 0)
1153 #define RCC_APB2DIVR_APB2DIV_SHIFT		0
1154 #define RCC_APB2DIVR_APB2DIVRDY			BIT(31)
1155 
1156 /* RCC_APB3DIVR register fields */
1157 #define RCC_APB3DIVR_APB3DIV_MASK		GENMASK_32(2, 0)
1158 #define RCC_APB3DIVR_APB3DIV_SHIFT		0
1159 #define RCC_APB3DIVR_APB3DIVRDY			BIT(31)
1160 
1161 /* RCC_APB4DIVR register fields */
1162 #define RCC_APB4DIVR_APB4DIV_MASK		GENMASK_32(2, 0)
1163 #define RCC_APB4DIVR_APB4DIV_SHIFT		0
1164 #define RCC_APB4DIVR_APB4DIVRDY			BIT(31)
1165 
1166 /* RCC_APBDBGDIVR register fields */
1167 #define RCC_APBDBGDIVR_APBDBGDIV_MASK		GENMASK_32(2, 0)
1168 #define RCC_APBDBGDIVR_APBDBGDIV_SHIFT		0
1169 #define RCC_APBDBGDIVR_APBDBGDIVRDY		BIT(31)
1170 
1171 /* RCC_APBxDIVR register fields */
1172 #define RCC_APBxDIVR_APBxDIV_MASK		GENMASK_32(2, 0)
1173 #define RCC_APBxDIVR_APBxDIV_SHIFT		0
1174 #define RCC_APBxDIVR_APBxDIVRDY			BIT(31)
1175 
1176 /* RCC_TIMG1PRER register fields */
1177 #define RCC_TIMG1PRER_TIMG1PRE			BIT(0)
1178 #define RCC_TIMG1PRER_TIMG1PRERDY		BIT(31)
1179 
1180 /* RCC_TIMG2PRER register fields */
1181 #define RCC_TIMG2PRER_TIMG2PRE			BIT(0)
1182 #define RCC_TIMG2PRER_TIMG2PRERDY		BIT(31)
1183 
1184 /* RCC_TIMGxPRER register fields */
1185 #define RCC_TIMGxPRER_TIMGxPRE			BIT(0)
1186 #define RCC_TIMGxPRER_TIMGxPRERDY		BIT(31)
1187 
1188 /* RCC_LSMCUDIVR register fields */
1189 #define RCC_LSMCUDIVR_LSMCUDIV			BIT(0)
1190 #define RCC_LSMCUDIVR_LSMCUDIVRDY		BIT(31)
1191 
1192 /* RCC_DDRCPCFGR register fields */
1193 #define RCC_DDRCPCFGR_DDRCPRST			BIT(0)
1194 #define RCC_DDRCPCFGR_DDRCPEN			BIT(1)
1195 #define RCC_DDRCPCFGR_DDRCPLPEN			BIT(2)
1196 
1197 /* RCC_DDRCAPBCFGR register fields */
1198 #define RCC_DDRCAPBCFGR_DDRCAPBRST		BIT(0)
1199 #define RCC_DDRCAPBCFGR_DDRCAPBEN		BIT(1)
1200 #define RCC_DDRCAPBCFGR_DDRCAPBLPEN		BIT(2)
1201 
1202 /* RCC_DDRPHYCAPBCFGR register fields */
1203 #define RCC_DDRPHYCAPBCFGR_DDRPHYCAPBRST	BIT(0)
1204 #define RCC_DDRPHYCAPBCFGR_DDRPHYCAPBEN		BIT(1)
1205 #define RCC_DDRPHYCAPBCFGR_DDRPHYCAPBLPEN	BIT(2)
1206 
1207 /* RCC_DDRPHYCCFGR register fields */
1208 #define RCC_DDRPHYCCFGR_DDRPHYCEN		BIT(1)
1209 
1210 /* RCC_DDRCFGR register fields */
1211 #define RCC_DDRCFGR_DDRCFGRST			BIT(0)
1212 #define RCC_DDRCFGR_DDRCFGEN			BIT(1)
1213 #define RCC_DDRCFGR_DDRCFGLPEN			BIT(2)
1214 
1215 /* RCC_DDRITFCFGR register fields */
1216 #define RCC_DDRITFCFGR_DDRRST			BIT(0)
1217 #define RCC_DDRITFCFGR_DDRCKMOD_MASK		GENMASK_32(5, 4)
1218 #define RCC_DDRITFCFGR_DDRCKMOD_SHIFT		4
1219 #define RCC_DDRITFCFGR_DDRSHR			BIT(8)
1220 #define RCC_DDRITFCFGR_DDRPHYDLP		BIT(16)
1221 
1222 /* RCC_SYSRAMCFGR register fields */
1223 #define RCC_SYSRAMCFGR_SYSRAMEN			BIT(1)
1224 #define RCC_SYSRAMCFGR_SYSRAMLPEN		BIT(2)
1225 
1226 /* RCC_VDERAMCFGR register fields */
1227 #define RCC_VDERAMCFGR_VDERAMEN			BIT(1)
1228 #define RCC_VDERAMCFGR_VDERAMLPEN		BIT(2)
1229 
1230 /* RCC_SRAM1CFGR register fields */
1231 #define RCC_SRAM1CFGR_SRAM1EN			BIT(1)
1232 #define RCC_SRAM1CFGR_SRAM1LPEN			BIT(2)
1233 
1234 /* RCC_SRAM2CFGR register fields */
1235 #define RCC_SRAM2CFGR_SRAM2EN			BIT(1)
1236 #define RCC_SRAM2CFGR_SRAM2LPEN			BIT(2)
1237 
1238 /* RCC_RETRAMCFGR register fields */
1239 #define RCC_RETRAMCFGR_RETRAMEN			BIT(1)
1240 #define RCC_RETRAMCFGR_RETRAMLPEN		BIT(2)
1241 
1242 /* RCC_BKPSRAMCFGR register fields */
1243 #define RCC_BKPSRAMCFGR_BKPSRAMEN		BIT(1)
1244 #define RCC_BKPSRAMCFGR_BKPSRAMLPEN		BIT(2)
1245 
1246 /* RCC_LPSRAM1CFGR register fields */
1247 #define RCC_LPSRAM1CFGR_LPSRAM1EN		BIT(1)
1248 #define RCC_LPSRAM1CFGR_LPSRAM1LPEN		BIT(2)
1249 #define RCC_LPSRAM1CFGR_LPSRAM1AMEN		BIT(3)
1250 
1251 /* RCC_LPSRAM2CFGR register fields */
1252 #define RCC_LPSRAM2CFGR_LPSRAM2EN		BIT(1)
1253 #define RCC_LPSRAM2CFGR_LPSRAM2LPEN		BIT(2)
1254 #define RCC_LPSRAM2CFGR_LPSRAM2AMEN		BIT(3)
1255 
1256 /* RCC_LPSRAM3CFGR register fields */
1257 #define RCC_LPSRAM3CFGR_LPSRAM3EN		BIT(1)
1258 #define RCC_LPSRAM3CFGR_LPSRAM3LPEN		BIT(2)
1259 #define RCC_LPSRAM3CFGR_LPSRAM3AMEN		BIT(3)
1260 
1261 /* RCC_OSPI1CFGR register fields */
1262 #define RCC_OSPI1CFGR_OSPI1RST			BIT(0)
1263 #define RCC_OSPI1CFGR_OSPI1EN			BIT(1)
1264 #define RCC_OSPI1CFGR_OSPI1LPEN			BIT(2)
1265 #define RCC_OSPI1CFGR_OTFDEC1RST		BIT(8)
1266 #define RCC_OSPI1CFGR_OSPI1DLLRST		BIT(16)
1267 
1268 /* RCC_OSPI2CFGR register fields */
1269 #define RCC_OSPI2CFGR_OSPI2RST			BIT(0)
1270 #define RCC_OSPI2CFGR_OSPI2EN			BIT(1)
1271 #define RCC_OSPI2CFGR_OSPI2LPEN			BIT(2)
1272 #define RCC_OSPI2CFGR_OTFDEC2RST		BIT(8)
1273 #define RCC_OSPI2CFGR_OSPI2DLLRST		BIT(16)
1274 
1275 /* RCC_OSPIxCFGR register fields */
1276 #define RCC_OSPIxCFGR_OSPIxRST			BIT(0)
1277 #define RCC_OSPIxCFGR_OSPIxEN			BIT(1)
1278 #define RCC_OSPIxCFGR_OSPIxLPEN			BIT(2)
1279 #define RCC_OSPIxCFGR_OTFDECxRST		BIT(8)
1280 #define RCC_OSPIxCFGR_OSPIxDLLRST		BIT(16)
1281 
1282 /* RCC_FMCCFGR register fields */
1283 #define RCC_FMCCFGR_FMCRST			BIT(0)
1284 #define RCC_FMCCFGR_FMCEN			BIT(1)
1285 #define RCC_FMCCFGR_FMCLPEN			BIT(2)
1286 
1287 /* RCC_DBGCFGR register fields */
1288 #define RCC_DBGCFGR_DBGEN			BIT(8)
1289 #define RCC_DBGCFGR_TRACEEN			BIT(9)
1290 #define RCC_DBGCFGR_DBGRST			BIT(12)
1291 
1292 /* RCC_STMCFGR register fields */
1293 #define RCC_STMCFGR_STMEN			BIT(1)
1294 #define RCC_STMCFGR_STMLPEN			BIT(2)
1295 
1296 /* RCC_ETRCFGR register fields */
1297 #define RCC_ETRCFGR_ETREN			BIT(1)
1298 #define RCC_ETRCFGR_ETRLPEN			BIT(2)
1299 
1300 /* RCC_GPIOACFGR register fields */
1301 #define RCC_GPIOACFGR_GPIOARST			BIT(0)
1302 #define RCC_GPIOACFGR_GPIOAEN			BIT(1)
1303 #define RCC_GPIOACFGR_GPIOALPEN			BIT(2)
1304 
1305 /* RCC_GPIOBCFGR register fields */
1306 #define RCC_GPIOBCFGR_GPIOBRST			BIT(0)
1307 #define RCC_GPIOBCFGR_GPIOBEN			BIT(1)
1308 #define RCC_GPIOBCFGR_GPIOBLPEN			BIT(2)
1309 
1310 /* RCC_GPIOCCFGR register fields */
1311 #define RCC_GPIOCCFGR_GPIOCRST			BIT(0)
1312 #define RCC_GPIOCCFGR_GPIOCEN			BIT(1)
1313 #define RCC_GPIOCCFGR_GPIOCLPEN			BIT(2)
1314 
1315 /* RCC_GPIODCFGR register fields */
1316 #define RCC_GPIODCFGR_GPIODRST			BIT(0)
1317 #define RCC_GPIODCFGR_GPIODEN			BIT(1)
1318 #define RCC_GPIODCFGR_GPIODLPEN			BIT(2)
1319 
1320 /* RCC_GPIOECFGR register fields */
1321 #define RCC_GPIOECFGR_GPIOERST			BIT(0)
1322 #define RCC_GPIOECFGR_GPIOEEN			BIT(1)
1323 #define RCC_GPIOECFGR_GPIOELPEN			BIT(2)
1324 
1325 /* RCC_GPIOFCFGR register fields */
1326 #define RCC_GPIOFCFGR_GPIOFRST			BIT(0)
1327 #define RCC_GPIOFCFGR_GPIOFEN			BIT(1)
1328 #define RCC_GPIOFCFGR_GPIOFLPEN			BIT(2)
1329 
1330 /* RCC_GPIOGCFGR register fields */
1331 #define RCC_GPIOGCFGR_GPIOGRST			BIT(0)
1332 #define RCC_GPIOGCFGR_GPIOGEN			BIT(1)
1333 #define RCC_GPIOGCFGR_GPIOGLPEN			BIT(2)
1334 
1335 /* RCC_GPIOHCFGR register fields */
1336 #define RCC_GPIOHCFGR_GPIOHRST			BIT(0)
1337 #define RCC_GPIOHCFGR_GPIOHEN			BIT(1)
1338 #define RCC_GPIOHCFGR_GPIOHLPEN			BIT(2)
1339 
1340 /* RCC_GPIOICFGR register fields */
1341 #define RCC_GPIOICFGR_GPIOIRST			BIT(0)
1342 #define RCC_GPIOICFGR_GPIOIEN			BIT(1)
1343 #define RCC_GPIOICFGR_GPIOILPEN			BIT(2)
1344 
1345 /* RCC_GPIOJCFGR register fields */
1346 #define RCC_GPIOJCFGR_GPIOJRST			BIT(0)
1347 #define RCC_GPIOJCFGR_GPIOJEN			BIT(1)
1348 #define RCC_GPIOJCFGR_GPIOJLPEN			BIT(2)
1349 
1350 /* RCC_GPIOKCFGR register fields */
1351 #define RCC_GPIOKCFGR_GPIOKRST			BIT(0)
1352 #define RCC_GPIOKCFGR_GPIOKEN			BIT(1)
1353 #define RCC_GPIOKCFGR_GPIOKLPEN			BIT(2)
1354 
1355 /* RCC_GPIOZCFGR register fields */
1356 #define RCC_GPIOZCFGR_GPIOZRST			BIT(0)
1357 #define RCC_GPIOZCFGR_GPIOZEN			BIT(1)
1358 #define RCC_GPIOZCFGR_GPIOZLPEN			BIT(2)
1359 #define RCC_GPIOZCFGR_GPIOZAMEN			BIT(3)
1360 
1361 /* RCC_GPIOxCFGR register fields */
1362 #define RCC_GPIOxCFGR_GPIOxRST			BIT(0)
1363 #define RCC_GPIOxCFGR_GPIOxEN			BIT(1)
1364 #define RCC_GPIOxCFGR_GPIOxLPEN			BIT(2)
1365 #define RCC_GPIOxCFGR_GPIOxAMEN			BIT(3)
1366 
1367 /* RCC_HPDMA1CFGR register fields */
1368 #define RCC_HPDMA1CFGR_HPDMA1RST		BIT(0)
1369 #define RCC_HPDMA1CFGR_HPDMA1EN			BIT(1)
1370 #define RCC_HPDMA1CFGR_HPDMA1LPEN		BIT(2)
1371 
1372 /* RCC_HPDMA2CFGR register fields */
1373 #define RCC_HPDMA2CFGR_HPDMA2RST		BIT(0)
1374 #define RCC_HPDMA2CFGR_HPDMA2EN			BIT(1)
1375 #define RCC_HPDMA2CFGR_HPDMA2LPEN		BIT(2)
1376 
1377 /* RCC_HPDMA3CFGR register fields */
1378 #define RCC_HPDMA3CFGR_HPDMA3RST		BIT(0)
1379 #define RCC_HPDMA3CFGR_HPDMA3EN			BIT(1)
1380 #define RCC_HPDMA3CFGR_HPDMA3LPEN		BIT(2)
1381 
1382 /* RCC_HPDMAxCFGR register fields */
1383 #define RCC_HPDMAxCFGR_HPDMAxRST		BIT(0)
1384 #define RCC_HPDMAxCFGR_HPDMAxEN			BIT(1)
1385 #define RCC_HPDMAxCFGR_HPDMAxLPEN		BIT(2)
1386 
1387 /* RCC_LPDMACFGR register fields */
1388 #define RCC_LPDMACFGR_LPDMARST			BIT(0)
1389 #define RCC_LPDMACFGR_LPDMAEN			BIT(1)
1390 #define RCC_LPDMACFGR_LPDMALPEN			BIT(2)
1391 #define RCC_LPDMACFGR_LPDMAAMEN			BIT(3)
1392 
1393 /* RCC_HSEMCFGR register fields */
1394 #define RCC_HSEMCFGR_HSEMRST			BIT(0)
1395 #define RCC_HSEMCFGR_HSEMEN			BIT(1)
1396 #define RCC_HSEMCFGR_HSEMLPEN			BIT(2)
1397 #define RCC_HSEMCFGR_HSEMAMEN			BIT(3)
1398 
1399 /* RCC_IPCC1CFGR register fields */
1400 #define RCC_IPCC1CFGR_IPCC1RST			BIT(0)
1401 #define RCC_IPCC1CFGR_IPCC1EN			BIT(1)
1402 #define RCC_IPCC1CFGR_IPCC1LPEN			BIT(2)
1403 
1404 /* RCC_IPCC2CFGR register fields */
1405 #define RCC_IPCC2CFGR_IPCC2RST			BIT(0)
1406 #define RCC_IPCC2CFGR_IPCC2EN			BIT(1)
1407 #define RCC_IPCC2CFGR_IPCC2LPEN			BIT(2)
1408 #define RCC_IPCC2CFGR_IPCC2AMEN			BIT(3)
1409 
1410 /* RCC_RTCCFGR register fields */
1411 #define RCC_RTCCFGR_RTCEN			BIT(1)
1412 #define RCC_RTCCFGR_RTCLPEN			BIT(2)
1413 #define RCC_RTCCFGR_RTCAMEN			BIT(3)
1414 
1415 /* RCC_SYSCPU1CFGR register fields */
1416 #define RCC_SYSCPU1CFGR_SYSCPU1EN		BIT(1)
1417 #define RCC_SYSCPU1CFGR_SYSCPU1LPEN		BIT(2)
1418 
1419 /* RCC_BSECCFGR register fields */
1420 #define RCC_BSECCFGR_BSECEN			BIT(1)
1421 #define RCC_BSECCFGR_BSECLPEN			BIT(2)
1422 
1423 /* RCC_IS2MCFGR register fields */
1424 #define RCC_IS2MCFGR_IS2MRST			BIT(0)
1425 #define RCC_IS2MCFGR_IS2MEN			BIT(1)
1426 #define RCC_IS2MCFGR_IS2MLPEN			BIT(2)
1427 
1428 /* RCC_PLL2CFGR1 register fields */
1429 #define RCC_PLL2CFGR1_SSMODRST			BIT(0)
1430 #define RCC_PLL2CFGR1_PLLEN			BIT(8)
1431 #define RCC_PLL2CFGR1_PLLRDY			BIT(24)
1432 #define RCC_PLL2CFGR1_CKREFST			BIT(28)
1433 
1434 /* RCC_PLL2CFGR2 register fields */
1435 #define RCC_PLL2CFGR2_FREFDIV_MASK		GENMASK_32(5, 0)
1436 #define RCC_PLL2CFGR2_FREFDIV_SHIFT		0
1437 #define RCC_PLL2CFGR2_FBDIV_MASK		GENMASK_32(27, 16)
1438 #define RCC_PLL2CFGR2_FBDIV_SHIFT		16
1439 
1440 /* RCC_PLL2CFGR3 register fields */
1441 #define RCC_PLL2CFGR3_FRACIN_MASK		GENMASK_32(23, 0)
1442 #define RCC_PLL2CFGR3_FRACIN_SHIFT		0
1443 #define RCC_PLL2CFGR3_DOWNSPREAD		BIT(24)
1444 #define RCC_PLL2CFGR3_DACEN			BIT(25)
1445 #define RCC_PLL2CFGR3_SSCGDIS			BIT(26)
1446 
1447 /* RCC_PLL2CFGR4 register fields */
1448 #define RCC_PLL2CFGR4_DSMEN			BIT(8)
1449 #define RCC_PLL2CFGR4_FOUTPOSTDIVEN		BIT(9)
1450 #define RCC_PLL2CFGR4_BYPASS			BIT(10)
1451 
1452 /* RCC_PLL2CFGR5 register fields */
1453 #define RCC_PLL2CFGR5_DIVVAL_MASK		GENMASK_32(3, 0)
1454 #define RCC_PLL2CFGR5_DIVVAL_SHIFT		0
1455 #define RCC_PLL2CFGR5_SPREAD_MASK		GENMASK_32(20, 16)
1456 #define RCC_PLL2CFGR5_SPREAD_SHIFT		16
1457 
1458 /* RCC_PLL2CFGR6 register fields */
1459 #define RCC_PLL2CFGR6_POSTDIV1_MASK		GENMASK_32(2, 0)
1460 #define RCC_PLL2CFGR6_POSTDIV1_SHIFT		0
1461 
1462 /* RCC_PLL2CFGR7 register fields */
1463 #define RCC_PLL2CFGR7_POSTDIV2_MASK		GENMASK_32(2, 0)
1464 #define RCC_PLL2CFGR7_POSTDIV2_SHIFT		0
1465 
1466 /* RCC_PLL3CFGR1 register fields */
1467 #define RCC_PLL3CFGR1_SSMODRST			BIT(0)
1468 #define RCC_PLL3CFGR1_PLLEN			BIT(8)
1469 #define RCC_PLL3CFGR1_PLLRDY			BIT(24)
1470 #define RCC_PLL3CFGR1_CKREFST			BIT(28)
1471 
1472 /* RCC_PLL3CFGR2 register fields */
1473 #define RCC_PLL3CFGR2_FREFDIV_MASK		GENMASK_32(5, 0)
1474 #define RCC_PLL3CFGR2_FREFDIV_SHIFT		0
1475 #define RCC_PLL3CFGR2_FBDIV_MASK		GENMASK_32(27, 16)
1476 #define RCC_PLL3CFGR2_FBDIV_SHIFT		16
1477 
1478 /* RCC_PLL3CFGR3 register fields */
1479 #define RCC_PLL3CFGR3_FRACIN_MASK		GENMASK_32(23, 0)
1480 #define RCC_PLL3CFGR3_FRACIN_SHIFT		0
1481 #define RCC_PLL3CFGR3_DOWNSPREAD		BIT(24)
1482 #define RCC_PLL3CFGR3_DACEN			BIT(25)
1483 #define RCC_PLL3CFGR3_SSCGDIS			BIT(26)
1484 
1485 /* RCC_PLL3CFGR4 register fields */
1486 #define RCC_PLL3CFGR4_DSMEN			BIT(8)
1487 #define RCC_PLL3CFGR4_FOUTPOSTDIVEN		BIT(9)
1488 #define RCC_PLL3CFGR4_BYPASS			BIT(10)
1489 
1490 /* RCC_PLL3CFGR5 register fields */
1491 #define RCC_PLL3CFGR5_DIVVAL_MASK		GENMASK_32(3, 0)
1492 #define RCC_PLL3CFGR5_DIVVAL_SHIFT		0
1493 #define RCC_PLL3CFGR5_SPREAD_MASK		GENMASK_32(20, 16)
1494 #define RCC_PLL3CFGR5_SPREAD_SHIFT		16
1495 
1496 /* RCC_PLL3CFGR6 register fields */
1497 #define RCC_PLL3CFGR6_POSTDIV1_MASK		GENMASK_32(2, 0)
1498 #define RCC_PLL3CFGR6_POSTDIV1_SHIFT		0
1499 
1500 /* RCC_PLL3CFGR7 register fields */
1501 #define RCC_PLL3CFGR7_POSTDIV2_MASK		GENMASK_32(2, 0)
1502 #define RCC_PLL3CFGR7_POSTDIV2_SHIFT		0
1503 
1504 /* RCC_PLLxCFGR1 register fields */
1505 #define RCC_PLLxCFGR1_SSMODRST			BIT(0)
1506 #define RCC_PLLxCFGR1_PLLEN			BIT(8)
1507 #define RCC_PLLxCFGR1_PLLRDY			BIT(24)
1508 #define RCC_PLLxCFGR1_CKREFST			BIT(28)
1509 
1510 /* RCC_PLLxCFGR2 register fields */
1511 #define RCC_PLLxCFGR2_FREFDIV_MASK		GENMASK_32(5, 0)
1512 #define RCC_PLLxCFGR2_FREFDIV_SHIFT		0
1513 #define RCC_PLLxCFGR2_FBDIV_MASK		GENMASK_32(27, 16)
1514 #define RCC_PLLxCFGR2_FBDIV_SHIFT		16
1515 
1516 /* RCC_PLLxCFGR3 register fields */
1517 #define RCC_PLLxCFGR3_FRACIN_MASK		GENMASK_32(23, 0)
1518 #define RCC_PLLxCFGR3_FRACIN_SHIFT		0
1519 #define RCC_PLLxCFGR3_DOWNSPREAD		BIT(24)
1520 #define RCC_PLLxCFGR3_DACEN			BIT(25)
1521 #define RCC_PLLxCFGR3_SSCGDIS			BIT(26)
1522 
1523 /* RCC_PLLxCFGR4 register fields */
1524 #define RCC_PLLxCFGR4_DSMEN			BIT(8)
1525 #define RCC_PLLxCFGR4_FOUTPOSTDIVEN		BIT(9)
1526 #define RCC_PLLxCFGR4_BYPASS			BIT(10)
1527 
1528 /* RCC_PLLxCFGR5 register fields */
1529 #define RCC_PLLxCFGR5_DIVVAL_MASK		GENMASK_32(3, 0)
1530 #define RCC_PLLxCFGR5_DIVVAL_SHIFT		0
1531 #define RCC_PLLxCFGR5_SPREAD_MASK		GENMASK_32(20, 16)
1532 #define RCC_PLLxCFGR5_SPREAD_SHIFT		16
1533 
1534 /* RCC_PLLxCFGR6 register fields */
1535 #define RCC_PLLxCFGR6_POSTDIV1_MASK		GENMASK_32(2, 0)
1536 #define RCC_PLLxCFGR6_POSTDIV1_SHIFT		0
1537 
1538 /* RCC_PLLxCFGR7 register fields */
1539 #define RCC_PLLxCFGR7_POSTDIV2_MASK		GENMASK_32(2, 0)
1540 #define RCC_PLLxCFGR7_POSTDIV2_SHIFT		0
1541 
1542 /* RCC_HSIFMONCR register fields */
1543 #define RCC_HSIFMONCR_HSIREF_MASK		GENMASK_32(10, 0)
1544 #define RCC_HSIFMONCR_HSIREF_SHIFT		0
1545 #define RCC_HSIFMONCR_HSIMONEN			BIT(15)
1546 #define RCC_HSIFMONCR_HSIDEV_MASK		GENMASK_32(21, 16)
1547 #define RCC_HSIFMONCR_HSIDEV_SHIFT		16
1548 #define RCC_HSIFMONCR_HSIMONIE			BIT(30)
1549 #define RCC_HSIFMONCR_HSIMONF			BIT(31)
1550 
1551 /* RCC_HSIFVALR register fields */
1552 #define RCC_HSIFVALR_HSIVAL_MASK		GENMASK_32(10, 0)
1553 #define RCC_HSIFVALR_HSIVAL_SHIFT		0
1554 
1555 /* RCC_TIM1CFGR register fields */
1556 #define RCC_TIM1CFGR_TIM1RST			BIT(0)
1557 #define RCC_TIM1CFGR_TIM1EN			BIT(1)
1558 #define RCC_TIM1CFGR_TIM1LPEN			BIT(2)
1559 
1560 /* RCC_TIM2CFGR register fields */
1561 #define RCC_TIM2CFGR_TIM2RST			BIT(0)
1562 #define RCC_TIM2CFGR_TIM2EN			BIT(1)
1563 #define RCC_TIM2CFGR_TIM2LPEN			BIT(2)
1564 
1565 /* RCC_TIM3CFGR register fields */
1566 #define RCC_TIM3CFGR_TIM3RST			BIT(0)
1567 #define RCC_TIM3CFGR_TIM3EN			BIT(1)
1568 #define RCC_TIM3CFGR_TIM3LPEN			BIT(2)
1569 
1570 /* RCC_TIM4CFGR register fields */
1571 #define RCC_TIM4CFGR_TIM4RST			BIT(0)
1572 #define RCC_TIM4CFGR_TIM4EN			BIT(1)
1573 #define RCC_TIM4CFGR_TIM4LPEN			BIT(2)
1574 
1575 /* RCC_TIM5CFGR register fields */
1576 #define RCC_TIM5CFGR_TIM5RST			BIT(0)
1577 #define RCC_TIM5CFGR_TIM5EN			BIT(1)
1578 #define RCC_TIM5CFGR_TIM5LPEN			BIT(2)
1579 
1580 /* RCC_TIM6CFGR register fields */
1581 #define RCC_TIM6CFGR_TIM6RST			BIT(0)
1582 #define RCC_TIM6CFGR_TIM6EN			BIT(1)
1583 #define RCC_TIM6CFGR_TIM6LPEN			BIT(2)
1584 
1585 /* RCC_TIM7CFGR register fields */
1586 #define RCC_TIM7CFGR_TIM7RST			BIT(0)
1587 #define RCC_TIM7CFGR_TIM7EN			BIT(1)
1588 #define RCC_TIM7CFGR_TIM7LPEN			BIT(2)
1589 
1590 /* RCC_TIM8CFGR register fields */
1591 #define RCC_TIM8CFGR_TIM8RST			BIT(0)
1592 #define RCC_TIM8CFGR_TIM8EN			BIT(1)
1593 #define RCC_TIM8CFGR_TIM8LPEN			BIT(2)
1594 
1595 /* RCC_TIM10CFGR register fields */
1596 #define RCC_TIM10CFGR_TIM10RST			BIT(0)
1597 #define RCC_TIM10CFGR_TIM10EN			BIT(1)
1598 #define RCC_TIM10CFGR_TIM10LPEN			BIT(2)
1599 
1600 /* RCC_TIM11CFGR register fields */
1601 #define RCC_TIM11CFGR_TIM11RST			BIT(0)
1602 #define RCC_TIM11CFGR_TIM11EN			BIT(1)
1603 #define RCC_TIM11CFGR_TIM11LPEN			BIT(2)
1604 
1605 /* RCC_TIM12CFGR register fields */
1606 #define RCC_TIM12CFGR_TIM12RST			BIT(0)
1607 #define RCC_TIM12CFGR_TIM12EN			BIT(1)
1608 #define RCC_TIM12CFGR_TIM12LPEN			BIT(2)
1609 
1610 /* RCC_TIM13CFGR register fields */
1611 #define RCC_TIM13CFGR_TIM13RST			BIT(0)
1612 #define RCC_TIM13CFGR_TIM13EN			BIT(1)
1613 #define RCC_TIM13CFGR_TIM13LPEN			BIT(2)
1614 
1615 /* RCC_TIM14CFGR register fields */
1616 #define RCC_TIM14CFGR_TIM14RST			BIT(0)
1617 #define RCC_TIM14CFGR_TIM14EN			BIT(1)
1618 #define RCC_TIM14CFGR_TIM14LPEN			BIT(2)
1619 
1620 /* RCC_TIM15CFGR register fields */
1621 #define RCC_TIM15CFGR_TIM15RST			BIT(0)
1622 #define RCC_TIM15CFGR_TIM15EN			BIT(1)
1623 #define RCC_TIM15CFGR_TIM15LPEN			BIT(2)
1624 
1625 /* RCC_TIM16CFGR register fields */
1626 #define RCC_TIM16CFGR_TIM16RST			BIT(0)
1627 #define RCC_TIM16CFGR_TIM16EN			BIT(1)
1628 #define RCC_TIM16CFGR_TIM16LPEN			BIT(2)
1629 
1630 /* RCC_TIM17CFGR register fields */
1631 #define RCC_TIM17CFGR_TIM17RST			BIT(0)
1632 #define RCC_TIM17CFGR_TIM17EN			BIT(1)
1633 #define RCC_TIM17CFGR_TIM17LPEN			BIT(2)
1634 
1635 /* RCC_TIM20CFGR register fields */
1636 #define RCC_TIM20CFGR_TIM20RST			BIT(0)
1637 #define RCC_TIM20CFGR_TIM20EN			BIT(1)
1638 #define RCC_TIM20CFGR_TIM20LPEN			BIT(2)
1639 
1640 /* RCC_LPTIM1CFGR register fields */
1641 #define RCC_LPTIM1CFGR_LPTIM1RST		BIT(0)
1642 #define RCC_LPTIM1CFGR_LPTIM1EN			BIT(1)
1643 #define RCC_LPTIM1CFGR_LPTIM1LPEN		BIT(2)
1644 
1645 /* RCC_LPTIM2CFGR register fields */
1646 #define RCC_LPTIM2CFGR_LPTIM2RST		BIT(0)
1647 #define RCC_LPTIM2CFGR_LPTIM2EN			BIT(1)
1648 #define RCC_LPTIM2CFGR_LPTIM2LPEN		BIT(2)
1649 
1650 /* RCC_LPTIM3CFGR register fields */
1651 #define RCC_LPTIM3CFGR_LPTIM3RST		BIT(0)
1652 #define RCC_LPTIM3CFGR_LPTIM3EN			BIT(1)
1653 #define RCC_LPTIM3CFGR_LPTIM3LPEN		BIT(2)
1654 #define RCC_LPTIM3CFGR_LPTIM3AMEN		BIT(3)
1655 
1656 /* RCC_LPTIM4CFGR register fields */
1657 #define RCC_LPTIM4CFGR_LPTIM4RST		BIT(0)
1658 #define RCC_LPTIM4CFGR_LPTIM4EN			BIT(1)
1659 #define RCC_LPTIM4CFGR_LPTIM4LPEN		BIT(2)
1660 #define RCC_LPTIM4CFGR_LPTIM4AMEN		BIT(3)
1661 
1662 /* RCC_LPTIM5CFGR register fields */
1663 #define RCC_LPTIM5CFGR_LPTIM5RST		BIT(0)
1664 #define RCC_LPTIM5CFGR_LPTIM5EN			BIT(1)
1665 #define RCC_LPTIM5CFGR_LPTIM5LPEN		BIT(2)
1666 #define RCC_LPTIM5CFGR_LPTIM5AMEN		BIT(3)
1667 
1668 /* RCC_LPTIMxCFGR register fields */
1669 #define RCC_LPTIMxCFGR_LPTIMxRST		BIT(0)
1670 #define RCC_LPTIMxCFGR_LPTIMxEN			BIT(1)
1671 #define RCC_LPTIMxCFGR_LPTIMxLPEN		BIT(2)
1672 #define RCC_LPTIMxCFGR_LPTIMxAMEN		BIT(3)
1673 
1674 /* RCC_SPI1CFGR register fields */
1675 #define RCC_SPI1CFGR_SPI1RST			BIT(0)
1676 #define RCC_SPI1CFGR_SPI1EN			BIT(1)
1677 #define RCC_SPI1CFGR_SPI1LPEN			BIT(2)
1678 
1679 /* RCC_SPI2CFGR register fields */
1680 #define RCC_SPI2CFGR_SPI2RST			BIT(0)
1681 #define RCC_SPI2CFGR_SPI2EN			BIT(1)
1682 #define RCC_SPI2CFGR_SPI2LPEN			BIT(2)
1683 
1684 /* RCC_SPI3CFGR register fields */
1685 #define RCC_SPI3CFGR_SPI3RST			BIT(0)
1686 #define RCC_SPI3CFGR_SPI3EN			BIT(1)
1687 #define RCC_SPI3CFGR_SPI3LPEN			BIT(2)
1688 
1689 /* RCC_SPI4CFGR register fields */
1690 #define RCC_SPI4CFGR_SPI4RST			BIT(0)
1691 #define RCC_SPI4CFGR_SPI4EN			BIT(1)
1692 #define RCC_SPI4CFGR_SPI4LPEN			BIT(2)
1693 
1694 /* RCC_SPI5CFGR register fields */
1695 #define RCC_SPI5CFGR_SPI5RST			BIT(0)
1696 #define RCC_SPI5CFGR_SPI5EN			BIT(1)
1697 #define RCC_SPI5CFGR_SPI5LPEN			BIT(2)
1698 
1699 /* RCC_SPI6CFGR register fields */
1700 #define RCC_SPI6CFGR_SPI6RST			BIT(0)
1701 #define RCC_SPI6CFGR_SPI6EN			BIT(1)
1702 #define RCC_SPI6CFGR_SPI6LPEN			BIT(2)
1703 
1704 /* RCC_SPI7CFGR register fields */
1705 #define RCC_SPI7CFGR_SPI7RST			BIT(0)
1706 #define RCC_SPI7CFGR_SPI7EN			BIT(1)
1707 #define RCC_SPI7CFGR_SPI7LPEN			BIT(2)
1708 
1709 /* RCC_SPI8CFGR register fields */
1710 #define RCC_SPI8CFGR_SPI8RST			BIT(0)
1711 #define RCC_SPI8CFGR_SPI8EN			BIT(1)
1712 #define RCC_SPI8CFGR_SPI8LPEN			BIT(2)
1713 #define RCC_SPI8CFGR_SPI8AMEN			BIT(3)
1714 
1715 /* RCC_SPIxCFGR register fields */
1716 #define RCC_SPIxCFGR_SPIxRST			BIT(0)
1717 #define RCC_SPIxCFGR_SPIxEN			BIT(1)
1718 #define RCC_SPIxCFGR_SPIxLPEN			BIT(2)
1719 #define RCC_SPIxCFGR_SPIxAMEN			BIT(3)
1720 
1721 /* RCC_SPDIFRXCFGR register fields */
1722 #define RCC_SPDIFRXCFGR_SPDIFRXRST		BIT(0)
1723 #define RCC_SPDIFRXCFGR_SPDIFRXEN		BIT(1)
1724 #define RCC_SPDIFRXCFGR_SPDIFRXLPEN		BIT(2)
1725 
1726 /* RCC_USART1CFGR register fields */
1727 #define RCC_USART1CFGR_USART1RST		BIT(0)
1728 #define RCC_USART1CFGR_USART1EN			BIT(1)
1729 #define RCC_USART1CFGR_USART1LPEN		BIT(2)
1730 
1731 /* RCC_USART2CFGR register fields */
1732 #define RCC_USART2CFGR_USART2RST		BIT(0)
1733 #define RCC_USART2CFGR_USART2EN			BIT(1)
1734 #define RCC_USART2CFGR_USART2LPEN		BIT(2)
1735 
1736 /* RCC_USART3CFGR register fields */
1737 #define RCC_USART3CFGR_USART3RST		BIT(0)
1738 #define RCC_USART3CFGR_USART3EN			BIT(1)
1739 #define RCC_USART3CFGR_USART3LPEN		BIT(2)
1740 
1741 /* RCC_UART4CFGR register fields */
1742 #define RCC_UART4CFGR_UART4RST			BIT(0)
1743 #define RCC_UART4CFGR_UART4EN			BIT(1)
1744 #define RCC_UART4CFGR_UART4LPEN			BIT(2)
1745 
1746 /* RCC_UART5CFGR register fields */
1747 #define RCC_UART5CFGR_UART5RST			BIT(0)
1748 #define RCC_UART5CFGR_UART5EN			BIT(1)
1749 #define RCC_UART5CFGR_UART5LPEN			BIT(2)
1750 
1751 /* RCC_USART6CFGR register fields */
1752 #define RCC_USART6CFGR_USART6RST		BIT(0)
1753 #define RCC_USART6CFGR_USART6EN			BIT(1)
1754 #define RCC_USART6CFGR_USART6LPEN		BIT(2)
1755 
1756 /* RCC_UART7CFGR register fields */
1757 #define RCC_UART7CFGR_UART7RST			BIT(0)
1758 #define RCC_UART7CFGR_UART7EN			BIT(1)
1759 #define RCC_UART7CFGR_UART7LPEN			BIT(2)
1760 
1761 /* RCC_UART8CFGR register fields */
1762 #define RCC_UART8CFGR_UART8RST			BIT(0)
1763 #define RCC_UART8CFGR_UART8EN			BIT(1)
1764 #define RCC_UART8CFGR_UART8LPEN			BIT(2)
1765 
1766 /* RCC_UART9CFGR register fields */
1767 #define RCC_UART9CFGR_UART9RST			BIT(0)
1768 #define RCC_UART9CFGR_UART9EN			BIT(1)
1769 #define RCC_UART9CFGR_UART9LPEN			BIT(2)
1770 
1771 /* RCC_USARTxCFGR register fields */
1772 #define RCC_USARTxCFGR_USARTxRST		BIT(0)
1773 #define RCC_USARTxCFGR_USARTxEN			BIT(1)
1774 #define RCC_USARTxCFGR_USARTxLPEN		BIT(2)
1775 
1776 /* RCC_UARTxCFGR register fields */
1777 #define RCC_UARTxCFGR_UARTxRST			BIT(0)
1778 #define RCC_UARTxCFGR_UARTxEN			BIT(1)
1779 #define RCC_UARTxCFGR_UARTxLPEN			BIT(2)
1780 
1781 /* RCC_LPUART1CFGR register fields */
1782 #define RCC_LPUART1CFGR_LPUART1RST		BIT(0)
1783 #define RCC_LPUART1CFGR_LPUART1EN		BIT(1)
1784 #define RCC_LPUART1CFGR_LPUART1LPEN		BIT(2)
1785 #define RCC_LPUART1CFGR_LPUART1AMEN		BIT(3)
1786 
1787 /* RCC_I2C1CFGR register fields */
1788 #define RCC_I2C1CFGR_I2C1RST			BIT(0)
1789 #define RCC_I2C1CFGR_I2C1EN			BIT(1)
1790 #define RCC_I2C1CFGR_I2C1LPEN			BIT(2)
1791 
1792 /* RCC_I2C2CFGR register fields */
1793 #define RCC_I2C2CFGR_I2C2RST			BIT(0)
1794 #define RCC_I2C2CFGR_I2C2EN			BIT(1)
1795 #define RCC_I2C2CFGR_I2C2LPEN			BIT(2)
1796 
1797 /* RCC_I2C3CFGR register fields */
1798 #define RCC_I2C3CFGR_I2C3RST			BIT(0)
1799 #define RCC_I2C3CFGR_I2C3EN			BIT(1)
1800 #define RCC_I2C3CFGR_I2C3LPEN			BIT(2)
1801 
1802 /* RCC_I2C4CFGR register fields */
1803 #define RCC_I2C4CFGR_I2C4RST			BIT(0)
1804 #define RCC_I2C4CFGR_I2C4EN			BIT(1)
1805 #define RCC_I2C4CFGR_I2C4LPEN			BIT(2)
1806 
1807 /* RCC_I2C5CFGR register fields */
1808 #define RCC_I2C5CFGR_I2C5RST			BIT(0)
1809 #define RCC_I2C5CFGR_I2C5EN			BIT(1)
1810 #define RCC_I2C5CFGR_I2C5LPEN			BIT(2)
1811 
1812 /* RCC_I2C6CFGR register fields */
1813 #define RCC_I2C6CFGR_I2C6RST			BIT(0)
1814 #define RCC_I2C6CFGR_I2C6EN			BIT(1)
1815 #define RCC_I2C6CFGR_I2C6LPEN			BIT(2)
1816 
1817 /* RCC_I2C7CFGR register fields */
1818 #define RCC_I2C7CFGR_I2C7RST			BIT(0)
1819 #define RCC_I2C7CFGR_I2C7EN			BIT(1)
1820 #define RCC_I2C7CFGR_I2C7LPEN			BIT(2)
1821 
1822 /* RCC_I2C8CFGR register fields */
1823 #define RCC_I2C8CFGR_I2C8RST			BIT(0)
1824 #define RCC_I2C8CFGR_I2C8EN			BIT(1)
1825 #define RCC_I2C8CFGR_I2C8LPEN			BIT(2)
1826 #define RCC_I2C8CFGR_I2C8AMEN			BIT(3)
1827 
1828 /* RCC_I2CxCFGR register fields */
1829 #define RCC_I2CxCFGR_I2CxRST			BIT(0)
1830 #define RCC_I2CxCFGR_I2CxEN			BIT(1)
1831 #define RCC_I2CxCFGR_I2CxLPEN			BIT(2)
1832 #define RCC_I2CxCFGR_I2CxAMEN			BIT(3)
1833 
1834 /* RCC_SAI1CFGR register fields */
1835 #define RCC_SAI1CFGR_SAI1RST			BIT(0)
1836 #define RCC_SAI1CFGR_SAI1EN			BIT(1)
1837 #define RCC_SAI1CFGR_SAI1LPEN			BIT(2)
1838 
1839 /* RCC_SAI2CFGR register fields */
1840 #define RCC_SAI2CFGR_SAI2RST			BIT(0)
1841 #define RCC_SAI2CFGR_SAI2EN			BIT(1)
1842 #define RCC_SAI2CFGR_SAI2LPEN			BIT(2)
1843 
1844 /* RCC_SAI3CFGR register fields */
1845 #define RCC_SAI3CFGR_SAI3RST			BIT(0)
1846 #define RCC_SAI3CFGR_SAI3EN			BIT(1)
1847 #define RCC_SAI3CFGR_SAI3LPEN			BIT(2)
1848 
1849 /* RCC_SAI4CFGR register fields */
1850 #define RCC_SAI4CFGR_SAI4RST			BIT(0)
1851 #define RCC_SAI4CFGR_SAI4EN			BIT(1)
1852 #define RCC_SAI4CFGR_SAI4LPEN			BIT(2)
1853 
1854 /* RCC_SAIxCFGR register fields */
1855 #define RCC_SAIxCFGR_SAIxRST			BIT(0)
1856 #define RCC_SAIxCFGR_SAIxEN			BIT(1)
1857 #define RCC_SAIxCFGR_SAIxLPEN			BIT(2)
1858 
1859 /* RCC_MDF1CFGR register fields */
1860 #define RCC_MDF1CFGR_MDF1RST			BIT(0)
1861 #define RCC_MDF1CFGR_MDF1EN			BIT(1)
1862 #define RCC_MDF1CFGR_MDF1LPEN			BIT(2)
1863 
1864 /* RCC_MDF2CFGR register fields */
1865 #define RCC_MDF2CFGR_MDF2RST			BIT(0)
1866 #define RCC_MDF2CFGR_MDF2EN			BIT(1)
1867 #define RCC_MDF2CFGR_MDF2LPEN			BIT(2)
1868 #define RCC_MDF2CFGR_MDF2AMEN			BIT(3)
1869 
1870 /* RCC_FDCANCFGR register fields */
1871 #define RCC_FDCANCFGR_FDCANRST			BIT(0)
1872 #define RCC_FDCANCFGR_FDCANEN			BIT(1)
1873 #define RCC_FDCANCFGR_FDCANLPEN			BIT(2)
1874 
1875 /* RCC_HDPCFGR register fields */
1876 #define RCC_HDPCFGR_HDPRST			BIT(0)
1877 #define RCC_HDPCFGR_HDPEN			BIT(1)
1878 
1879 /* RCC_ADC12CFGR register fields */
1880 #define RCC_ADC12CFGR_ADC12RST			BIT(0)
1881 #define RCC_ADC12CFGR_ADC12EN			BIT(1)
1882 #define RCC_ADC12CFGR_ADC12LPEN			BIT(2)
1883 #define RCC_ADC12CFGR_ADC12KERSEL		BIT(12)
1884 
1885 /* RCC_ADC3CFGR register fields */
1886 #define RCC_ADC3CFGR_ADC3RST			BIT(0)
1887 #define RCC_ADC3CFGR_ADC3EN			BIT(1)
1888 #define RCC_ADC3CFGR_ADC3LPEN			BIT(2)
1889 #define RCC_ADC3CFGR_ADC3KERSEL_MASK		GENMASK_32(13, 12)
1890 #define RCC_ADC3CFGR_ADC3KERSEL_SHIFT		12
1891 
1892 /* RCC_ETH1CFGR register fields */
1893 #define RCC_ETH1CFGR_ETH1RST			BIT(0)
1894 #define RCC_ETH1CFGR_ETH1MACEN			BIT(1)
1895 #define RCC_ETH1CFGR_ETH1MACLPEN		BIT(2)
1896 #define RCC_ETH1CFGR_ETH1STPEN			BIT(4)
1897 #define RCC_ETH1CFGR_ETH1EN			BIT(5)
1898 #define RCC_ETH1CFGR_ETH1LPEN			BIT(6)
1899 #define RCC_ETH1CFGR_ETH1TXEN			BIT(8)
1900 #define RCC_ETH1CFGR_ETH1TXLPEN			BIT(9)
1901 #define RCC_ETH1CFGR_ETH1RXEN			BIT(10)
1902 #define RCC_ETH1CFGR_ETH1RXLPEN			BIT(11)
1903 
1904 /* RCC_ETH2CFGR register fields */
1905 #define RCC_ETH2CFGR_ETH2RST			BIT(0)
1906 #define RCC_ETH2CFGR_ETH2MACEN			BIT(1)
1907 #define RCC_ETH2CFGR_ETH2MACLPEN		BIT(2)
1908 #define RCC_ETH2CFGR_ETH2STPEN			BIT(4)
1909 #define RCC_ETH2CFGR_ETH2EN			BIT(5)
1910 #define RCC_ETH2CFGR_ETH2LPEN			BIT(6)
1911 #define RCC_ETH2CFGR_ETH2TXEN			BIT(8)
1912 #define RCC_ETH2CFGR_ETH2TXLPEN			BIT(9)
1913 #define RCC_ETH2CFGR_ETH2RXEN			BIT(10)
1914 #define RCC_ETH2CFGR_ETH2RXLPEN			BIT(11)
1915 
1916 /* RCC_ETHxCFGR register fields */
1917 #define RCC_ETHxCFGR_ETHxRST			BIT(0)
1918 #define RCC_ETHxCFGR_ETHxMACEN			BIT(1)
1919 #define RCC_ETHxCFGR_ETHxMACLPEN		BIT(2)
1920 #define RCC_ETHxCFGR_ETHxSTPEN			BIT(4)
1921 #define RCC_ETHxCFGR_ETHxEN			BIT(5)
1922 #define RCC_ETHxCFGR_ETHxLPEN			BIT(6)
1923 #define RCC_ETHxCFGR_ETHxTXEN			BIT(8)
1924 #define RCC_ETHxCFGR_ETHxTXLPEN			BIT(9)
1925 #define RCC_ETHxCFGR_ETHxRXEN			BIT(10)
1926 #define RCC_ETHxCFGR_ETHxRXLPEN			BIT(11)
1927 
1928 /* RCC_USB2CFGR register fields */
1929 #define RCC_USB2CFGR_USB2RST			BIT(0)
1930 #define RCC_USB2CFGR_USB2EN			BIT(1)
1931 #define RCC_USB2CFGR_USB2LPEN			BIT(2)
1932 #define RCC_USB2CFGR_USB2STPEN			BIT(4)
1933 
1934 /* RCC_USB2PHY1CFGR register fields */
1935 #define RCC_USB2PHY1CFGR_USB2PHY1RST		BIT(0)
1936 #define RCC_USB2PHY1CFGR_USB2PHY1EN		BIT(1)
1937 #define RCC_USB2PHY1CFGR_USB2PHY1LPEN		BIT(2)
1938 #define RCC_USB2PHY1CFGR_USB2PHY1STPEN		BIT(4)
1939 #define RCC_USB2PHY1CFGR_USB2PHY1CKREFSEL	BIT(15)
1940 
1941 /* RCC_USB2PHY2CFGR register fields */
1942 #define RCC_USB2PHY2CFGR_USB2PHY2RST		BIT(0)
1943 #define RCC_USB2PHY2CFGR_USB2PHY2EN		BIT(1)
1944 #define RCC_USB2PHY2CFGR_USB2PHY2LPEN		BIT(2)
1945 #define RCC_USB2PHY2CFGR_USB2PHY2STPEN		BIT(4)
1946 #define RCC_USB2PHY2CFGR_USB2PHY2CKREFSEL	BIT(15)
1947 
1948 /* RCC_USB2PHYxCFGR register fields */
1949 #define RCC_USB2PHYxCFGR_USB2PHY1RST		BIT(0)
1950 #define RCC_USB2PHYxCFGR_USB2PHY1EN		BIT(1)
1951 #define RCC_USB2PHYxCFGR_USB2PHY1LPEN		BIT(2)
1952 #define RCC_USB2PHYxCFGR_USB2PHY1STPEN		BIT(4)
1953 #define RCC_USB2PHYxCFGR_USB2PHY1CKREFSEL	BIT(15)
1954 
1955 /* RCC_USB3DRCFGR register fields */
1956 #define RCC_USB3DRCFGR_USB3DRRST		BIT(0)
1957 #define RCC_USB3DRCFGR_USB3DREN			BIT(1)
1958 #define RCC_USB3DRCFGR_USB3DRLPEN		BIT(2)
1959 #define RCC_USB3DRCFGR_USB3DRSTPEN		BIT(4)
1960 
1961 /* RCC_USB3PCIEPHYCFGR register fields */
1962 #define RCC_USB3PCIEPHYCFGR_USB3PCIEPHYRST	BIT(0)
1963 #define RCC_USB3PCIEPHYCFGR_USB3PCIEPHYEN	BIT(1)
1964 #define RCC_USB3PCIEPHYCFGR_USB3PCIEPHYLPEN	BIT(2)
1965 #define RCC_USB3PCIEPHYCFGR_USB3PCIEPHYSTPEN	BIT(4)
1966 #define RCC_USB3PCIEPHYCFGR_USB3PCIEPHYCKREFSEL	BIT(15)
1967 
1968 /* RCC_PCIECFGR register fields */
1969 #define RCC_PCIECFGR_PCIERST			BIT(0)
1970 #define RCC_PCIECFGR_PCIEEN			BIT(1)
1971 #define RCC_PCIECFGR_PCIELPEN			BIT(2)
1972 #define RCC_PCIECFGR_PCIESTPEN			BIT(4)
1973 
1974 /* RCC_USBTCCFGR register fields */
1975 #define RCC_USBTCCFGR_USBTCRST			BIT(0)
1976 #define RCC_USBTCCFGR_USBTCEN			BIT(1)
1977 #define RCC_USBTCCFGR_USBTCLPEN			BIT(2)
1978 
1979 /* RCC_ETHSWCFGR register fields */
1980 #define RCC_ETHSWCFGR_ETHSWRST			BIT(0)
1981 #define RCC_ETHSWCFGR_ETHSWMACEN		BIT(1)
1982 #define RCC_ETHSWCFGR_ETHSWMACLPEN		BIT(2)
1983 #define RCC_ETHSWCFGR_ETHSWEN			BIT(5)
1984 #define RCC_ETHSWCFGR_ETHSWLPEN			BIT(6)
1985 #define RCC_ETHSWCFGR_ETHSWREFEN		BIT(21)
1986 #define RCC_ETHSWCFGR_ETHSWREFLPEN		BIT(22)
1987 
1988 /* RCC_ETHSWACMCFGR register fields */
1989 #define RCC_ETHSWACMCFGR_ETHSWACMEN		BIT(1)
1990 #define RCC_ETHSWACMCFGR_ETHSWACMLPEN		BIT(2)
1991 
1992 /* RCC_ETHSWACMMSGCFGR register fields */
1993 #define RCC_ETHSWACMMSGCFGR_ETHSWACMMSGEN	BIT(1)
1994 #define RCC_ETHSWACMMSGCFGR_ETHSWACMMSGLPEN	BIT(2)
1995 
1996 /* RCC_STGENCFGR register fields */
1997 #define RCC_STGENCFGR_STGENEN			BIT(1)
1998 #define RCC_STGENCFGR_STGENLPEN			BIT(2)
1999 #define RCC_STGENCFGR_STGENSTPEN		BIT(4)
2000 
2001 /* RCC_SDMMC1CFGR register fields */
2002 #define RCC_SDMMC1CFGR_SDMMC1RST		BIT(0)
2003 #define RCC_SDMMC1CFGR_SDMMC1EN			BIT(1)
2004 #define RCC_SDMMC1CFGR_SDMMC1LPEN		BIT(2)
2005 #define RCC_SDMMC1CFGR_SDMMC1DLLRST		BIT(16)
2006 
2007 /* RCC_SDMMC2CFGR register fields */
2008 #define RCC_SDMMC2CFGR_SDMMC2RST		BIT(0)
2009 #define RCC_SDMMC2CFGR_SDMMC2EN			BIT(1)
2010 #define RCC_SDMMC2CFGR_SDMMC2LPEN		BIT(2)
2011 #define RCC_SDMMC2CFGR_SDMMC2DLLRST		BIT(16)
2012 
2013 /* RCC_SDMMC3CFGR register fields */
2014 #define RCC_SDMMC3CFGR_SDMMC3RST		BIT(0)
2015 #define RCC_SDMMC3CFGR_SDMMC3EN			BIT(1)
2016 #define RCC_SDMMC3CFGR_SDMMC3LPEN		BIT(2)
2017 #define RCC_SDMMC3CFGR_SDMMC3DLLRST		BIT(16)
2018 
2019 /* RCC_SDMMCxCFGR register fields */
2020 #define RCC_SDMMCxCFGR_SDMMC1RST		BIT(0)
2021 #define RCC_SDMMCxCFGR_SDMMC1EN			BIT(1)
2022 #define RCC_SDMMCxCFGR_SDMMC1LPEN		BIT(2)
2023 #define RCC_SDMMCxCFGR_SDMMC1DLLRST		BIT(16)
2024 
2025 /* RCC_GPUCFGR register fields */
2026 #define RCC_GPUCFGR_GPURST			BIT(0)
2027 #define RCC_GPUCFGR_GPUEN			BIT(1)
2028 #define RCC_GPUCFGR_GPULPEN			BIT(2)
2029 
2030 /* RCC_LTDCCFGR register fields */
2031 #define RCC_LTDCCFGR_LTDCRST			BIT(0)
2032 #define RCC_LTDCCFGR_LTDCEN			BIT(1)
2033 #define RCC_LTDCCFGR_LTDCLPEN			BIT(2)
2034 
2035 /* RCC_DSICFGR register fields */
2036 #define RCC_DSICFGR_DSIRST			BIT(0)
2037 #define RCC_DSICFGR_DSIEN			BIT(1)
2038 #define RCC_DSICFGR_DSILPEN			BIT(2)
2039 #define RCC_DSICFGR_DSIBLSEL			BIT(12)
2040 #define RCC_DSICFGR_DSIPHYCKREFSEL		BIT(15)
2041 
2042 /* RCC_LVDSCFGR register fields */
2043 #define RCC_LVDSCFGR_LVDSRST			BIT(0)
2044 #define RCC_LVDSCFGR_LVDSEN			BIT(1)
2045 #define RCC_LVDSCFGR_LVDSLPEN			BIT(2)
2046 #define RCC_LVDSCFGR_LVDSPHYCKREFSEL		BIT(15)
2047 
2048 /* RCC_CSICFGR register fields */
2049 #define RCC_CSICFGR_CSIRST			BIT(0)
2050 #define RCC_CSICFGR_CSIEN			BIT(1)
2051 #define RCC_CSICFGR_CSILPEN			BIT(2)
2052 
2053 /* RCC_DCMIPPCFGR register fields */
2054 #define RCC_DCMIPPCFGR_DCMIPPRST		BIT(0)
2055 #define RCC_DCMIPPCFGR_DCMIPPEN			BIT(1)
2056 #define RCC_DCMIPPCFGR_DCMIPPLPEN		BIT(2)
2057 
2058 /* RCC_CCICFGR register fields */
2059 #define RCC_CCICFGR_CCIRST			BIT(0)
2060 #define RCC_CCICFGR_CCIEN			BIT(1)
2061 #define RCC_CCICFGR_CCILPEN			BIT(2)
2062 
2063 /* RCC_VDECCFGR register fields */
2064 #define RCC_VDECCFGR_VDECRST			BIT(0)
2065 #define RCC_VDECCFGR_VDECEN			BIT(1)
2066 #define RCC_VDECCFGR_VDECLPEN			BIT(2)
2067 
2068 /* RCC_VENCCFGR register fields */
2069 #define RCC_VENCCFGR_VENCRST			BIT(0)
2070 #define RCC_VENCCFGR_VENCEN			BIT(1)
2071 #define RCC_VENCCFGR_VENCLPEN			BIT(2)
2072 
2073 /* RCC_RNGCFGR register fields */
2074 #define RCC_RNGCFGR_RNGRST			BIT(0)
2075 #define RCC_RNGCFGR_RNGEN			BIT(1)
2076 #define RCC_RNGCFGR_RNGLPEN			BIT(2)
2077 
2078 /* RCC_PKACFGR register fields */
2079 #define RCC_PKACFGR_PKARST			BIT(0)
2080 #define RCC_PKACFGR_PKAEN			BIT(1)
2081 #define RCC_PKACFGR_PKALPEN			BIT(2)
2082 
2083 /* RCC_SAESCFGR register fields */
2084 #define RCC_SAESCFGR_SAESRST			BIT(0)
2085 #define RCC_SAESCFGR_SAESEN			BIT(1)
2086 #define RCC_SAESCFGR_SAESLPEN			BIT(2)
2087 
2088 /* RCC_HASHCFGR register fields */
2089 #define RCC_HASHCFGR_HASHRST			BIT(0)
2090 #define RCC_HASHCFGR_HASHEN			BIT(1)
2091 #define RCC_HASHCFGR_HASHLPEN			BIT(2)
2092 
2093 /* RCC_CRYP1CFGR register fields */
2094 #define RCC_CRYP1CFGR_CRYP1RST			BIT(0)
2095 #define RCC_CRYP1CFGR_CRYP1EN			BIT(1)
2096 #define RCC_CRYP1CFGR_CRYP1LPEN			BIT(2)
2097 
2098 /* RCC_CRYP2CFGR register fields */
2099 #define RCC_CRYP2CFGR_CRYP2RST			BIT(0)
2100 #define RCC_CRYP2CFGR_CRYP2EN			BIT(1)
2101 #define RCC_CRYP2CFGR_CRYP2LPEN			BIT(2)
2102 
2103 /* RCC_CRYPxCFGR register fields */
2104 #define RCC_CRYPxCFGR_CRYPxRST			BIT(0)
2105 #define RCC_CRYPxCFGR_CRYPxEN			BIT(1)
2106 #define RCC_CRYPxCFGR_CRYPxLPEN			BIT(2)
2107 
2108 /* RCC_IWDG1CFGR register fields */
2109 #define RCC_IWDG1CFGR_IWDG1EN			BIT(1)
2110 #define RCC_IWDG1CFGR_IWDG1LPEN			BIT(2)
2111 
2112 /* RCC_IWDG2CFGR register fields */
2113 #define RCC_IWDG2CFGR_IWDG2EN			BIT(1)
2114 #define RCC_IWDG2CFGR_IWDG2LPEN			BIT(2)
2115 
2116 /* RCC_IWDG3CFGR register fields */
2117 #define RCC_IWDG3CFGR_IWDG3EN			BIT(1)
2118 #define RCC_IWDG3CFGR_IWDG3LPEN			BIT(2)
2119 
2120 /* RCC_IWDG4CFGR register fields */
2121 #define RCC_IWDG4CFGR_IWDG4EN			BIT(1)
2122 #define RCC_IWDG4CFGR_IWDG4LPEN			BIT(2)
2123 
2124 /* RCC_IWDGxCFGR register fields */
2125 #define RCC_IWDGxCFGR_IWDGxEN			BIT(1)
2126 #define RCC_IWDGxCFGR_IWDGxLPEN			BIT(2)
2127 
2128 /* RCC_IWDG5CFGR register fields */
2129 #define RCC_IWDG5CFGR_IWDG5EN			BIT(1)
2130 #define RCC_IWDG5CFGR_IWDG5LPEN			BIT(2)
2131 #define RCC_IWDG5CFGR_IWDG5AMEN			BIT(3)
2132 
2133 /* RCC_WWDG1CFGR register fields */
2134 #define RCC_WWDG1CFGR_WWDG1RST			BIT(0)
2135 #define RCC_WWDG1CFGR_WWDG1EN			BIT(1)
2136 #define RCC_WWDG1CFGR_WWDG1LPEN			BIT(2)
2137 
2138 /* RCC_WWDG2CFGR register fields */
2139 #define RCC_WWDG2CFGR_WWDG2RST			BIT(0)
2140 #define RCC_WWDG2CFGR_WWDG2EN			BIT(1)
2141 #define RCC_WWDG2CFGR_WWDG2LPEN			BIT(2)
2142 #define RCC_WWDG2CFGR_WWDG2AMEN			BIT(3)
2143 
2144 /* RCC_VREFCFGR register fields */
2145 #define RCC_VREFCFGR_VREFRST			BIT(0)
2146 #define RCC_VREFCFGR_VREFEN			BIT(1)
2147 #define RCC_VREFCFGR_VREFLPEN			BIT(2)
2148 
2149 /* RCC_DTSCFGR register fields */
2150 #define RCC_DTSCFGR_DTSRST			BIT(0)
2151 #define RCC_DTSCFGR_DTSEN			BIT(1)
2152 #define RCC_DTSCFGR_DTSLPEN			BIT(2)
2153 #define RCC_DTSCFGR_DTSKERSEL_MASK		GENMASK_32(13, 12)
2154 #define RCC_DTSCFGR_DTSKERSEL_SHIFT		12
2155 
2156 /* RCC_CRCCFGR register fields */
2157 #define RCC_CRCCFGR_CRCRST			BIT(0)
2158 #define RCC_CRCCFGR_CRCEN			BIT(1)
2159 #define RCC_CRCCFGR_CRCLPEN			BIT(2)
2160 
2161 /* RCC_SERCCFGR register fields */
2162 #define RCC_SERCCFGR_SERCRST			BIT(0)
2163 #define RCC_SERCCFGR_SERCEN			BIT(1)
2164 #define RCC_SERCCFGR_SERCLPEN			BIT(2)
2165 
2166 /* RCC_OSPIIOMCFGR register fields */
2167 #define RCC_OSPIIOMCFGR_OSPIIOMRST		BIT(0)
2168 #define RCC_OSPIIOMCFGR_OSPIIOMEN		BIT(1)
2169 #define RCC_OSPIIOMCFGR_OSPIIOMLPEN		BIT(2)
2170 
2171 /* RCC_GICV2MCFGR register fields */
2172 #define RCC_GICV2MCFGR_GICV2MEN			BIT(1)
2173 #define RCC_GICV2MCFGR_GICV2MLPEN		BIT(2)
2174 
2175 /* RCC_I3C1CFGR register fields */
2176 #define RCC_I3C1CFGR_I3C1RST			BIT(0)
2177 #define RCC_I3C1CFGR_I3C1EN			BIT(1)
2178 #define RCC_I3C1CFGR_I3C1LPEN			BIT(2)
2179 
2180 /* RCC_I3C2CFGR register fields */
2181 #define RCC_I3C2CFGR_I3C2RST			BIT(0)
2182 #define RCC_I3C2CFGR_I3C2EN			BIT(1)
2183 #define RCC_I3C2CFGR_I3C2LPEN			BIT(2)
2184 
2185 /* RCC_I3C3CFGR register fields */
2186 #define RCC_I3C3CFGR_I3C3RST			BIT(0)
2187 #define RCC_I3C3CFGR_I3C3EN			BIT(1)
2188 #define RCC_I3C3CFGR_I3C3LPEN			BIT(2)
2189 
2190 /* RCC_I3C4CFGR register fields */
2191 #define RCC_I3C4CFGR_I3C4RST			BIT(0)
2192 #define RCC_I3C4CFGR_I3C4EN			BIT(1)
2193 #define RCC_I3C4CFGR_I3C4LPEN			BIT(2)
2194 #define RCC_I3C4CFGR_I3C4AMEN			BIT(3)
2195 
2196 /* RCC_I3CxCFGR register fields */
2197 #define RCC_I3CxCFGR_I3CxRST			BIT(0)
2198 #define RCC_I3CxCFGR_I3CxEN			BIT(1)
2199 #define RCC_I3CxCFGR_I3CxLPEN			BIT(2)
2200 #define RCC_I3CxCFGR_I3CxAMEN			BIT(3)
2201 
2202 /* RCC_MUXSELCFGR register fields */
2203 #define RCC_MUXSELCFGR_MUXSEL0_MASK		GENMASK_32(1, 0)
2204 #define RCC_MUXSELCFGR_MUXSEL0_SHIFT		0
2205 #define RCC_MUXSELCFGR_MUXSEL1_MASK		GENMASK_32(5, 4)
2206 #define RCC_MUXSELCFGR_MUXSEL1_SHIFT		4
2207 #define RCC_MUXSELCFGR_MUXSEL2_MASK		GENMASK_32(9, 8)
2208 #define RCC_MUXSELCFGR_MUXSEL2_SHIFT		8
2209 #define RCC_MUXSELCFGR_MUXSEL3_MASK		GENMASK_32(13, 12)
2210 #define RCC_MUXSELCFGR_MUXSEL3_SHIFT		12
2211 #define RCC_MUXSELCFGR_MUXSEL4_MASK		GENMASK_32(17, 16)
2212 #define RCC_MUXSELCFGR_MUXSEL4_SHIFT		16
2213 #define RCC_MUXSELCFGR_MUXSEL5_MASK		GENMASK_32(21, 20)
2214 #define RCC_MUXSELCFGR_MUXSEL5_SHIFT		20
2215 #define RCC_MUXSELCFGR_MUXSEL6_MASK		GENMASK_32(25, 24)
2216 #define RCC_MUXSELCFGR_MUXSEL6_SHIFT		24
2217 #define RCC_MUXSELCFGR_MUXSEL7_MASK		GENMASK_32(29, 28)
2218 #define RCC_MUXSELCFGR_MUXSEL7_SHIFT		28
2219 
2220 /* RCC_XBAR0CFGR register fields */
2221 #define RCC_XBAR0CFGR_XBAR0SEL_MASK		GENMASK_32(3, 0)
2222 #define RCC_XBAR0CFGR_XBAR0SEL_SHIFT		0
2223 #define RCC_XBAR0CFGR_XBAR0EN			BIT(6)
2224 #define RCC_XBAR0CFGR_XBAR0STS			BIT(7)
2225 
2226 /* RCC_PREDIVCFGR register fields */
2227 #define RCC_PREDIV0CFGR_PREDIV0_MASK		GENMASK_32(9, 0)
2228 #define RCC_PREDIV0CFGR_PREDIV0_SHIFT		0
2229 
2230 /* RCC_FINDIVxCFGR register fields */
2231 #define RCC_FINDIV0CFGR_FINDIV0_MASK		GENMASK_32(5, 0)
2232 #define RCC_FINDIV0CFGR_FINDIV0_SHIFT		0
2233 #define RCC_FINDIV0CFGR_FINDIV0EN		BIT(6)
2234 
2235 /* RCC_FINDIV0CFGR register fields */
2236 #define RCC_FINDIV0CFGR_FINDIV0_MASK		GENMASK_32(5, 0)
2237 #define RCC_FINDIV0CFGR_FINDIV0_SHIFT		0
2238 #define RCC_FINDIV0CFGR_FINDIV0EN		BIT(6)
2239 
2240 /* RCC_PREDIVSR1 register fields */
2241 #define RCC_PREDIVSR1_PREDIVSTS_MASK		GENMASK_32(31, 0)
2242 
2243 /* RCC_PREDIVSR2 register fields */
2244 #define RCC_PREDIVSR2_PREDIVSTS_MASK		GENMASK_32(31, 0)
2245 
2246 /* RCC_FINDIVSR1 register fields */
2247 #define RCC_FINDIVSR1_FINDIVSTS_MASK		GENMASK_32(31, 0)
2248 
2249 /* RCC_FINDIVSR2 register fields */
2250 #define RCC_FINDIVSR2_FINDIVSTS_MASK		GENMASK_32(31, 0)
2251 
2252 /* RCC_FCALCOBS0CFGR register fields */
2253 #define RCC_FCALCOBS0CFGR_CKINTSEL_MASK		GENMASK_32(7, 0)
2254 #define RCC_FCALCOBS0CFGR_CKINTSEL_SHIFT	0
2255 #define RCC_FCALCOBS0CFGR_CKEXTSEL_MASK		GENMASK_32(10, 8)
2256 #define RCC_FCALCOBS0CFGR_CKEXTSEL_SHIFT	8
2257 #define RCC_FCALCOBS0CFGR_FCALCCKEXTSEL		BIT(15)
2258 #define RCC_FCALCOBS0CFGR_CKOBSEXTSEL		BIT(16)
2259 #define RCC_FCALCOBS0CFGR_FCALCCKINV		BIT(17)
2260 #define RCC_FCALCOBS0CFGR_CKOBSINV		BIT(18)
2261 #define RCC_FCALCOBS0CFGR_CKOBSDIV_MASK		GENMASK_32(24, 22)
2262 #define RCC_FCALCOBS0CFGR_CKOBSDIV_SHIFT	22
2263 #define RCC_FCALCOBS0CFGR_FCALCCKEN		BIT(25)
2264 #define RCC_FCALCOBS0CFGR_CKOBSEN		BIT(26)
2265 
2266 /* RCC_FCALCOBS1CFGR register fields */
2267 #define RCC_FCALCOBS1CFGR_CKINTSEL_MASK		GENMASK_32(7, 0)
2268 #define RCC_FCALCOBS1CFGR_CKINTSEL_SHIFT	0
2269 #define RCC_FCALCOBS1CFGR_CKEXTSEL_MASK		GENMASK_32(10, 8)
2270 #define RCC_FCALCOBS1CFGR_CKEXTSEL_SHIFT	8
2271 #define RCC_FCALCOBS1CFGR_CKOBSEXTSEL		BIT(16)
2272 #define RCC_FCALCOBS1CFGR_CKOBSINV		BIT(18)
2273 #define RCC_FCALCOBS1CFGR_CKOBSDIV_MASK		GENMASK_32(24, 22)
2274 #define RCC_FCALCOBS1CFGR_CKOBSDIV_SHIFT	22
2275 #define RCC_FCALCOBS1CFGR_CKOBSEN		BIT(26)
2276 #define RCC_FCALCOBS1CFGR_FCALCRSTN		BIT(27)
2277 
2278 /* RCC_FCALCREFCFGR register fields */
2279 #define RCC_FCALCREFCFGR_FCALCREFCKSEL_MASK	GENMASK_32(2, 0)
2280 #define RCC_FCALCREFCFGR_FCALCREFCKSEL_SHIFT	0
2281 
2282 /* RCC_FCALCCR1 register fields */
2283 #define RCC_FCALCCR1_FCALCRUN			BIT(0)
2284 
2285 /* RCC_FCALCCR2 register fields */
2286 #define RCC_FCALCCR2_FCALCMD_MASK		GENMASK_32(4, 3)
2287 #define RCC_FCALCCR2_FCALCMD_SHIFT		3
2288 #define RCC_FCALCCR2_FCALCTWC_MASK		GENMASK_32(14, 11)
2289 #define RCC_FCALCCR2_FCALCTWC_SHIFT		11
2290 #define RCC_FCALCCR2_FCALCTYP_MASK		GENMASK_32(21, 17)
2291 #define RCC_FCALCCR2_FCALCTYP_SHIFT		17
2292 
2293 /* RCC_FCALCSR register fields */
2294 #define RCC_FCALCSR_FVAL_MASK			GENMASK_32(15, 0)
2295 #define RCC_FCALCSR_FVAL_SHIFT			0
2296 #define RCC_FCALCSR_FCALCSTS			BIT(19)
2297 #define RCC_FCALCSR_FVAL_OVERFLOW		BIT(16)
2298 
2299 /* RCC_VERR register fields */
2300 #define RCC_VERR_MINREV_MASK			GENMASK_32(3, 0)
2301 #define RCC_VERR_MINREV_SHIFT			0
2302 #define RCC_VERR_MAJREV_MASK			GENMASK_32(7, 4)
2303 #define RCC_VERR_MAJREV_SHIFT			4
2304 
2305 #endif /* __DRIVERS_STM32MP25_RCC_H */
2306