xref: /optee_os/core/include/drivers/stm32mp13_rcc.h (revision e5e793a6f1c758c7b43b576fa288127867bd7de1)
1*e5e793a6SGabriel Fernandez /* SPDX-License-Identifier: BSD-3-Clause */
2*e5e793a6SGabriel Fernandez /*
3*e5e793a6SGabriel Fernandez  * Copyright (c) 2021, STMicroelectronics - All Rights Reserved
4*e5e793a6SGabriel Fernandez  */
5*e5e793a6SGabriel Fernandez 
6*e5e793a6SGabriel Fernandez #ifndef __DRIVERS_STM32MP13_RCC_H__
7*e5e793a6SGabriel Fernandez #define __DRIVERS_STM32MP13_RCC_H__
8*e5e793a6SGabriel Fernandez 
9*e5e793a6SGabriel Fernandez #include <types_ext.h>
10*e5e793a6SGabriel Fernandez 
11*e5e793a6SGabriel Fernandez #define RCC_SECCFGR				U(0x0)
12*e5e793a6SGabriel Fernandez #define RCC_MP_SREQSETR				U(0x100)
13*e5e793a6SGabriel Fernandez #define RCC_MP_SREQCLRR				U(0x104)
14*e5e793a6SGabriel Fernandez #define RCC_MP_APRSTCR				U(0x108)
15*e5e793a6SGabriel Fernandez #define RCC_MP_APRSTSR				U(0x10C)
16*e5e793a6SGabriel Fernandez #define RCC_PWRLPDLYCR				U(0x110)
17*e5e793a6SGabriel Fernandez #define RCC_MP_GRSTCSETR			U(0x114)
18*e5e793a6SGabriel Fernandez #define RCC_BR_RSTSCLRR				U(0x118)
19*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSSETR				U(0x11C)
20*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSCLRR				U(0x120)
21*e5e793a6SGabriel Fernandez #define RCC_MP_IWDGFZSETR			U(0x124)
22*e5e793a6SGabriel Fernandez #define RCC_MP_IWDGFZCLRR			U(0x128)
23*e5e793a6SGabriel Fernandez #define RCC_MP_CIER				U(0x200)
24*e5e793a6SGabriel Fernandez #define RCC_MP_CIFR				U(0x204)
25*e5e793a6SGabriel Fernandez #define RCC_BDCR				U(0x400)
26*e5e793a6SGabriel Fernandez #define RCC_RDLSICR				U(0x404)
27*e5e793a6SGabriel Fernandez #define RCC_OCENSETR				U(0x420)
28*e5e793a6SGabriel Fernandez #define RCC_OCENCLRR				U(0x424)
29*e5e793a6SGabriel Fernandez #define RCC_OCRDYR				U(0x428)
30*e5e793a6SGabriel Fernandez #define RCC_HSICFGR				U(0x440)
31*e5e793a6SGabriel Fernandez #define RCC_CSICFGR				U(0x444)
32*e5e793a6SGabriel Fernandez #define RCC_MCO1CFGR				U(0x460)
33*e5e793a6SGabriel Fernandez #define RCC_MCO2CFGR				U(0x464)
34*e5e793a6SGabriel Fernandez #define RCC_DBGCFGR				U(0x468)
35*e5e793a6SGabriel Fernandez #define RCC_RCK12SELR				U(0x480)
36*e5e793a6SGabriel Fernandez #define RCC_RCK3SELR				U(0x484)
37*e5e793a6SGabriel Fernandez #define RCC_RCK4SELR				U(0x488)
38*e5e793a6SGabriel Fernandez #define RCC_PLL1CR				U(0x4A0)
39*e5e793a6SGabriel Fernandez #define RCC_PLL1CFGR1				U(0x4A4)
40*e5e793a6SGabriel Fernandez #define RCC_PLL1CFGR2				U(0x4A8)
41*e5e793a6SGabriel Fernandez #define RCC_PLL1FRACR				U(0x4AC)
42*e5e793a6SGabriel Fernandez #define RCC_PLL1CSGR				U(0x4B0)
43*e5e793a6SGabriel Fernandez #define RCC_PLL2CR				U(0x4D0)
44*e5e793a6SGabriel Fernandez #define RCC_PLL2CFGR1				U(0x4D4)
45*e5e793a6SGabriel Fernandez #define RCC_PLL2CFGR2				U(0x4D8)
46*e5e793a6SGabriel Fernandez #define RCC_PLL2FRACR				U(0x4DC)
47*e5e793a6SGabriel Fernandez #define RCC_PLL2CSGR				U(0x4E0)
48*e5e793a6SGabriel Fernandez #define RCC_PLL3CR				U(0x500)
49*e5e793a6SGabriel Fernandez #define RCC_PLL3CFGR1				U(0x504)
50*e5e793a6SGabriel Fernandez #define RCC_PLL3CFGR2				U(0x508)
51*e5e793a6SGabriel Fernandez #define RCC_PLL3FRACR				U(0x50C)
52*e5e793a6SGabriel Fernandez #define RCC_PLL3CSGR				U(0x510)
53*e5e793a6SGabriel Fernandez #define RCC_PLL4CR				U(0x520)
54*e5e793a6SGabriel Fernandez #define RCC_PLL4CFGR1				U(0x524)
55*e5e793a6SGabriel Fernandez #define RCC_PLL4CFGR2				U(0x528)
56*e5e793a6SGabriel Fernandez #define RCC_PLL4FRACR				U(0x52C)
57*e5e793a6SGabriel Fernandez #define RCC_PLL4CSGR				U(0x530)
58*e5e793a6SGabriel Fernandez #define RCC_MPCKSELR				U(0x540)
59*e5e793a6SGabriel Fernandez #define RCC_ASSCKSELR				U(0x544)
60*e5e793a6SGabriel Fernandez #define RCC_MSSCKSELR				U(0x548)
61*e5e793a6SGabriel Fernandez #define RCC_CPERCKSELR				U(0x54C)
62*e5e793a6SGabriel Fernandez #define RCC_RTCDIVR				U(0x560)
63*e5e793a6SGabriel Fernandez #define RCC_MPCKDIVR				U(0x564)
64*e5e793a6SGabriel Fernandez #define RCC_AXIDIVR				U(0x568)
65*e5e793a6SGabriel Fernandez #define RCC_MLAHBDIVR				U(0x56C)
66*e5e793a6SGabriel Fernandez #define RCC_APB1DIVR				U(0x570)
67*e5e793a6SGabriel Fernandez #define RCC_APB2DIVR				U(0x574)
68*e5e793a6SGabriel Fernandez #define RCC_APB3DIVR				U(0x578)
69*e5e793a6SGabriel Fernandez #define RCC_APB4DIVR				U(0x57C)
70*e5e793a6SGabriel Fernandez #define RCC_APB5DIVR				U(0x580)
71*e5e793a6SGabriel Fernandez #define RCC_APB6DIVR				U(0x584)
72*e5e793a6SGabriel Fernandez #define RCC_TIMG1PRER				U(0x5A0)
73*e5e793a6SGabriel Fernandez #define RCC_TIMG2PRER				U(0x5A4)
74*e5e793a6SGabriel Fernandez #define RCC_TIMG3PRER				U(0x5A8)
75*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR				U(0x5C0)
76*e5e793a6SGabriel Fernandez #define RCC_I2C12CKSELR				U(0x600)
77*e5e793a6SGabriel Fernandez #define RCC_I2C345CKSELR			U(0x604)
78*e5e793a6SGabriel Fernandez #define RCC_SPI2S1CKSELR			U(0x608)
79*e5e793a6SGabriel Fernandez #define RCC_SPI2S23CKSELR			U(0x60C)
80*e5e793a6SGabriel Fernandez #define RCC_SPI45CKSELR				U(0x610)
81*e5e793a6SGabriel Fernandez #define RCC_UART12CKSELR			U(0x614)
82*e5e793a6SGabriel Fernandez #define RCC_UART35CKSELR			U(0x618)
83*e5e793a6SGabriel Fernandez #define RCC_UART4CKSELR				U(0x61C)
84*e5e793a6SGabriel Fernandez #define RCC_UART6CKSELR				U(0x620)
85*e5e793a6SGabriel Fernandez #define RCC_UART78CKSELR			U(0x624)
86*e5e793a6SGabriel Fernandez #define RCC_LPTIM1CKSELR			U(0x628)
87*e5e793a6SGabriel Fernandez #define RCC_LPTIM23CKSELR			U(0x62C)
88*e5e793a6SGabriel Fernandez #define RCC_LPTIM45CKSELR			U(0x630)
89*e5e793a6SGabriel Fernandez #define RCC_SAI1CKSELR				U(0x634)
90*e5e793a6SGabriel Fernandez #define RCC_SAI2CKSELR				U(0x638)
91*e5e793a6SGabriel Fernandez #define RCC_FDCANCKSELR				U(0x63C)
92*e5e793a6SGabriel Fernandez #define RCC_SPDIFCKSELR				U(0x640)
93*e5e793a6SGabriel Fernandez #define RCC_ADC12CKSELR				U(0x644)
94*e5e793a6SGabriel Fernandez #define RCC_SDMMC12CKSELR			U(0x648)
95*e5e793a6SGabriel Fernandez #define RCC_ETH12CKSELR				U(0x64C)
96*e5e793a6SGabriel Fernandez #define RCC_USBCKSELR				U(0x650)
97*e5e793a6SGabriel Fernandez #define RCC_QSPICKSELR				U(0x654)
98*e5e793a6SGabriel Fernandez #define RCC_FMCCKSELR				U(0x658)
99*e5e793a6SGabriel Fernandez #define RCC_RNG1CKSELR				U(0x65C)
100*e5e793a6SGabriel Fernandez #define RCC_STGENCKSELR				U(0x660)
101*e5e793a6SGabriel Fernandez #define RCC_DCMIPPCKSELR			U(0x664)
102*e5e793a6SGabriel Fernandez #define RCC_SAESCKSELR				U(0x668)
103*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR				U(0x6A0)
104*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR				U(0x6A4)
105*e5e793a6SGabriel Fernandez #define RCC_APB2RSTSETR				U(0x6A8)
106*e5e793a6SGabriel Fernandez #define RCC_APB2RSTCLRR				U(0x6AC)
107*e5e793a6SGabriel Fernandez #define RCC_APB3RSTSETR				U(0x6B0)
108*e5e793a6SGabriel Fernandez #define RCC_APB3RSTCLRR				U(0x6B4)
109*e5e793a6SGabriel Fernandez #define RCC_APB4RSTSETR				U(0x6B8)
110*e5e793a6SGabriel Fernandez #define RCC_APB4RSTCLRR				U(0x6BC)
111*e5e793a6SGabriel Fernandez #define RCC_APB5RSTSETR				U(0x6C0)
112*e5e793a6SGabriel Fernandez #define RCC_APB5RSTCLRR				U(0x6C4)
113*e5e793a6SGabriel Fernandez #define RCC_APB6RSTSETR				U(0x6C8)
114*e5e793a6SGabriel Fernandez #define RCC_APB6RSTCLRR				U(0x6CC)
115*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTSETR				U(0x6D0)
116*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTCLRR				U(0x6D4)
117*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTSETR				U(0x6E0)
118*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTCLRR				U(0x6E4)
119*e5e793a6SGabriel Fernandez #define RCC_AHB5RSTSETR				U(0x6E8)
120*e5e793a6SGabriel Fernandez #define RCC_AHB5RSTCLRR				U(0x6EC)
121*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTSETR				U(0x6F0)
122*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTCLRR				U(0x6F4)
123*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR			U(0x700)
124*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR			U(0x704)
125*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENSETR			U(0x708)
126*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENCLRR			U(0x70C)
127*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENSETR			U(0x710)
128*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENCLRR			U(0x714)
129*e5e793a6SGabriel Fernandez #define RCC_MP_S_APB3ENSETR			U(0x718)
130*e5e793a6SGabriel Fernandez #define RCC_MP_S_APB3ENCLRR			U(0x71C)
131*e5e793a6SGabriel Fernandez #define RCC_MP_NS_APB3ENSETR			U(0x720)
132*e5e793a6SGabriel Fernandez #define RCC_MP_NS_APB3ENCLRR			U(0x724)
133*e5e793a6SGabriel Fernandez #define RCC_MP_APB4ENSETR			U(0x728)
134*e5e793a6SGabriel Fernandez #define RCC_MP_APB4ENCLRR			U(0x72C)
135*e5e793a6SGabriel Fernandez #define RCC_MP_S_APB4ENSETR			U(0x730)
136*e5e793a6SGabriel Fernandez #define RCC_MP_S_APB4ENCLRR			U(0x734)
137*e5e793a6SGabriel Fernandez #define RCC_MP_NS_APB4ENSETR			U(0x738)
138*e5e793a6SGabriel Fernandez #define RCC_MP_NS_APB4ENCLRR			U(0x73C)
139*e5e793a6SGabriel Fernandez #define RCC_MP_APB5ENSETR			U(0x740)
140*e5e793a6SGabriel Fernandez #define RCC_MP_APB5ENCLRR			U(0x744)
141*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENSETR			U(0x748)
142*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENCLRR			U(0x74C)
143*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENSETR			U(0x750)
144*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENCLRR			U(0x754)
145*e5e793a6SGabriel Fernandez #define RCC_MP_AHB4ENSETR			U(0x760)
146*e5e793a6SGabriel Fernandez #define RCC_MP_AHB4ENCLRR			U(0x764)
147*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENSETR			U(0x768)
148*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENCLRR			U(0x76C)
149*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENSETR			U(0x770)
150*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENCLRR			U(0x774)
151*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5ENSETR			U(0x778)
152*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5ENCLRR			U(0x77C)
153*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENSETR			U(0x780)
154*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENCLRR			U(0x784)
155*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB6ENSETR			U(0x788)
156*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB6ENCLRR			U(0x78C)
157*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB6ENSETR			U(0x790)
158*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB6ENCLRR			U(0x794)
159*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR			U(0x800)
160*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR			U(0x804)
161*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENSETR			U(0x808)
162*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENCLRR			U(0x80C)
163*e5e793a6SGabriel Fernandez #define RCC_MP_APB3LPENSETR			U(0x810)
164*e5e793a6SGabriel Fernandez #define RCC_MP_APB3LPENCLRR			U(0x814)
165*e5e793a6SGabriel Fernandez #define RCC_MP_S_APB3LPENSETR			U(0x818)
166*e5e793a6SGabriel Fernandez #define RCC_MP_S_APB3LPENCLRR			U(0x81C)
167*e5e793a6SGabriel Fernandez #define RCC_MP_NS_APB3LPENSETR			U(0x820)
168*e5e793a6SGabriel Fernandez #define RCC_MP_NS_APB3LPENCLRR			U(0x824)
169*e5e793a6SGabriel Fernandez #define RCC_MP_APB4LPENSETR			U(0x828)
170*e5e793a6SGabriel Fernandez #define RCC_MP_APB4LPENCLRR			U(0x82C)
171*e5e793a6SGabriel Fernandez #define RCC_MP_S_APB4LPENSETR			U(0x830)
172*e5e793a6SGabriel Fernandez #define RCC_MP_S_APB4LPENCLRR			U(0x834)
173*e5e793a6SGabriel Fernandez #define RCC_MP_NS_APB4LPENSETR			U(0x838)
174*e5e793a6SGabriel Fernandez #define RCC_MP_NS_APB4LPENCLRR			U(0x83C)
175*e5e793a6SGabriel Fernandez #define RCC_MP_APB5LPENSETR			U(0x840)
176*e5e793a6SGabriel Fernandez #define RCC_MP_APB5LPENCLRR			U(0x844)
177*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENSETR			U(0x848)
178*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENCLRR			U(0x84C)
179*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENSETR			U(0x850)
180*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENCLRR			U(0x854)
181*e5e793a6SGabriel Fernandez #define RCC_MP_AHB4LPENSETR			U(0x858)
182*e5e793a6SGabriel Fernandez #define RCC_MP_AHB4LPENCLRR			U(0x85C)
183*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENSETR			U(0x868)
184*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENCLRR			U(0x86C)
185*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENSETR			U(0x870)
186*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENCLRR			U(0x874)
187*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5LPENSETR			U(0x878)
188*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5LPENCLRR			U(0x87C)
189*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR			U(0x880)
190*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR			U(0x884)
191*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB6LPENSETR			U(0x888)
192*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB6LPENCLRR			U(0x88C)
193*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB6LPENSETR			U(0x890)
194*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB6LPENCLRR			U(0x894)
195*e5e793a6SGabriel Fernandez #define RCC_MP_S_AXIMLPENSETR			U(0x898)
196*e5e793a6SGabriel Fernandez #define RCC_MP_S_AXIMLPENCLRR			U(0x89C)
197*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AXIMLPENSETR			U(0x8A0)
198*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AXIMLPENCLRR			U(0x8A4)
199*e5e793a6SGabriel Fernandez #define RCC_MP_MLAHBLPENSETR			U(0x8A8)
200*e5e793a6SGabriel Fernandez #define RCC_MP_MLAHBLPENCLRR			U(0x8AC)
201*e5e793a6SGabriel Fernandez #define RCC_APB3SECSR				U(0x8C0)
202*e5e793a6SGabriel Fernandez #define RCC_APB4SECSR				U(0x8C4)
203*e5e793a6SGabriel Fernandez #define RCC_APB5SECSR				U(0x8C8)
204*e5e793a6SGabriel Fernandez #define RCC_APB6SECSR				U(0x8CC)
205*e5e793a6SGabriel Fernandez #define RCC_AHB2SECSR				U(0x8D0)
206*e5e793a6SGabriel Fernandez #define RCC_AHB4SECSR				U(0x8D4)
207*e5e793a6SGabriel Fernandez #define RCC_AHB5SECSR				U(0x8D8)
208*e5e793a6SGabriel Fernandez #define RCC_AHB6SECSR				U(0x8DC)
209*e5e793a6SGabriel Fernandez #define RCC_VERR				U(0xFF4)
210*e5e793a6SGabriel Fernandez #define RCC_IDR					U(0xFF8)
211*e5e793a6SGabriel Fernandez #define RCC_SIDR				U(0xFFC)
212*e5e793a6SGabriel Fernandez 
213*e5e793a6SGabriel Fernandez /* RCC_SECCFGR register fields */
214*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_HSISEC			BIT(0)
215*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_CSISEC			BIT(1)
216*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_HSESEC			BIT(2)
217*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_LSISEC			BIT(3)
218*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_LSESEC			BIT(4)
219*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_PLL12SEC			BIT(8)
220*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_PLL3SEC			BIT(9)
221*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_PLL4SEC			BIT(10)
222*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_MPUSEC			BIT(11)
223*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_AXISEC			BIT(12)
224*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_MLAHBSEC			BIT(13)
225*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_APB3DIVSEC			BIT(16)
226*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_APB4DIVSEC			BIT(17)
227*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_APB5DIVSEC			BIT(18)
228*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_APB6DIVSEC			BIT(19)
229*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_TIMG3SEC			BIT(20)
230*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_CPERSEC			BIT(21)
231*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_MCO1SEC			BIT(22)
232*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_MCO2SEC			BIT(23)
233*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_STPSEC			BIT(24)
234*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_RSTSEC			BIT(25)
235*e5e793a6SGabriel Fernandez #define RCC_SECCFGR_PWRSEC			BIT(31)
236*e5e793a6SGabriel Fernandez 
237*e5e793a6SGabriel Fernandez /* RCC_MP_SREQSETR register fields */
238*e5e793a6SGabriel Fernandez #define RCC_MP_SREQSETR_STPREQ_P0		BIT(0)
239*e5e793a6SGabriel Fernandez 
240*e5e793a6SGabriel Fernandez /* RCC_MP_SREQCLRR register fields */
241*e5e793a6SGabriel Fernandez #define RCC_MP_SREQCLRR_STPREQ_P0		BIT(0)
242*e5e793a6SGabriel Fernandez 
243*e5e793a6SGabriel Fernandez /* RCC_MP_APRSTCR register fields */
244*e5e793a6SGabriel Fernandez #define RCC_MP_APRSTCR_RDCTLEN			BIT(0)
245*e5e793a6SGabriel Fernandez #define RCC_MP_APRSTCR_RSTTO_MASK		GENMASK_32(14, 8)
246*e5e793a6SGabriel Fernandez #define RCC_MP_APRSTCR_RSTTO_SHIFT		8
247*e5e793a6SGabriel Fernandez 
248*e5e793a6SGabriel Fernandez /* RCC_MP_APRSTSR register fields */
249*e5e793a6SGabriel Fernandez #define RCC_MP_APRSTSR_RSTTOV_MASK		GENMASK_32(14, 8)
250*e5e793a6SGabriel Fernandez #define RCC_MP_APRSTSR_RSTTOV_SHIFT		8
251*e5e793a6SGabriel Fernandez 
252*e5e793a6SGabriel Fernandez /* RCC_PWRLPDLYCR register fields */
253*e5e793a6SGabriel Fernandez #define RCC_PWRLPDLYCR_PWRLP_DLY_MASK		GENMASK_32(21, 0)
254*e5e793a6SGabriel Fernandez #define RCC_PWRLPDLYCR_PWRLP_DLY_SHIFT		0
255*e5e793a6SGabriel Fernandez 
256*e5e793a6SGabriel Fernandez /* RCC_MP_GRSTCSETR register fields */
257*e5e793a6SGabriel Fernandez #define RCC_MP_GRSTCSETR_MPSYSRST		BIT(0)
258*e5e793a6SGabriel Fernandez #define RCC_MP_GRSTCSETR_MPUP0RST		BIT(4)
259*e5e793a6SGabriel Fernandez 
260*e5e793a6SGabriel Fernandez /* RCC_BR_RSTSCLRR register fields */
261*e5e793a6SGabriel Fernandez #define RCC_BR_RSTSCLRR_PORRSTF			BIT(0)
262*e5e793a6SGabriel Fernandez #define RCC_BR_RSTSCLRR_BORRSTF			BIT(1)
263*e5e793a6SGabriel Fernandez #define RCC_BR_RSTSCLRR_PADRSTF			BIT(2)
264*e5e793a6SGabriel Fernandez #define RCC_BR_RSTSCLRR_HCSSRSTF		BIT(3)
265*e5e793a6SGabriel Fernandez #define RCC_BR_RSTSCLRR_VCORERSTF		BIT(4)
266*e5e793a6SGabriel Fernandez #define RCC_BR_RSTSCLRR_VCPURSTF		BIT(5)
267*e5e793a6SGabriel Fernandez #define RCC_BR_RSTSCLRR_MPSYSRSTF		BIT(6)
268*e5e793a6SGabriel Fernandez #define RCC_BR_RSTSCLRR_IWDG1RSTF		BIT(8)
269*e5e793a6SGabriel Fernandez #define RCC_BR_RSTSCLRR_IWDG2RSTF		BIT(9)
270*e5e793a6SGabriel Fernandez #define RCC_BR_RSTSCLRR_MPUP0RSTF		BIT(13)
271*e5e793a6SGabriel Fernandez 
272*e5e793a6SGabriel Fernandez /* RCC_MP_RSTSSETR register fields */
273*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSSETR_PORRSTF			BIT(0)
274*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSSETR_BORRSTF			BIT(1)
275*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSSETR_PADRSTF			BIT(2)
276*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSSETR_HCSSRSTF		BIT(3)
277*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSSETR_VCORERSTF		BIT(4)
278*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSSETR_VCPURSTF		BIT(5)
279*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSSETR_MPSYSRSTF		BIT(6)
280*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSSETR_IWDG1RSTF		BIT(8)
281*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSSETR_IWDG2RSTF		BIT(9)
282*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSSETR_STP2RSTF		BIT(10)
283*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSSETR_STDBYRSTF		BIT(11)
284*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSSETR_CSTDBYRSTF		BIT(12)
285*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSSETR_MPUP0RSTF		BIT(13)
286*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSSETR_SPARE			BIT(15)
287*e5e793a6SGabriel Fernandez 
288*e5e793a6SGabriel Fernandez /* RCC_MP_RSTSCLRR register fields */
289*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSCLRR_PORRSTF			BIT(0)
290*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSCLRR_BORRSTF			BIT(1)
291*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSCLRR_PADRSTF			BIT(2)
292*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSCLRR_HCSSRSTF		BIT(3)
293*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSCLRR_VCORERSTF		BIT(4)
294*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSCLRR_VCPURSTF		BIT(5)
295*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSCLRR_MPSYSRSTF		BIT(6)
296*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSCLRR_IWDG1RSTF		BIT(8)
297*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSCLRR_IWDG2RSTF		BIT(9)
298*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSCLRR_STP2RSTF		BIT(10)
299*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSCLRR_STDBYRSTF		BIT(11)
300*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSCLRR_CSTDBYRSTF		BIT(12)
301*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSCLRR_MPUP0RSTF		BIT(13)
302*e5e793a6SGabriel Fernandez #define RCC_MP_RSTSCLRR_SPARE			BIT(15)
303*e5e793a6SGabriel Fernandez 
304*e5e793a6SGabriel Fernandez /* RCC_MP_IWDGFZSETR register fields */
305*e5e793a6SGabriel Fernandez #define RCC_MP_IWDGFZSETR_FZ_IWDG1		BIT(0)
306*e5e793a6SGabriel Fernandez #define RCC_MP_IWDGFZSETR_FZ_IWDG2		BIT(1)
307*e5e793a6SGabriel Fernandez 
308*e5e793a6SGabriel Fernandez /* RCC_MP_IWDGFZCLRR register fields */
309*e5e793a6SGabriel Fernandez #define RCC_MP_IWDGFZCLRR_FZ_IWDG1		BIT(0)
310*e5e793a6SGabriel Fernandez #define RCC_MP_IWDGFZCLRR_FZ_IWDG2		BIT(1)
311*e5e793a6SGabriel Fernandez 
312*e5e793a6SGabriel Fernandez /* RCC_MP_CIER register fields */
313*e5e793a6SGabriel Fernandez #define RCC_MP_CIER_LSIRDYIE			BIT(0)
314*e5e793a6SGabriel Fernandez #define RCC_MP_CIER_LSERDYIE			BIT(1)
315*e5e793a6SGabriel Fernandez #define RCC_MP_CIER_HSIRDYIE			BIT(2)
316*e5e793a6SGabriel Fernandez #define RCC_MP_CIER_HSERDYIE			BIT(3)
317*e5e793a6SGabriel Fernandez #define RCC_MP_CIER_CSIRDYIE			BIT(4)
318*e5e793a6SGabriel Fernandez #define RCC_MP_CIER_PLL1DYIE			BIT(8)
319*e5e793a6SGabriel Fernandez #define RCC_MP_CIER_PLL2DYIE			BIT(9)
320*e5e793a6SGabriel Fernandez #define RCC_MP_CIER_PLL3DYIE			BIT(10)
321*e5e793a6SGabriel Fernandez #define RCC_MP_CIER_PLL4DYIE			BIT(11)
322*e5e793a6SGabriel Fernandez #define RCC_MP_CIER_LSECSSIE			BIT(16)
323*e5e793a6SGabriel Fernandez #define RCC_MP_CIER_WKUPIE			BIT(20)
324*e5e793a6SGabriel Fernandez 
325*e5e793a6SGabriel Fernandez /* RCC_MP_CIFR register fields */
326*e5e793a6SGabriel Fernandez #define RCC_MP_CIFR_LSIRDYF			BIT(0)
327*e5e793a6SGabriel Fernandez #define RCC_MP_CIFR_LSERDYF			BIT(1)
328*e5e793a6SGabriel Fernandez #define RCC_MP_CIFR_HSIRDYF			BIT(2)
329*e5e793a6SGabriel Fernandez #define RCC_MP_CIFR_HSERDYF			BIT(3)
330*e5e793a6SGabriel Fernandez #define RCC_MP_CIFR_CSIRDYF			BIT(4)
331*e5e793a6SGabriel Fernandez #define RCC_MP_CIFR_PLL1DYF			BIT(8)
332*e5e793a6SGabriel Fernandez #define RCC_MP_CIFR_PLL2DYF			BIT(9)
333*e5e793a6SGabriel Fernandez #define RCC_MP_CIFR_PLL3DYF			BIT(10)
334*e5e793a6SGabriel Fernandez #define RCC_MP_CIFR_PLL4DYF			BIT(11)
335*e5e793a6SGabriel Fernandez #define RCC_MP_CIFR_LSECSSF			BIT(16)
336*e5e793a6SGabriel Fernandez #define RCC_MP_CIFR_WKUPF			BIT(20)
337*e5e793a6SGabriel Fernandez 
338*e5e793a6SGabriel Fernandez /* RCC_BDCR register fields */
339*e5e793a6SGabriel Fernandez #define RCC_BDCR_LSEON				BIT(0)
340*e5e793a6SGabriel Fernandez #define RCC_BDCR_LSEBYP				BIT(1)
341*e5e793a6SGabriel Fernandez #define RCC_BDCR_LSERDY				BIT(2)
342*e5e793a6SGabriel Fernandez #define RCC_BDCR_DIGBYP				BIT(3)
343*e5e793a6SGabriel Fernandez #define RCC_BDCR_LSEDRV_MASK			GENMASK_32(5, 4)
344*e5e793a6SGabriel Fernandez #define RCC_BDCR_LSEDRV_SHIFT			4
345*e5e793a6SGabriel Fernandez #define RCC_BDCR_LSECSSON			BIT(8)
346*e5e793a6SGabriel Fernandez #define RCC_BDCR_LSECSSD			BIT(9)
347*e5e793a6SGabriel Fernandez #define RCC_BDCR_RTCSRC_MASK			GENMASK_32(17, 16)
348*e5e793a6SGabriel Fernandez #define RCC_BDCR_RTCSRC_SHIFT			16
349*e5e793a6SGabriel Fernandez #define RCC_BDCR_RTCCKEN			BIT(20)
350*e5e793a6SGabriel Fernandez #define RCC_BDCR_VSWRST				BIT(31)
351*e5e793a6SGabriel Fernandez 
352*e5e793a6SGabriel Fernandez #define RCC_BDCR_LSEBYP_BIT	                1
353*e5e793a6SGabriel Fernandez #define RCC_BDCR_LSERDY_BIT		        2
354*e5e793a6SGabriel Fernandez #define RCC_BDCR_DIGBYP_BIT		        3
355*e5e793a6SGabriel Fernandez #define RCC_BDCR_LSECSSON_BIT		        8
356*e5e793a6SGabriel Fernandez 
357*e5e793a6SGabriel Fernandez #define RCC_BDCR_LSEDRV_WIDTH		        2
358*e5e793a6SGabriel Fernandez 
359*e5e793a6SGabriel Fernandez /* RCC_RDLSICR register fields */
360*e5e793a6SGabriel Fernandez #define RCC_RDLSICR_LSION			BIT(0)
361*e5e793a6SGabriel Fernandez #define RCC_RDLSICR_LSIRDY			BIT(1)
362*e5e793a6SGabriel Fernandez #define RCC_RDLSICR_MRD_MASK			GENMASK_32(20, 16)
363*e5e793a6SGabriel Fernandez #define RCC_RDLSICR_MRD_SHIFT			16
364*e5e793a6SGabriel Fernandez #define RCC_RDLSICR_EADLY_MASK			GENMASK_32(26, 24)
365*e5e793a6SGabriel Fernandez #define RCC_RDLSICR_EADLY_SHIFT			24
366*e5e793a6SGabriel Fernandez #define RCC_RDLSICR_SPARE_MASK			GENMASK_32(31, 27)
367*e5e793a6SGabriel Fernandez #define RCC_RDLSICR_SPARE_SHIFT			27
368*e5e793a6SGabriel Fernandez 
369*e5e793a6SGabriel Fernandez #define RCC_RDLSICR_LSIRDY_BIT		1
370*e5e793a6SGabriel Fernandez 
371*e5e793a6SGabriel Fernandez /* RCC_OCENSETR register fields */
372*e5e793a6SGabriel Fernandez #define RCC_OCENSETR_HSION			BIT(0)
373*e5e793a6SGabriel Fernandez #define RCC_OCENSETR_HSIKERON			BIT(1)
374*e5e793a6SGabriel Fernandez #define RCC_OCENSETR_CSION			BIT(4)
375*e5e793a6SGabriel Fernandez #define RCC_OCENSETR_CSIKERON			BIT(5)
376*e5e793a6SGabriel Fernandez #define RCC_OCENSETR_DIGBYP			BIT(7)
377*e5e793a6SGabriel Fernandez #define RCC_OCENSETR_HSEON			BIT(8)
378*e5e793a6SGabriel Fernandez #define RCC_OCENSETR_HSEKERON			BIT(9)
379*e5e793a6SGabriel Fernandez #define RCC_OCENSETR_HSEBYP			BIT(10)
380*e5e793a6SGabriel Fernandez #define RCC_OCENSETR_HSECSSON			BIT(11)
381*e5e793a6SGabriel Fernandez 
382*e5e793a6SGabriel Fernandez #define RCC_OCENR_DIGBYP_BIT		        7
383*e5e793a6SGabriel Fernandez #define RCC_OCENR_HSEBYP_BIT		        10
384*e5e793a6SGabriel Fernandez #define RCC_OCENR_HSECSSON_BIT		        11
385*e5e793a6SGabriel Fernandez 
386*e5e793a6SGabriel Fernandez /* RCC_OCENCLRR register fields */
387*e5e793a6SGabriel Fernandez #define RCC_OCENCLRR_HSION			BIT(0)
388*e5e793a6SGabriel Fernandez #define RCC_OCENCLRR_HSIKERON			BIT(1)
389*e5e793a6SGabriel Fernandez #define RCC_OCENCLRR_CSION			BIT(4)
390*e5e793a6SGabriel Fernandez #define RCC_OCENCLRR_CSIKERON			BIT(5)
391*e5e793a6SGabriel Fernandez #define RCC_OCENCLRR_DIGBYP			BIT(7)
392*e5e793a6SGabriel Fernandez #define RCC_OCENCLRR_HSEON			BIT(8)
393*e5e793a6SGabriel Fernandez #define RCC_OCENCLRR_HSEKERON			BIT(9)
394*e5e793a6SGabriel Fernandez #define RCC_OCENCLRR_HSEBYP			BIT(10)
395*e5e793a6SGabriel Fernandez 
396*e5e793a6SGabriel Fernandez /* RCC_OCRDYR register fields */
397*e5e793a6SGabriel Fernandez #define RCC_OCRDYR_HSIRDY			BIT(0)
398*e5e793a6SGabriel Fernandez #define RCC_OCRDYR_HSIDIVRDY			BIT(2)
399*e5e793a6SGabriel Fernandez #define RCC_OCRDYR_CSIRDY			BIT(4)
400*e5e793a6SGabriel Fernandez #define RCC_OCRDYR_HSERDY			BIT(8)
401*e5e793a6SGabriel Fernandez #define RCC_OCRDYR_MPUCKRDY			BIT(23)
402*e5e793a6SGabriel Fernandez #define RCC_OCRDYR_AXICKRDY			BIT(24)
403*e5e793a6SGabriel Fernandez 
404*e5e793a6SGabriel Fernandez #define RCC_OCRDYR_HSIRDY_BIT		        0
405*e5e793a6SGabriel Fernandez #define RCC_OCRDYR_HSIDIVRDY_BIT                2
406*e5e793a6SGabriel Fernandez #define RCC_OCRDYR_CSIRDY_BIT		        4
407*e5e793a6SGabriel Fernandez #define RCC_OCRDYR_HSERDY_BIT                   8
408*e5e793a6SGabriel Fernandez 
409*e5e793a6SGabriel Fernandez /* RCC_HSICFGR register fields */
410*e5e793a6SGabriel Fernandez #define RCC_HSICFGR_HSIDIV_MASK			GENMASK_32(1, 0)
411*e5e793a6SGabriel Fernandez #define RCC_HSICFGR_HSIDIV_SHIFT		0
412*e5e793a6SGabriel Fernandez #define RCC_HSICFGR_HSITRIM_MASK		GENMASK_32(14, 8)
413*e5e793a6SGabriel Fernandez #define RCC_HSICFGR_HSITRIM_SHIFT		8
414*e5e793a6SGabriel Fernandez #define RCC_HSICFGR_HSICAL_MASK			GENMASK_32(27, 16)
415*e5e793a6SGabriel Fernandez #define RCC_HSICFGR_HSICAL_SHIFT		16
416*e5e793a6SGabriel Fernandez 
417*e5e793a6SGabriel Fernandez /* RCC_CSICFGR register fields */
418*e5e793a6SGabriel Fernandez #define RCC_CSICFGR_CSITRIM_MASK		GENMASK_32(12, 8)
419*e5e793a6SGabriel Fernandez #define RCC_CSICFGR_CSITRIM_SHIFT		8
420*e5e793a6SGabriel Fernandez #define RCC_CSICFGR_CSICAL_MASK			GENMASK_32(23, 16)
421*e5e793a6SGabriel Fernandez #define RCC_CSICFGR_CSICAL_SHIFT		16
422*e5e793a6SGabriel Fernandez 
423*e5e793a6SGabriel Fernandez /* RCC_MCO1CFGR register fields */
424*e5e793a6SGabriel Fernandez #define RCC_MCO1CFGR_MCO1SEL_MASK		GENMASK_32(2, 0)
425*e5e793a6SGabriel Fernandez #define RCC_MCO1CFGR_MCO1SEL_SHIFT		0
426*e5e793a6SGabriel Fernandez #define RCC_MCO1CFGR_MCO1DIV_MASK		GENMASK_32(7, 4)
427*e5e793a6SGabriel Fernandez #define RCC_MCO1CFGR_MCO1DIV_SHIFT		4
428*e5e793a6SGabriel Fernandez #define RCC_MCO1CFGR_MCO1ON			BIT(12)
429*e5e793a6SGabriel Fernandez 
430*e5e793a6SGabriel Fernandez /* RCC_MCO2CFGR register fields */
431*e5e793a6SGabriel Fernandez #define RCC_MCO2CFGR_MCO2SEL_MASK		GENMASK_32(2, 0)
432*e5e793a6SGabriel Fernandez #define RCC_MCO2CFGR_MCO2SEL_SHIFT		0
433*e5e793a6SGabriel Fernandez #define RCC_MCO2CFGR_MCO2DIV_MASK		GENMASK_32(7, 4)
434*e5e793a6SGabriel Fernandez #define RCC_MCO2CFGR_MCO2DIV_SHIFT		4
435*e5e793a6SGabriel Fernandez #define RCC_MCO2CFGR_MCO2ON			BIT(12)
436*e5e793a6SGabriel Fernandez 
437*e5e793a6SGabriel Fernandez /* RCC_DBGCFGR register fields */
438*e5e793a6SGabriel Fernandez #define RCC_DBGCFGR_TRACEDIV_MASK		GENMASK_32(2, 0)
439*e5e793a6SGabriel Fernandez #define RCC_DBGCFGR_TRACEDIV_SHIFT		0
440*e5e793a6SGabriel Fernandez #define RCC_DBGCFGR_DBGCKEN			BIT(8)
441*e5e793a6SGabriel Fernandez #define RCC_DBGCFGR_TRACECKEN			BIT(9)
442*e5e793a6SGabriel Fernandez #define RCC_DBGCFGR_DBGRST			BIT(12)
443*e5e793a6SGabriel Fernandez 
444*e5e793a6SGabriel Fernandez /* RCC_RCK12SELR register fields */
445*e5e793a6SGabriel Fernandez #define RCC_RCK12SELR_PLL12SRC_MASK		GENMASK_32(1, 0)
446*e5e793a6SGabriel Fernandez #define RCC_RCK12SELR_PLL12SRC_SHIFT		0
447*e5e793a6SGabriel Fernandez #define RCC_RCK12SELR_PLL12SRCRDY		BIT(31)
448*e5e793a6SGabriel Fernandez 
449*e5e793a6SGabriel Fernandez /* RCC_RCK3SELR register fields */
450*e5e793a6SGabriel Fernandez #define RCC_RCK3SELR_PLL3SRC_MASK		GENMASK_32(1, 0)
451*e5e793a6SGabriel Fernandez #define RCC_RCK3SELR_PLL3SRC_SHIFT		0
452*e5e793a6SGabriel Fernandez #define RCC_RCK3SELR_PLL3SRCRDY			BIT(31)
453*e5e793a6SGabriel Fernandez 
454*e5e793a6SGabriel Fernandez /* RCC_RCK4SELR register fields */
455*e5e793a6SGabriel Fernandez #define RCC_RCK4SELR_PLL4SRC_MASK		GENMASK_32(1, 0)
456*e5e793a6SGabriel Fernandez #define RCC_RCK4SELR_PLL4SRC_SHIFT		0
457*e5e793a6SGabriel Fernandez #define RCC_RCK4SELR_PLL4SRCRDY			BIT(31)
458*e5e793a6SGabriel Fernandez 
459*e5e793a6SGabriel Fernandez /* RCC_PLL1CR register fields */
460*e5e793a6SGabriel Fernandez #define RCC_PLL1CR_PLLON			BIT(0)
461*e5e793a6SGabriel Fernandez #define RCC_PLL1CR_PLL1RDY			BIT(1)
462*e5e793a6SGabriel Fernandez #define RCC_PLL1CR_SSCG_CTRL			BIT(2)
463*e5e793a6SGabriel Fernandez #define RCC_PLL1CR_DIVPEN			BIT(4)
464*e5e793a6SGabriel Fernandez #define RCC_PLL1CR_DIVQEN			BIT(5)
465*e5e793a6SGabriel Fernandez #define RCC_PLL1CR_DIVREN			BIT(6)
466*e5e793a6SGabriel Fernandez 
467*e5e793a6SGabriel Fernandez /* RCC_PLL1CFGR1 register fields */
468*e5e793a6SGabriel Fernandez #define RCC_PLL1CFGR1_DIVN_MASK			GENMASK_32(8, 0)
469*e5e793a6SGabriel Fernandez #define RCC_PLL1CFGR1_DIVN_SHIFT		0
470*e5e793a6SGabriel Fernandez #define RCC_PLL1CFGR1_DIVM1_MASK		GENMASK_32(21, 16)
471*e5e793a6SGabriel Fernandez #define RCC_PLL1CFGR1_DIVM1_SHIFT		16
472*e5e793a6SGabriel Fernandez 
473*e5e793a6SGabriel Fernandez /* RCC_PLL1CFGR2 register fields */
474*e5e793a6SGabriel Fernandez #define RCC_PLL1CFGR2_DIVP_MASK			GENMASK_32(6, 0)
475*e5e793a6SGabriel Fernandez #define RCC_PLL1CFGR2_DIVP_SHIFT		0
476*e5e793a6SGabriel Fernandez #define RCC_PLL1CFGR2_DIVQ_MASK			GENMASK_32(14, 8)
477*e5e793a6SGabriel Fernandez #define RCC_PLL1CFGR2_DIVQ_SHIFT		8
478*e5e793a6SGabriel Fernandez #define RCC_PLL1CFGR2_DIVR_MASK			GENMASK_32(22, 16)
479*e5e793a6SGabriel Fernandez #define RCC_PLL1CFGR2_DIVR_SHIFT		16
480*e5e793a6SGabriel Fernandez 
481*e5e793a6SGabriel Fernandez /* RCC_PLL1FRACR register fields */
482*e5e793a6SGabriel Fernandez #define RCC_PLL1FRACR_FRACV_MASK		GENMASK_32(15, 3)
483*e5e793a6SGabriel Fernandez #define RCC_PLL1FRACR_FRACV_SHIFT		3
484*e5e793a6SGabriel Fernandez #define RCC_PLL1FRACR_FRACLE			BIT(16)
485*e5e793a6SGabriel Fernandez 
486*e5e793a6SGabriel Fernandez /* RCC_PLL1CSGR register fields */
487*e5e793a6SGabriel Fernandez #define RCC_PLL1CSGR_MOD_PER_MASK		GENMASK_32(12, 0)
488*e5e793a6SGabriel Fernandez #define RCC_PLL1CSGR_MOD_PER_SHIFT		0
489*e5e793a6SGabriel Fernandez #define RCC_PLL1CSGR_TPDFN_DIS			BIT(13)
490*e5e793a6SGabriel Fernandez #define RCC_PLL1CSGR_RPDFN_DIS			BIT(14)
491*e5e793a6SGabriel Fernandez #define RCC_PLL1CSGR_SSCG_MODE			BIT(15)
492*e5e793a6SGabriel Fernandez #define RCC_PLL1CSGR_INC_STEP_MASK		GENMASK_32(30, 16)
493*e5e793a6SGabriel Fernandez #define RCC_PLL1CSGR_INC_STEP_SHIFT		16
494*e5e793a6SGabriel Fernandez 
495*e5e793a6SGabriel Fernandez /* RCC_PLL2CR register fields */
496*e5e793a6SGabriel Fernandez #define RCC_PLL2CR_PLLON			BIT(0)
497*e5e793a6SGabriel Fernandez #define RCC_PLL2CR_PLL2RDY			BIT(1)
498*e5e793a6SGabriel Fernandez #define RCC_PLL2CR_SSCG_CTRL			BIT(2)
499*e5e793a6SGabriel Fernandez #define RCC_PLL2CR_DIVPEN			BIT(4)
500*e5e793a6SGabriel Fernandez #define RCC_PLL2CR_DIVQEN			BIT(5)
501*e5e793a6SGabriel Fernandez #define RCC_PLL2CR_DIVREN			BIT(6)
502*e5e793a6SGabriel Fernandez 
503*e5e793a6SGabriel Fernandez /* RCC_PLL2CFGR1 register fields */
504*e5e793a6SGabriel Fernandez #define RCC_PLL2CFGR1_DIVN_MASK			GENMASK_32(8, 0)
505*e5e793a6SGabriel Fernandez #define RCC_PLL2CFGR1_DIVN_SHIFT		0
506*e5e793a6SGabriel Fernandez #define RCC_PLL2CFGR1_DIVM2_MASK		GENMASK_32(21, 16)
507*e5e793a6SGabriel Fernandez #define RCC_PLL2CFGR1_DIVM2_SHIFT		16
508*e5e793a6SGabriel Fernandez 
509*e5e793a6SGabriel Fernandez /* RCC_PLL2CFGR2 register fields */
510*e5e793a6SGabriel Fernandez #define RCC_PLL2CFGR2_DIVP_MASK			GENMASK_32(6, 0)
511*e5e793a6SGabriel Fernandez #define RCC_PLL2CFGR2_DIVP_SHIFT		0
512*e5e793a6SGabriel Fernandez #define RCC_PLL2CFGR2_DIVQ_MASK			GENMASK_32(14, 8)
513*e5e793a6SGabriel Fernandez #define RCC_PLL2CFGR2_DIVQ_SHIFT		8
514*e5e793a6SGabriel Fernandez #define RCC_PLL2CFGR2_DIVR_MASK			GENMASK_32(22, 16)
515*e5e793a6SGabriel Fernandez #define RCC_PLL2CFGR2_DIVR_SHIFT		16
516*e5e793a6SGabriel Fernandez 
517*e5e793a6SGabriel Fernandez /* RCC_PLL2FRACR register fields */
518*e5e793a6SGabriel Fernandez #define RCC_PLL2FRACR_FRACV_MASK		GENMASK_32(15, 3)
519*e5e793a6SGabriel Fernandez #define RCC_PLL2FRACR_FRACV_SHIFT		3
520*e5e793a6SGabriel Fernandez #define RCC_PLL2FRACR_FRACLE			BIT(16)
521*e5e793a6SGabriel Fernandez 
522*e5e793a6SGabriel Fernandez /* RCC_PLL2CSGR register fields */
523*e5e793a6SGabriel Fernandez #define RCC_PLL2CSGR_MOD_PER_MASK		GENMASK_32(12, 0)
524*e5e793a6SGabriel Fernandez #define RCC_PLL2CSGR_MOD_PER_SHIFT		0
525*e5e793a6SGabriel Fernandez #define RCC_PLL2CSGR_TPDFN_DIS			BIT(13)
526*e5e793a6SGabriel Fernandez #define RCC_PLL2CSGR_RPDFN_DIS			BIT(14)
527*e5e793a6SGabriel Fernandez #define RCC_PLL2CSGR_SSCG_MODE			BIT(15)
528*e5e793a6SGabriel Fernandez #define RCC_PLL2CSGR_INC_STEP_MASK		GENMASK_32(30, 16)
529*e5e793a6SGabriel Fernandez #define RCC_PLL2CSGR_INC_STEP_SHIFT		16
530*e5e793a6SGabriel Fernandez 
531*e5e793a6SGabriel Fernandez /* RCC_PLL3CR register fields */
532*e5e793a6SGabriel Fernandez #define RCC_PLL3CR_PLLON			BIT(0)
533*e5e793a6SGabriel Fernandez #define RCC_PLL3CR_PLL3RDY			BIT(1)
534*e5e793a6SGabriel Fernandez #define RCC_PLL3CR_SSCG_CTRL			BIT(2)
535*e5e793a6SGabriel Fernandez #define RCC_PLL3CR_DIVPEN			BIT(4)
536*e5e793a6SGabriel Fernandez #define RCC_PLL3CR_DIVQEN			BIT(5)
537*e5e793a6SGabriel Fernandez #define RCC_PLL3CR_DIVREN			BIT(6)
538*e5e793a6SGabriel Fernandez 
539*e5e793a6SGabriel Fernandez /* RCC_PLL3CFGR1 register fields */
540*e5e793a6SGabriel Fernandez #define RCC_PLL3CFGR1_DIVN_MASK			GENMASK_32(8, 0)
541*e5e793a6SGabriel Fernandez #define RCC_PLL3CFGR1_DIVN_SHIFT		0
542*e5e793a6SGabriel Fernandez #define RCC_PLL3CFGR1_DIVM3_MASK		GENMASK_32(21, 16)
543*e5e793a6SGabriel Fernandez #define RCC_PLL3CFGR1_DIVM3_SHIFT		16
544*e5e793a6SGabriel Fernandez #define RCC_PLL3CFGR1_IFRGE_MASK		GENMASK_32(25, 24)
545*e5e793a6SGabriel Fernandez #define RCC_PLL3CFGR1_IFRGE_SHIFT		24
546*e5e793a6SGabriel Fernandez 
547*e5e793a6SGabriel Fernandez /* RCC_PLL3CFGR2 register fields */
548*e5e793a6SGabriel Fernandez #define RCC_PLL3CFGR2_DIVP_MASK			GENMASK_32(6, 0)
549*e5e793a6SGabriel Fernandez #define RCC_PLL3CFGR2_DIVP_SHIFT		0
550*e5e793a6SGabriel Fernandez #define RCC_PLL3CFGR2_DIVQ_MASK			GENMASK_32(14, 8)
551*e5e793a6SGabriel Fernandez #define RCC_PLL3CFGR2_DIVQ_SHIFT		8
552*e5e793a6SGabriel Fernandez #define RCC_PLL3CFGR2_DIVR_MASK			GENMASK_32(22, 16)
553*e5e793a6SGabriel Fernandez #define RCC_PLL3CFGR2_DIVR_SHIFT		16
554*e5e793a6SGabriel Fernandez 
555*e5e793a6SGabriel Fernandez /* RCC_PLL3FRACR register fields */
556*e5e793a6SGabriel Fernandez #define RCC_PLL3FRACR_FRACV_MASK		GENMASK_32(15, 3)
557*e5e793a6SGabriel Fernandez #define RCC_PLL3FRACR_FRACV_SHIFT		3
558*e5e793a6SGabriel Fernandez #define RCC_PLL3FRACR_FRACLE			BIT(16)
559*e5e793a6SGabriel Fernandez 
560*e5e793a6SGabriel Fernandez /* RCC_PLL3CSGR register fields */
561*e5e793a6SGabriel Fernandez #define RCC_PLL3CSGR_MOD_PER_MASK		GENMASK_32(12, 0)
562*e5e793a6SGabriel Fernandez #define RCC_PLL3CSGR_MOD_PER_SHIFT		0
563*e5e793a6SGabriel Fernandez #define RCC_PLL3CSGR_TPDFN_DIS			BIT(13)
564*e5e793a6SGabriel Fernandez #define RCC_PLL3CSGR_RPDFN_DIS			BIT(14)
565*e5e793a6SGabriel Fernandez #define RCC_PLL3CSGR_SSCG_MODE			BIT(15)
566*e5e793a6SGabriel Fernandez #define RCC_PLL3CSGR_INC_STEP_MASK		GENMASK_32(30, 16)
567*e5e793a6SGabriel Fernandez #define RCC_PLL3CSGR_INC_STEP_SHIFT		16
568*e5e793a6SGabriel Fernandez 
569*e5e793a6SGabriel Fernandez /* RCC_PLL4CR register fields */
570*e5e793a6SGabriel Fernandez #define RCC_PLL4CR_PLLON			BIT(0)
571*e5e793a6SGabriel Fernandez #define RCC_PLL4CR_PLL4RDY			BIT(1)
572*e5e793a6SGabriel Fernandez #define RCC_PLL4CR_SSCG_CTRL			BIT(2)
573*e5e793a6SGabriel Fernandez #define RCC_PLL4CR_DIVPEN			BIT(4)
574*e5e793a6SGabriel Fernandez #define RCC_PLL4CR_DIVQEN			BIT(5)
575*e5e793a6SGabriel Fernandez #define RCC_PLL4CR_DIVREN			BIT(6)
576*e5e793a6SGabriel Fernandez 
577*e5e793a6SGabriel Fernandez /* RCC_PLL4CFGR1 register fields */
578*e5e793a6SGabriel Fernandez #define RCC_PLL4CFGR1_DIVN_MASK			GENMASK_32(8, 0)
579*e5e793a6SGabriel Fernandez #define RCC_PLL4CFGR1_DIVN_SHIFT		0
580*e5e793a6SGabriel Fernandez #define RCC_PLL4CFGR1_DIVM4_MASK		GENMASK_32(21, 16)
581*e5e793a6SGabriel Fernandez #define RCC_PLL4CFGR1_DIVM4_SHIFT		16
582*e5e793a6SGabriel Fernandez #define RCC_PLL4CFGR1_IFRGE_MASK		GENMASK_32(25, 24)
583*e5e793a6SGabriel Fernandez #define RCC_PLL4CFGR1_IFRGE_SHIFT		24
584*e5e793a6SGabriel Fernandez 
585*e5e793a6SGabriel Fernandez /* RCC_PLL4CFGR2 register fields */
586*e5e793a6SGabriel Fernandez #define RCC_PLL4CFGR2_DIVP_MASK			GENMASK_32(6, 0)
587*e5e793a6SGabriel Fernandez #define RCC_PLL4CFGR2_DIVP_SHIFT		0
588*e5e793a6SGabriel Fernandez #define RCC_PLL4CFGR2_DIVQ_MASK			GENMASK_32(14, 8)
589*e5e793a6SGabriel Fernandez #define RCC_PLL4CFGR2_DIVQ_SHIFT		8
590*e5e793a6SGabriel Fernandez #define RCC_PLL4CFGR2_DIVR_MASK			GENMASK_32(22, 16)
591*e5e793a6SGabriel Fernandez #define RCC_PLL4CFGR2_DIVR_SHIFT		16
592*e5e793a6SGabriel Fernandez 
593*e5e793a6SGabriel Fernandez /* RCC_PLL4FRACR register fields */
594*e5e793a6SGabriel Fernandez #define RCC_PLL4FRACR_FRACV_MASK		GENMASK_32(15, 3)
595*e5e793a6SGabriel Fernandez #define RCC_PLL4FRACR_FRACV_SHIFT		3
596*e5e793a6SGabriel Fernandez #define RCC_PLL4FRACR_FRACLE			BIT(16)
597*e5e793a6SGabriel Fernandez 
598*e5e793a6SGabriel Fernandez /* RCC_PLL4CSGR register fields */
599*e5e793a6SGabriel Fernandez #define RCC_PLL4CSGR_MOD_PER_MASK		GENMASK_32(12, 0)
600*e5e793a6SGabriel Fernandez #define RCC_PLL4CSGR_MOD_PER_SHIFT		0
601*e5e793a6SGabriel Fernandez #define RCC_PLL4CSGR_TPDFN_DIS			BIT(13)
602*e5e793a6SGabriel Fernandez #define RCC_PLL4CSGR_RPDFN_DIS			BIT(14)
603*e5e793a6SGabriel Fernandez #define RCC_PLL4CSGR_SSCG_MODE			BIT(15)
604*e5e793a6SGabriel Fernandez #define RCC_PLL4CSGR_INC_STEP_MASK		GENMASK_32(30, 16)
605*e5e793a6SGabriel Fernandez #define RCC_PLL4CSGR_INC_STEP_SHIFT		16
606*e5e793a6SGabriel Fernandez 
607*e5e793a6SGabriel Fernandez /* RCC_MPCKSELR register fields */
608*e5e793a6SGabriel Fernandez #define RCC_MPCKSELR_MPUSRC_MASK		GENMASK_32(1, 0)
609*e5e793a6SGabriel Fernandez #define RCC_MPCKSELR_MPUSRC_SHIFT		0
610*e5e793a6SGabriel Fernandez #define RCC_MPCKSELR_MPUSRCRDY			BIT(31)
611*e5e793a6SGabriel Fernandez 
612*e5e793a6SGabriel Fernandez /* RCC_ASSCKSELR register fields */
613*e5e793a6SGabriel Fernandez #define RCC_ASSCKSELR_AXISSRC_MASK		GENMASK_32(2, 0)
614*e5e793a6SGabriel Fernandez #define RCC_ASSCKSELR_AXISSRC_SHIFT		0
615*e5e793a6SGabriel Fernandez #define RCC_ASSCKSELR_AXISSRCRDY		BIT(31)
616*e5e793a6SGabriel Fernandez 
617*e5e793a6SGabriel Fernandez /* RCC_MSSCKSELR register fields */
618*e5e793a6SGabriel Fernandez #define RCC_MSSCKSELR_MLAHBSSRC_MASK		GENMASK_32(1, 0)
619*e5e793a6SGabriel Fernandez #define RCC_MSSCKSELR_MLAHBSSRC_SHIFT		0
620*e5e793a6SGabriel Fernandez #define RCC_MSSCKSELR_MLAHBSSRCRDY		BIT(31)
621*e5e793a6SGabriel Fernandez 
622*e5e793a6SGabriel Fernandez /* RCC_CPERCKSELR register fields */
623*e5e793a6SGabriel Fernandez #define RCC_CPERCKSELR_CKPERSRC_MASK		GENMASK_32(1, 0)
624*e5e793a6SGabriel Fernandez #define RCC_CPERCKSELR_CKPERSRC_SHIFT		0
625*e5e793a6SGabriel Fernandez 
626*e5e793a6SGabriel Fernandez /* RCC_RTCDIVR register fields */
627*e5e793a6SGabriel Fernandez #define RCC_RTCDIVR_RTCDIV_MASK			GENMASK_32(5, 0)
628*e5e793a6SGabriel Fernandez #define RCC_RTCDIVR_RTCDIV_SHIFT		0
629*e5e793a6SGabriel Fernandez 
630*e5e793a6SGabriel Fernandez /* RCC_MPCKDIVR register fields */
631*e5e793a6SGabriel Fernandez #define RCC_MPCKDIVR_MPUDIV_MASK		GENMASK_32(3, 0)
632*e5e793a6SGabriel Fernandez #define RCC_MPCKDIVR_MPUDIV_SHIFT		0
633*e5e793a6SGabriel Fernandez #define RCC_MPCKDIVR_MPUDIVRDY			BIT(31)
634*e5e793a6SGabriel Fernandez 
635*e5e793a6SGabriel Fernandez /* RCC_AXIDIVR register fields */
636*e5e793a6SGabriel Fernandez #define RCC_AXIDIVR_AXIDIV_MASK			GENMASK_32(2, 0)
637*e5e793a6SGabriel Fernandez #define RCC_AXIDIVR_AXIDIV_SHIFT		0
638*e5e793a6SGabriel Fernandez #define RCC_AXIDIVR_AXIDIVRDY			BIT(31)
639*e5e793a6SGabriel Fernandez 
640*e5e793a6SGabriel Fernandez /* RCC_MLAHBDIVR register fields */
641*e5e793a6SGabriel Fernandez #define RCC_MLAHBDIVR_MLAHBDIV_MASK		GENMASK_32(3, 0)
642*e5e793a6SGabriel Fernandez #define RCC_MLAHBDIVR_MLAHBDIV_SHIFT		0
643*e5e793a6SGabriel Fernandez #define RCC_MLAHBDIVR_MLAHBDIVRDY		BIT(31)
644*e5e793a6SGabriel Fernandez 
645*e5e793a6SGabriel Fernandez /* RCC_APB1DIVR register fields */
646*e5e793a6SGabriel Fernandez #define RCC_APB1DIVR_APB1DIV_MASK		GENMASK_32(2, 0)
647*e5e793a6SGabriel Fernandez #define RCC_APB1DIVR_APB1DIV_SHIFT		0
648*e5e793a6SGabriel Fernandez #define RCC_APB1DIVR_APB1DIVRDY			BIT(31)
649*e5e793a6SGabriel Fernandez 
650*e5e793a6SGabriel Fernandez /* RCC_APB2DIVR register fields */
651*e5e793a6SGabriel Fernandez #define RCC_APB2DIVR_APB2DIV_MASK		GENMASK_32(2, 0)
652*e5e793a6SGabriel Fernandez #define RCC_APB2DIVR_APB2DIV_SHIFT		0
653*e5e793a6SGabriel Fernandez #define RCC_APB2DIVR_APB2DIVRDY			BIT(31)
654*e5e793a6SGabriel Fernandez 
655*e5e793a6SGabriel Fernandez /* RCC_APB3DIVR register fields */
656*e5e793a6SGabriel Fernandez #define RCC_APB3DIVR_APB3DIV_MASK		GENMASK_32(2, 0)
657*e5e793a6SGabriel Fernandez #define RCC_APB3DIVR_APB3DIV_SHIFT		0
658*e5e793a6SGabriel Fernandez #define RCC_APB3DIVR_APB3DIVRDY			BIT(31)
659*e5e793a6SGabriel Fernandez 
660*e5e793a6SGabriel Fernandez /* RCC_APB4DIVR register fields */
661*e5e793a6SGabriel Fernandez #define RCC_APB4DIVR_APB4DIV_MASK		GENMASK_32(2, 0)
662*e5e793a6SGabriel Fernandez #define RCC_APB4DIVR_APB4DIV_SHIFT		0
663*e5e793a6SGabriel Fernandez #define RCC_APB4DIVR_APB4DIVRDY			BIT(31)
664*e5e793a6SGabriel Fernandez 
665*e5e793a6SGabriel Fernandez /* RCC_APB5DIVR register fields */
666*e5e793a6SGabriel Fernandez #define RCC_APB5DIVR_APB5DIV_MASK		GENMASK_32(2, 0)
667*e5e793a6SGabriel Fernandez #define RCC_APB5DIVR_APB5DIV_SHIFT		0
668*e5e793a6SGabriel Fernandez #define RCC_APB5DIVR_APB5DIVRDY			BIT(31)
669*e5e793a6SGabriel Fernandez 
670*e5e793a6SGabriel Fernandez /* RCC_APB6DIVR register fields */
671*e5e793a6SGabriel Fernandez #define RCC_APB6DIVR_APB6DIV_MASK		GENMASK_32(2, 0)
672*e5e793a6SGabriel Fernandez #define RCC_APB6DIVR_APB6DIV_SHIFT		0
673*e5e793a6SGabriel Fernandez #define RCC_APB6DIVR_APB6DIVRDY			BIT(31)
674*e5e793a6SGabriel Fernandez 
675*e5e793a6SGabriel Fernandez /* RCC_TIMG1PRER register fields */
676*e5e793a6SGabriel Fernandez #define RCC_TIMG1PRER_TIMG1PRE			BIT(0)
677*e5e793a6SGabriel Fernandez #define RCC_TIMG1PRER_TIMG1PRERDY		BIT(31)
678*e5e793a6SGabriel Fernandez 
679*e5e793a6SGabriel Fernandez /* RCC_TIMG2PRER register fields */
680*e5e793a6SGabriel Fernandez #define RCC_TIMG2PRER_TIMG2PRE			BIT(0)
681*e5e793a6SGabriel Fernandez #define RCC_TIMG2PRER_TIMG2PRERDY		BIT(31)
682*e5e793a6SGabriel Fernandez 
683*e5e793a6SGabriel Fernandez /* RCC_TIMG3PRER register fields */
684*e5e793a6SGabriel Fernandez #define RCC_TIMG3PRER_TIMG3PRE			BIT(0)
685*e5e793a6SGabriel Fernandez #define RCC_TIMG3PRER_TIMG3PRERDY		BIT(31)
686*e5e793a6SGabriel Fernandez 
687*e5e793a6SGabriel Fernandez /* RCC_DDRITFCR register fields */
688*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRC1EN			BIT(0)
689*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRC1LPEN			BIT(1)
690*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRPHYCEN			BIT(4)
691*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRPHYCLPEN		BIT(5)
692*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRCAPBEN			BIT(6)
693*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRCAPBLPEN		BIT(7)
694*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_AXIDCGEN			BIT(8)
695*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRPHYCAPBEN		BIT(9)
696*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRPHYCAPBLPEN		BIT(10)
697*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_KERDCG_DLY_MASK		GENMASK_32(13, 11)
698*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_KERDCG_DLY_SHIFT		11
699*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRCAPBRST			BIT(14)
700*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRCAXIRST			BIT(15)
701*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRCORERST			BIT(16)
702*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DPHYAPBRST			BIT(17)
703*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DPHYRST			BIT(18)
704*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DPHYCTLRST			BIT(19)
705*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRCKMOD_MASK		GENMASK_32(22, 20)
706*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRCKMOD_SHIFT		20
707*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_GSKPMOD			BIT(23)
708*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_GSKPCTRL			BIT(24)
709*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DFILP_WIDTH_MASK		GENMASK_32(27, 25)
710*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DFILP_WIDTH_SHIFT		25
711*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_GSKP_DUR_MASK		GENMASK_32(31, 28)
712*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_GSKP_DUR_SHIFT		28
713*e5e793a6SGabriel Fernandez 
714*e5e793a6SGabriel Fernandez /* RCC_I2C12CKSELR register fields */
715*e5e793a6SGabriel Fernandez #define RCC_I2C12CKSELR_I2C12SRC_MASK		GENMASK_32(2, 0)
716*e5e793a6SGabriel Fernandez #define RCC_I2C12CKSELR_I2C12SRC_SHIFT		0
717*e5e793a6SGabriel Fernandez 
718*e5e793a6SGabriel Fernandez /* RCC_I2C345CKSELR register fields */
719*e5e793a6SGabriel Fernandez #define RCC_I2C345CKSELR_I2C3SRC_MASK		GENMASK_32(2, 0)
720*e5e793a6SGabriel Fernandez #define RCC_I2C345CKSELR_I2C3SRC_SHIFT		0
721*e5e793a6SGabriel Fernandez #define RCC_I2C345CKSELR_I2C4SRC_MASK		GENMASK_32(5, 3)
722*e5e793a6SGabriel Fernandez #define RCC_I2C345CKSELR_I2C4SRC_SHIFT		3
723*e5e793a6SGabriel Fernandez #define RCC_I2C345CKSELR_I2C5SRC_MASK		GENMASK_32(8, 6)
724*e5e793a6SGabriel Fernandez #define RCC_I2C345CKSELR_I2C5SRC_SHIFT		6
725*e5e793a6SGabriel Fernandez 
726*e5e793a6SGabriel Fernandez /* RCC_SPI2S1CKSELR register fields */
727*e5e793a6SGabriel Fernandez #define RCC_SPI2S1CKSELR_SPI1SRC_MASK		GENMASK_32(2, 0)
728*e5e793a6SGabriel Fernandez #define RCC_SPI2S1CKSELR_SPI1SRC_SHIFT		0
729*e5e793a6SGabriel Fernandez 
730*e5e793a6SGabriel Fernandez /* RCC_SPI2S23CKSELR register fields */
731*e5e793a6SGabriel Fernandez #define RCC_SPI2S23CKSELR_SPI23SRC_MASK		GENMASK_32(2, 0)
732*e5e793a6SGabriel Fernandez #define RCC_SPI2S23CKSELR_SPI23SRC_SHIFT	0
733*e5e793a6SGabriel Fernandez 
734*e5e793a6SGabriel Fernandez /* RCC_SPI45CKSELR register fields */
735*e5e793a6SGabriel Fernandez #define RCC_SPI45CKSELR_SPI4SRC_MASK		GENMASK_32(2, 0)
736*e5e793a6SGabriel Fernandez #define RCC_SPI45CKSELR_SPI4SRC_SHIFT		0
737*e5e793a6SGabriel Fernandez #define RCC_SPI45CKSELR_SPI5SRC_MASK		GENMASK_32(5, 3)
738*e5e793a6SGabriel Fernandez #define RCC_SPI45CKSELR_SPI5SRC_SHIFT		3
739*e5e793a6SGabriel Fernandez 
740*e5e793a6SGabriel Fernandez /* RCC_UART12CKSELR register fields */
741*e5e793a6SGabriel Fernandez #define RCC_UART12CKSELR_UART1SRC_MASK		GENMASK_32(2, 0)
742*e5e793a6SGabriel Fernandez #define RCC_UART12CKSELR_UART1SRC_SHIFT		0
743*e5e793a6SGabriel Fernandez #define RCC_UART12CKSELR_UART2SRC_MASK		GENMASK_32(5, 3)
744*e5e793a6SGabriel Fernandez #define RCC_UART12CKSELR_UART2SRC_SHIFT		3
745*e5e793a6SGabriel Fernandez 
746*e5e793a6SGabriel Fernandez /* RCC_UART35CKSELR register fields */
747*e5e793a6SGabriel Fernandez #define RCC_UART35CKSELR_UART35SRC_MASK		GENMASK_32(2, 0)
748*e5e793a6SGabriel Fernandez #define RCC_UART35CKSELR_UART35SRC_SHIFT	0
749*e5e793a6SGabriel Fernandez 
750*e5e793a6SGabriel Fernandez /* RCC_UART4CKSELR register fields */
751*e5e793a6SGabriel Fernandez #define RCC_UART4CKSELR_UART4SRC_MASK		GENMASK_32(2, 0)
752*e5e793a6SGabriel Fernandez #define RCC_UART4CKSELR_UART4SRC_SHIFT		0
753*e5e793a6SGabriel Fernandez 
754*e5e793a6SGabriel Fernandez /* RCC_UART6CKSELR register fields */
755*e5e793a6SGabriel Fernandez #define RCC_UART6CKSELR_UART6SRC_MASK		GENMASK_32(2, 0)
756*e5e793a6SGabriel Fernandez #define RCC_UART6CKSELR_UART6SRC_SHIFT		0
757*e5e793a6SGabriel Fernandez 
758*e5e793a6SGabriel Fernandez /* RCC_UART78CKSELR register fields */
759*e5e793a6SGabriel Fernandez #define RCC_UART78CKSELR_UART78SRC_MASK		GENMASK_32(2, 0)
760*e5e793a6SGabriel Fernandez #define RCC_UART78CKSELR_UART78SRC_SHIFT	0
761*e5e793a6SGabriel Fernandez 
762*e5e793a6SGabriel Fernandez /* RCC_LPTIM1CKSELR register fields */
763*e5e793a6SGabriel Fernandez #define RCC_LPTIM1CKSELR_LPTIM1SRC_MASK		GENMASK_32(2, 0)
764*e5e793a6SGabriel Fernandez #define RCC_LPTIM1CKSELR_LPTIM1SRC_SHIFT	0
765*e5e793a6SGabriel Fernandez 
766*e5e793a6SGabriel Fernandez /* RCC_LPTIM23CKSELR register fields */
767*e5e793a6SGabriel Fernandez #define RCC_LPTIM23CKSELR_LPTIM2SRC_MASK	GENMASK_32(2, 0)
768*e5e793a6SGabriel Fernandez #define RCC_LPTIM23CKSELR_LPTIM2SRC_SHIFT	0
769*e5e793a6SGabriel Fernandez #define RCC_LPTIM23CKSELR_LPTIM3SRC_MASK	GENMASK_32(5, 3)
770*e5e793a6SGabriel Fernandez #define RCC_LPTIM23CKSELR_LPTIM3SRC_SHIFT	3
771*e5e793a6SGabriel Fernandez 
772*e5e793a6SGabriel Fernandez /* RCC_LPTIM45CKSELR register fields */
773*e5e793a6SGabriel Fernandez #define RCC_LPTIM45CKSELR_LPTIM45SRC_MASK	GENMASK_32(2, 0)
774*e5e793a6SGabriel Fernandez #define RCC_LPTIM45CKSELR_LPTIM45SRC_SHIFT	0
775*e5e793a6SGabriel Fernandez 
776*e5e793a6SGabriel Fernandez /* RCC_SAI1CKSELR register fields */
777*e5e793a6SGabriel Fernandez #define RCC_SAI1CKSELR_SAI1SRC_MASK		GENMASK_32(2, 0)
778*e5e793a6SGabriel Fernandez #define RCC_SAI1CKSELR_SAI1SRC_SHIFT		0
779*e5e793a6SGabriel Fernandez 
780*e5e793a6SGabriel Fernandez /* RCC_SAI2CKSELR register fields */
781*e5e793a6SGabriel Fernandez #define RCC_SAI2CKSELR_SAI2SRC_MASK		GENMASK_32(2, 0)
782*e5e793a6SGabriel Fernandez #define RCC_SAI2CKSELR_SAI2SRC_SHIFT		0
783*e5e793a6SGabriel Fernandez 
784*e5e793a6SGabriel Fernandez /* RCC_FDCANCKSELR register fields */
785*e5e793a6SGabriel Fernandez #define RCC_FDCANCKSELR_FDCANSRC_MASK		GENMASK_32(1, 0)
786*e5e793a6SGabriel Fernandez #define RCC_FDCANCKSELR_FDCANSRC_SHIFT		0
787*e5e793a6SGabriel Fernandez 
788*e5e793a6SGabriel Fernandez /* RCC_SPDIFCKSELR register fields */
789*e5e793a6SGabriel Fernandez #define RCC_SPDIFCKSELR_SPDIFSRC_MASK		GENMASK_32(1, 0)
790*e5e793a6SGabriel Fernandez #define RCC_SPDIFCKSELR_SPDIFSRC_SHIFT		0
791*e5e793a6SGabriel Fernandez 
792*e5e793a6SGabriel Fernandez /* RCC_ADC12CKSELR register fields */
793*e5e793a6SGabriel Fernandez #define RCC_ADC12CKSELR_ADC1SRC_MASK		GENMASK_32(1, 0)
794*e5e793a6SGabriel Fernandez #define RCC_ADC12CKSELR_ADC1SRC_SHIFT		0
795*e5e793a6SGabriel Fernandez #define RCC_ADC12CKSELR_ADC2SRC_MASK		GENMASK_32(3, 2)
796*e5e793a6SGabriel Fernandez #define RCC_ADC12CKSELR_ADC2SRC_SHIFT		2
797*e5e793a6SGabriel Fernandez 
798*e5e793a6SGabriel Fernandez /* RCC_SDMMC12CKSELR register fields */
799*e5e793a6SGabriel Fernandez #define RCC_SDMMC12CKSELR_SDMMC1SRC_MASK	GENMASK_32(2, 0)
800*e5e793a6SGabriel Fernandez #define RCC_SDMMC12CKSELR_SDMMC1SRC_SHIFT	0
801*e5e793a6SGabriel Fernandez #define RCC_SDMMC12CKSELR_SDMMC2SRC_MASK	GENMASK_32(5, 3)
802*e5e793a6SGabriel Fernandez #define RCC_SDMMC12CKSELR_SDMMC2SRC_SHIFT	3
803*e5e793a6SGabriel Fernandez 
804*e5e793a6SGabriel Fernandez /* RCC_ETH12CKSELR register fields */
805*e5e793a6SGabriel Fernandez #define RCC_ETH12CKSELR_ETH1SRC_MASK		GENMASK_32(1, 0)
806*e5e793a6SGabriel Fernandez #define RCC_ETH12CKSELR_ETH1SRC_SHIFT		0
807*e5e793a6SGabriel Fernandez #define RCC_ETH12CKSELR_ETH1PTPDIV_MASK		GENMASK_32(7, 4)
808*e5e793a6SGabriel Fernandez #define RCC_ETH12CKSELR_ETH1PTPDIV_SHIFT	4
809*e5e793a6SGabriel Fernandez #define RCC_ETH12CKSELR_ETH2SRC_MASK		GENMASK_32(9, 8)
810*e5e793a6SGabriel Fernandez #define RCC_ETH12CKSELR_ETH2SRC_SHIFT		8
811*e5e793a6SGabriel Fernandez #define RCC_ETH12CKSELR_ETH2PTPDIV_MASK		GENMASK_32(15, 12)
812*e5e793a6SGabriel Fernandez #define RCC_ETH12CKSELR_ETH2PTPDIV_SHIFT	12
813*e5e793a6SGabriel Fernandez 
814*e5e793a6SGabriel Fernandez /* RCC_USBCKSELR register fields */
815*e5e793a6SGabriel Fernandez #define RCC_USBCKSELR_USBPHYSRC_MASK		GENMASK_32(1, 0)
816*e5e793a6SGabriel Fernandez #define RCC_USBCKSELR_USBPHYSRC_SHIFT		0
817*e5e793a6SGabriel Fernandez #define RCC_USBCKSELR_USBOSRC			BIT(4)
818*e5e793a6SGabriel Fernandez 
819*e5e793a6SGabriel Fernandez /* RCC_QSPICKSELR register fields */
820*e5e793a6SGabriel Fernandez #define RCC_QSPICKSELR_QSPISRC_MASK		GENMASK_32(1, 0)
821*e5e793a6SGabriel Fernandez #define RCC_QSPICKSELR_QSPISRC_SHIFT		0
822*e5e793a6SGabriel Fernandez 
823*e5e793a6SGabriel Fernandez /* RCC_FMCCKSELR register fields */
824*e5e793a6SGabriel Fernandez #define RCC_FMCCKSELR_FMCSRC_MASK		GENMASK_32(1, 0)
825*e5e793a6SGabriel Fernandez #define RCC_FMCCKSELR_FMCSRC_SHIFT		0
826*e5e793a6SGabriel Fernandez 
827*e5e793a6SGabriel Fernandez /* RCC_RNG1CKSELR register fields */
828*e5e793a6SGabriel Fernandez #define RCC_RNG1CKSELR_RNG1SRC_MASK		GENMASK_32(1, 0)
829*e5e793a6SGabriel Fernandez #define RCC_RNG1CKSELR_RNG1SRC_SHIFT		0
830*e5e793a6SGabriel Fernandez 
831*e5e793a6SGabriel Fernandez /* RCC_STGENCKSELR register fields */
832*e5e793a6SGabriel Fernandez #define RCC_STGENCKSELR_STGENSRC_MASK		GENMASK_32(1, 0)
833*e5e793a6SGabriel Fernandez #define RCC_STGENCKSELR_STGENSRC_SHIFT		0
834*e5e793a6SGabriel Fernandez 
835*e5e793a6SGabriel Fernandez /* RCC_DCMIPPCKSELR register fields */
836*e5e793a6SGabriel Fernandez #define RCC_DCMIPPCKSELR_DCMIPPSRC_MASK		GENMASK_32(1, 0)
837*e5e793a6SGabriel Fernandez #define RCC_DCMIPPCKSELR_DCMIPPSRC_SHIFT	0
838*e5e793a6SGabriel Fernandez 
839*e5e793a6SGabriel Fernandez /* RCC_SAESCKSELR register fields */
840*e5e793a6SGabriel Fernandez #define RCC_SAESCKSELR_SAESSRC_MASK		GENMASK_32(1, 0)
841*e5e793a6SGabriel Fernandez #define RCC_SAESCKSELR_SAESSRC_SHIFT		0
842*e5e793a6SGabriel Fernandez 
843*e5e793a6SGabriel Fernandez /* RCC_APB1RSTSETR register fields */
844*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_TIM2RST			BIT(0)
845*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_TIM3RST			BIT(1)
846*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_TIM4RST			BIT(2)
847*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_TIM5RST			BIT(3)
848*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_TIM6RST			BIT(4)
849*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_TIM7RST			BIT(5)
850*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_LPTIM1RST		BIT(9)
851*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_SPI2RST			BIT(11)
852*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_SPI3RST			BIT(12)
853*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_USART3RST		BIT(15)
854*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_UART4RST		BIT(16)
855*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_UART5RST		BIT(17)
856*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_UART7RST		BIT(18)
857*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_UART8RST		BIT(19)
858*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_I2C1RST			BIT(21)
859*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_I2C2RST			BIT(22)
860*e5e793a6SGabriel Fernandez #define RCC_APB1RSTSETR_SPDIFRST		BIT(26)
861*e5e793a6SGabriel Fernandez 
862*e5e793a6SGabriel Fernandez /* RCC_APB1RSTCLRR register fields */
863*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_TIM2RST			BIT(0)
864*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_TIM3RST			BIT(1)
865*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_TIM4RST			BIT(2)
866*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_TIM5RST			BIT(3)
867*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_TIM6RST			BIT(4)
868*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_TIM7RST			BIT(5)
869*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_LPTIM1RST		BIT(9)
870*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_SPI2RST			BIT(11)
871*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_SPI3RST			BIT(12)
872*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_USART3RST		BIT(15)
873*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_UART4RST		BIT(16)
874*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_UART5RST		BIT(17)
875*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_UART7RST		BIT(18)
876*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_UART8RST		BIT(19)
877*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_I2C1RST			BIT(21)
878*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_I2C2RST			BIT(22)
879*e5e793a6SGabriel Fernandez #define RCC_APB1RSTCLRR_SPDIFRST		BIT(26)
880*e5e793a6SGabriel Fernandez 
881*e5e793a6SGabriel Fernandez /* RCC_APB2RSTSETR register fields */
882*e5e793a6SGabriel Fernandez #define RCC_APB2RSTSETR_TIM1RST			BIT(0)
883*e5e793a6SGabriel Fernandez #define RCC_APB2RSTSETR_TIM8RST			BIT(1)
884*e5e793a6SGabriel Fernandez #define RCC_APB2RSTSETR_SPI1RST			BIT(8)
885*e5e793a6SGabriel Fernandez #define RCC_APB2RSTSETR_USART6RST		BIT(13)
886*e5e793a6SGabriel Fernandez #define RCC_APB2RSTSETR_SAI1RST			BIT(16)
887*e5e793a6SGabriel Fernandez #define RCC_APB2RSTSETR_SAI2RST			BIT(17)
888*e5e793a6SGabriel Fernandez #define RCC_APB2RSTSETR_DFSDMRST		BIT(20)
889*e5e793a6SGabriel Fernandez #define RCC_APB2RSTSETR_FDCANRST		BIT(24)
890*e5e793a6SGabriel Fernandez 
891*e5e793a6SGabriel Fernandez /* RCC_APB2RSTCLRR register fields */
892*e5e793a6SGabriel Fernandez #define RCC_APB2RSTCLRR_TIM1RST			BIT(0)
893*e5e793a6SGabriel Fernandez #define RCC_APB2RSTCLRR_TIM8RST			BIT(1)
894*e5e793a6SGabriel Fernandez #define RCC_APB2RSTCLRR_SPI1RST			BIT(8)
895*e5e793a6SGabriel Fernandez #define RCC_APB2RSTCLRR_USART6RST		BIT(13)
896*e5e793a6SGabriel Fernandez #define RCC_APB2RSTCLRR_SAI1RST			BIT(16)
897*e5e793a6SGabriel Fernandez #define RCC_APB2RSTCLRR_SAI2RST			BIT(17)
898*e5e793a6SGabriel Fernandez #define RCC_APB2RSTCLRR_DFSDMRST		BIT(20)
899*e5e793a6SGabriel Fernandez #define RCC_APB2RSTCLRR_FDCANRST		BIT(24)
900*e5e793a6SGabriel Fernandez 
901*e5e793a6SGabriel Fernandez /* RCC_APB3RSTSETR register fields */
902*e5e793a6SGabriel Fernandez #define RCC_APB3RSTSETR_LPTIM2RST		BIT(0)
903*e5e793a6SGabriel Fernandez #define RCC_APB3RSTSETR_LPTIM3RST		BIT(1)
904*e5e793a6SGabriel Fernandez #define RCC_APB3RSTSETR_LPTIM4RST		BIT(2)
905*e5e793a6SGabriel Fernandez #define RCC_APB3RSTSETR_LPTIM5RST		BIT(3)
906*e5e793a6SGabriel Fernandez #define RCC_APB3RSTSETR_SYSCFGRST		BIT(11)
907*e5e793a6SGabriel Fernandez #define RCC_APB3RSTSETR_VREFRST			BIT(13)
908*e5e793a6SGabriel Fernandez #define RCC_APB3RSTSETR_DTSRST			BIT(16)
909*e5e793a6SGabriel Fernandez #define RCC_APB3RSTSETR_PMBCTRLRST		BIT(17)
910*e5e793a6SGabriel Fernandez 
911*e5e793a6SGabriel Fernandez /* RCC_APB3RSTCLRR register fields */
912*e5e793a6SGabriel Fernandez #define RCC_APB3RSTCLRR_LPTIM2RST		BIT(0)
913*e5e793a6SGabriel Fernandez #define RCC_APB3RSTCLRR_LPTIM3RST		BIT(1)
914*e5e793a6SGabriel Fernandez #define RCC_APB3RSTCLRR_LPTIM4RST		BIT(2)
915*e5e793a6SGabriel Fernandez #define RCC_APB3RSTCLRR_LPTIM5RST		BIT(3)
916*e5e793a6SGabriel Fernandez #define RCC_APB3RSTCLRR_SYSCFGRST		BIT(11)
917*e5e793a6SGabriel Fernandez #define RCC_APB3RSTCLRR_VREFRST			BIT(13)
918*e5e793a6SGabriel Fernandez #define RCC_APB3RSTCLRR_DTSRST			BIT(16)
919*e5e793a6SGabriel Fernandez #define RCC_APB3RSTCLRR_PMBCTRLRST		BIT(17)
920*e5e793a6SGabriel Fernandez 
921*e5e793a6SGabriel Fernandez /* RCC_APB4RSTSETR register fields */
922*e5e793a6SGabriel Fernandez #define RCC_APB4RSTSETR_LTDCRST			BIT(0)
923*e5e793a6SGabriel Fernandez #define RCC_APB4RSTSETR_DCMIPPRST		BIT(1)
924*e5e793a6SGabriel Fernandez #define RCC_APB4RSTSETR_DDRPERFMRST		BIT(8)
925*e5e793a6SGabriel Fernandez #define RCC_APB4RSTSETR_USBPHYRST		BIT(16)
926*e5e793a6SGabriel Fernandez 
927*e5e793a6SGabriel Fernandez /* RCC_APB4RSTCLRR register fields */
928*e5e793a6SGabriel Fernandez #define RCC_APB4RSTCLRR_LTDCRST			BIT(0)
929*e5e793a6SGabriel Fernandez #define RCC_APB4RSTCLRR_DCMIPPRST		BIT(1)
930*e5e793a6SGabriel Fernandez #define RCC_APB4RSTCLRR_DDRPERFMRST		BIT(8)
931*e5e793a6SGabriel Fernandez #define RCC_APB4RSTCLRR_USBPHYRST		BIT(16)
932*e5e793a6SGabriel Fernandez 
933*e5e793a6SGabriel Fernandez /* RCC_APB5RSTSETR register fields */
934*e5e793a6SGabriel Fernandez #define RCC_APB5RSTSETR_STGENRST		BIT(20)
935*e5e793a6SGabriel Fernandez 
936*e5e793a6SGabriel Fernandez /* RCC_APB5RSTCLRR register fields */
937*e5e793a6SGabriel Fernandez #define RCC_APB5RSTCLRR_STGENRST		BIT(20)
938*e5e793a6SGabriel Fernandez 
939*e5e793a6SGabriel Fernandez /* RCC_APB6RSTSETR register fields */
940*e5e793a6SGabriel Fernandez #define RCC_APB6RSTSETR_USART1RST		BIT(0)
941*e5e793a6SGabriel Fernandez #define RCC_APB6RSTSETR_USART2RST		BIT(1)
942*e5e793a6SGabriel Fernandez #define RCC_APB6RSTSETR_SPI4RST			BIT(2)
943*e5e793a6SGabriel Fernandez #define RCC_APB6RSTSETR_SPI5RST			BIT(3)
944*e5e793a6SGabriel Fernandez #define RCC_APB6RSTSETR_I2C3RST			BIT(4)
945*e5e793a6SGabriel Fernandez #define RCC_APB6RSTSETR_I2C4RST			BIT(5)
946*e5e793a6SGabriel Fernandez #define RCC_APB6RSTSETR_I2C5RST			BIT(6)
947*e5e793a6SGabriel Fernandez #define RCC_APB6RSTSETR_TIM12RST		BIT(7)
948*e5e793a6SGabriel Fernandez #define RCC_APB6RSTSETR_TIM13RST		BIT(8)
949*e5e793a6SGabriel Fernandez #define RCC_APB6RSTSETR_TIM14RST		BIT(9)
950*e5e793a6SGabriel Fernandez #define RCC_APB6RSTSETR_TIM15RST		BIT(10)
951*e5e793a6SGabriel Fernandez #define RCC_APB6RSTSETR_TIM16RST		BIT(11)
952*e5e793a6SGabriel Fernandez #define RCC_APB6RSTSETR_TIM17RST		BIT(12)
953*e5e793a6SGabriel Fernandez 
954*e5e793a6SGabriel Fernandez /* RCC_APB6RSTCLRR register fields */
955*e5e793a6SGabriel Fernandez #define RCC_APB6RSTCLRR_USART1RST		BIT(0)
956*e5e793a6SGabriel Fernandez #define RCC_APB6RSTCLRR_USART2RST		BIT(1)
957*e5e793a6SGabriel Fernandez #define RCC_APB6RSTCLRR_SPI4RST			BIT(2)
958*e5e793a6SGabriel Fernandez #define RCC_APB6RSTCLRR_SPI5RST			BIT(3)
959*e5e793a6SGabriel Fernandez #define RCC_APB6RSTCLRR_I2C3RST			BIT(4)
960*e5e793a6SGabriel Fernandez #define RCC_APB6RSTCLRR_I2C4RST			BIT(5)
961*e5e793a6SGabriel Fernandez #define RCC_APB6RSTCLRR_I2C5RST			BIT(6)
962*e5e793a6SGabriel Fernandez #define RCC_APB6RSTCLRR_TIM12RST		BIT(7)
963*e5e793a6SGabriel Fernandez #define RCC_APB6RSTCLRR_TIM13RST		BIT(8)
964*e5e793a6SGabriel Fernandez #define RCC_APB6RSTCLRR_TIM14RST		BIT(9)
965*e5e793a6SGabriel Fernandez #define RCC_APB6RSTCLRR_TIM15RST		BIT(10)
966*e5e793a6SGabriel Fernandez #define RCC_APB6RSTCLRR_TIM16RST		BIT(11)
967*e5e793a6SGabriel Fernandez #define RCC_APB6RSTCLRR_TIM17RST		BIT(12)
968*e5e793a6SGabriel Fernandez 
969*e5e793a6SGabriel Fernandez /* RCC_AHB2RSTSETR register fields */
970*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTSETR_DMA1RST			BIT(0)
971*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTSETR_DMA2RST			BIT(1)
972*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTSETR_DMAMUX1RST		BIT(2)
973*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTSETR_DMA3RST			BIT(3)
974*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTSETR_DMAMUX2RST		BIT(4)
975*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTSETR_ADC1RST			BIT(5)
976*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTSETR_ADC2RST			BIT(6)
977*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTSETR_USBORST			BIT(8)
978*e5e793a6SGabriel Fernandez 
979*e5e793a6SGabriel Fernandez /* RCC_AHB2RSTCLRR register fields */
980*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTCLRR_DMA1RST			BIT(0)
981*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTCLRR_DMA2RST			BIT(1)
982*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTCLRR_DMAMUX1RST		BIT(2)
983*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTCLRR_DMA3RST			BIT(3)
984*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTCLRR_DMAMUX2RST		BIT(4)
985*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTCLRR_ADC1RST			BIT(5)
986*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTCLRR_ADC2RST			BIT(6)
987*e5e793a6SGabriel Fernandez #define RCC_AHB2RSTCLRR_USBORST			BIT(8)
988*e5e793a6SGabriel Fernandez 
989*e5e793a6SGabriel Fernandez /* RCC_AHB4RSTSETR register fields */
990*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTSETR_GPIOARST		BIT(0)
991*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTSETR_GPIOBRST		BIT(1)
992*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTSETR_GPIOCRST		BIT(2)
993*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTSETR_GPIODRST		BIT(3)
994*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTSETR_GPIOERST		BIT(4)
995*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTSETR_GPIOFRST		BIT(5)
996*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTSETR_GPIOGRST		BIT(6)
997*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTSETR_GPIOHRST		BIT(7)
998*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTSETR_GPIOIRST		BIT(8)
999*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTSETR_TSCRST			BIT(15)
1000*e5e793a6SGabriel Fernandez 
1001*e5e793a6SGabriel Fernandez /* RCC_AHB4RSTCLRR register fields */
1002*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTCLRR_GPIOARST		BIT(0)
1003*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTCLRR_GPIOBRST		BIT(1)
1004*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTCLRR_GPIOCRST		BIT(2)
1005*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTCLRR_GPIODRST		BIT(3)
1006*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTCLRR_GPIOERST		BIT(4)
1007*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTCLRR_GPIOFRST		BIT(5)
1008*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTCLRR_GPIOGRST		BIT(6)
1009*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTCLRR_GPIOHRST		BIT(7)
1010*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTCLRR_GPIOIRST		BIT(8)
1011*e5e793a6SGabriel Fernandez #define RCC_AHB4RSTCLRR_TSCRST			BIT(15)
1012*e5e793a6SGabriel Fernandez 
1013*e5e793a6SGabriel Fernandez /* RCC_AHB5RSTSETR register fields */
1014*e5e793a6SGabriel Fernandez #define RCC_AHB5RSTSETR_PKARST			BIT(2)
1015*e5e793a6SGabriel Fernandez #define RCC_AHB5RSTSETR_SAESRST			BIT(3)
1016*e5e793a6SGabriel Fernandez #define RCC_AHB5RSTSETR_CRYP1RST		BIT(4)
1017*e5e793a6SGabriel Fernandez #define RCC_AHB5RSTSETR_HASH1RST		BIT(5)
1018*e5e793a6SGabriel Fernandez #define RCC_AHB5RSTSETR_RNG1RST			BIT(6)
1019*e5e793a6SGabriel Fernandez #define RCC_AHB5RSTSETR_AXIMCRST		BIT(16)
1020*e5e793a6SGabriel Fernandez 
1021*e5e793a6SGabriel Fernandez /* RCC_AHB5RSTCLRR register fields */
1022*e5e793a6SGabriel Fernandez #define RCC_AHB5RSTCLRR_PKARST			BIT(2)
1023*e5e793a6SGabriel Fernandez #define RCC_AHB5RSTCLRR_SAESRST			BIT(3)
1024*e5e793a6SGabriel Fernandez #define RCC_AHB5RSTCLRR_CRYP1RST		BIT(4)
1025*e5e793a6SGabriel Fernandez #define RCC_AHB5RSTCLRR_HASH1RST		BIT(5)
1026*e5e793a6SGabriel Fernandez #define RCC_AHB5RSTCLRR_RNG1RST			BIT(6)
1027*e5e793a6SGabriel Fernandez #define RCC_AHB5RSTCLRR_AXIMCRST		BIT(16)
1028*e5e793a6SGabriel Fernandez 
1029*e5e793a6SGabriel Fernandez /* RCC_AHB6RSTSETR register fields */
1030*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTSETR_MDMARST			BIT(0)
1031*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTSETR_MCERST			BIT(1)
1032*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTSETR_ETH1MACRST		BIT(10)
1033*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTSETR_FMCRST			BIT(12)
1034*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTSETR_QSPIRST			BIT(14)
1035*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTSETR_SDMMC1RST		BIT(16)
1036*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTSETR_SDMMC2RST		BIT(17)
1037*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTSETR_CRC1RST			BIT(20)
1038*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTSETR_USBHRST			BIT(24)
1039*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTSETR_ETH2MACRST		BIT(30)
1040*e5e793a6SGabriel Fernandez 
1041*e5e793a6SGabriel Fernandez /* RCC_AHB6RSTCLRR register fields */
1042*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTCLRR_MDMARST			BIT(0)
1043*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTCLRR_MCERST			BIT(1)
1044*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTCLRR_ETH1MACRST		BIT(10)
1045*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTCLRR_FMCRST			BIT(12)
1046*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTCLRR_QSPIRST			BIT(14)
1047*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTCLRR_SDMMC1RST		BIT(16)
1048*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTCLRR_SDMMC2RST		BIT(17)
1049*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTCLRR_CRC1RST			BIT(20)
1050*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTCLRR_USBHRST			BIT(24)
1051*e5e793a6SGabriel Fernandez #define RCC_AHB6RSTCLRR_ETH2MACRST		BIT(30)
1052*e5e793a6SGabriel Fernandez 
1053*e5e793a6SGabriel Fernandez /* RCC_MP_APB1ENSETR register fields */
1054*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_TIM2EN		BIT(0)
1055*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_TIM3EN		BIT(1)
1056*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_TIM4EN		BIT(2)
1057*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_TIM5EN		BIT(3)
1058*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_TIM6EN		BIT(4)
1059*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_TIM7EN		BIT(5)
1060*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_LPTIM1EN		BIT(9)
1061*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_SPI2EN		BIT(11)
1062*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_SPI3EN		BIT(12)
1063*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_USART3EN		BIT(15)
1064*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_UART4EN		BIT(16)
1065*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_UART5EN		BIT(17)
1066*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_UART7EN		BIT(18)
1067*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_UART8EN		BIT(19)
1068*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_I2C1EN		BIT(21)
1069*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_I2C2EN		BIT(22)
1070*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENSETR_SPDIFEN		BIT(26)
1071*e5e793a6SGabriel Fernandez 
1072*e5e793a6SGabriel Fernandez /* RCC_MP_APB1ENCLRR register fields */
1073*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_TIM2EN		BIT(0)
1074*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_TIM3EN		BIT(1)
1075*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_TIM4EN		BIT(2)
1076*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_TIM5EN		BIT(3)
1077*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_TIM6EN		BIT(4)
1078*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_TIM7EN		BIT(5)
1079*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_LPTIM1EN		BIT(9)
1080*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_SPI2EN		BIT(11)
1081*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_SPI3EN		BIT(12)
1082*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_USART3EN		BIT(15)
1083*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_UART4EN		BIT(16)
1084*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_UART5EN		BIT(17)
1085*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_UART7EN		BIT(18)
1086*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_UART8EN		BIT(19)
1087*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_I2C1EN		BIT(21)
1088*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_I2C2EN		BIT(22)
1089*e5e793a6SGabriel Fernandez #define RCC_MP_APB1ENCLRR_SPDIFEN		BIT(26)
1090*e5e793a6SGabriel Fernandez 
1091*e5e793a6SGabriel Fernandez /* RCC_MP_APB2ENSETR register fields */
1092*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENSETR_TIM1EN		BIT(0)
1093*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENSETR_TIM8EN		BIT(1)
1094*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENSETR_SPI1EN		BIT(8)
1095*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENSETR_USART6EN		BIT(13)
1096*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENSETR_SAI1EN		BIT(16)
1097*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENSETR_SAI2EN		BIT(17)
1098*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENSETR_DFSDMEN		BIT(20)
1099*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENSETR_ADFSDMEN		BIT(21)
1100*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENSETR_FDCANEN		BIT(24)
1101*e5e793a6SGabriel Fernandez 
1102*e5e793a6SGabriel Fernandez /* RCC_MP_APB2ENCLRR register fields */
1103*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENCLRR_TIM1EN		BIT(0)
1104*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENCLRR_TIM8EN		BIT(1)
1105*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENCLRR_SPI1EN		BIT(8)
1106*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENCLRR_USART6EN		BIT(13)
1107*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENCLRR_SAI1EN		BIT(16)
1108*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENCLRR_SAI2EN		BIT(17)
1109*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENCLRR_DFSDMEN		BIT(20)
1110*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENCLRR_ADFSDMEN		BIT(21)
1111*e5e793a6SGabriel Fernandez #define RCC_MP_APB2ENCLRR_FDCANEN		BIT(24)
1112*e5e793a6SGabriel Fernandez 
1113*e5e793a6SGabriel Fernandez /* RCC_MP_APB3ENSETR register fields */
1114*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENSETR_LPTIM2EN		BIT(0)
1115*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENSETR_LPTIM3EN		BIT(1)
1116*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENSETR_LPTIM4EN		BIT(2)
1117*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENSETR_LPTIM5EN		BIT(3)
1118*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENSETR_VREFEN		BIT(13)
1119*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENSETR_DTSEN			BIT(16)
1120*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENSETR_PMBCTRLEN		BIT(17)
1121*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENSETR_HDPEN			BIT(20)
1122*e5e793a6SGabriel Fernandez 
1123*e5e793a6SGabriel Fernandez /* RCC_MP_APB3ENCLRR register fields */
1124*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENCLRR_LPTIM2EN		BIT(0)
1125*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENCLRR_LPTIM3EN		BIT(1)
1126*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENCLRR_LPTIM4EN		BIT(2)
1127*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENCLRR_LPTIM5EN		BIT(3)
1128*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENCLRR_VREFEN		BIT(13)
1129*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENCLRR_DTSEN			BIT(16)
1130*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENCLRR_PMBCTRLEN		BIT(17)
1131*e5e793a6SGabriel Fernandez #define RCC_MP_APB3ENCLRR_HDPEN			BIT(20)
1132*e5e793a6SGabriel Fernandez 
1133*e5e793a6SGabriel Fernandez /* RCC_MP_S_APB3ENSETR register fields */
1134*e5e793a6SGabriel Fernandez #define RCC_MP_S_APB3ENSETR_SYSCFGEN		BIT(0)
1135*e5e793a6SGabriel Fernandez 
1136*e5e793a6SGabriel Fernandez /* RCC_MP_S_APB3ENCLRR register fields */
1137*e5e793a6SGabriel Fernandez #define RCC_MP_S_APB3ENCLRR_SYSCFGEN		BIT(0)
1138*e5e793a6SGabriel Fernandez 
1139*e5e793a6SGabriel Fernandez /* RCC_MP_NS_APB3ENSETR register fields */
1140*e5e793a6SGabriel Fernandez #define RCC_MP_NS_APB3ENSETR_SYSCFGEN		BIT(0)
1141*e5e793a6SGabriel Fernandez 
1142*e5e793a6SGabriel Fernandez /* RCC_MP_NS_APB3ENCLRR register fields */
1143*e5e793a6SGabriel Fernandez #define RCC_MP_NS_APB3ENCLRR_SYSCFGEN		BIT(0)
1144*e5e793a6SGabriel Fernandez 
1145*e5e793a6SGabriel Fernandez /* RCC_MP_APB4ENSETR register fields */
1146*e5e793a6SGabriel Fernandez #define RCC_MP_APB4ENSETR_DCMIPPEN		BIT(1)
1147*e5e793a6SGabriel Fernandez #define RCC_MP_APB4ENSETR_DDRPERFMEN		BIT(8)
1148*e5e793a6SGabriel Fernandez #define RCC_MP_APB4ENSETR_IWDG2APBEN		BIT(15)
1149*e5e793a6SGabriel Fernandez #define RCC_MP_APB4ENSETR_USBPHYEN		BIT(16)
1150*e5e793a6SGabriel Fernandez #define RCC_MP_APB4ENSETR_STGENROEN		BIT(20)
1151*e5e793a6SGabriel Fernandez 
1152*e5e793a6SGabriel Fernandez /* RCC_MP_APB4ENCLRR register fields */
1153*e5e793a6SGabriel Fernandez #define RCC_MP_APB4ENCLRR_DCMIPPEN		BIT(1)
1154*e5e793a6SGabriel Fernandez #define RCC_MP_APB4ENCLRR_DDRPERFMEN		BIT(8)
1155*e5e793a6SGabriel Fernandez #define RCC_MP_APB4ENCLRR_IWDG2APBEN		BIT(15)
1156*e5e793a6SGabriel Fernandez #define RCC_MP_APB4ENCLRR_USBPHYEN		BIT(16)
1157*e5e793a6SGabriel Fernandez #define RCC_MP_APB4ENCLRR_STGENROEN		BIT(20)
1158*e5e793a6SGabriel Fernandez 
1159*e5e793a6SGabriel Fernandez /* RCC_MP_S_APB4ENSETR register fields */
1160*e5e793a6SGabriel Fernandez #define RCC_MP_S_APB4ENSETR_LTDCEN		BIT(0)
1161*e5e793a6SGabriel Fernandez 
1162*e5e793a6SGabriel Fernandez /* RCC_MP_S_APB4ENCLRR register fields */
1163*e5e793a6SGabriel Fernandez #define RCC_MP_S_APB4ENCLRR_LTDCEN		BIT(0)
1164*e5e793a6SGabriel Fernandez 
1165*e5e793a6SGabriel Fernandez /* RCC_MP_NS_APB4ENSETR register fields */
1166*e5e793a6SGabriel Fernandez #define RCC_MP_NS_APB4ENSETR_LTDCEN		BIT(0)
1167*e5e793a6SGabriel Fernandez 
1168*e5e793a6SGabriel Fernandez /* RCC_MP_NS_APB4ENCLRR register fields */
1169*e5e793a6SGabriel Fernandez #define RCC_MP_NS_APB4ENCLRR_LTDCEN		BIT(0)
1170*e5e793a6SGabriel Fernandez 
1171*e5e793a6SGabriel Fernandez /* RCC_MP_APB5ENSETR register fields */
1172*e5e793a6SGabriel Fernandez #define RCC_MP_APB5ENSETR_RTCAPBEN		BIT(8)
1173*e5e793a6SGabriel Fernandez #define RCC_MP_APB5ENSETR_TZCEN			BIT(11)
1174*e5e793a6SGabriel Fernandez #define RCC_MP_APB5ENSETR_ETZPCEN		BIT(13)
1175*e5e793a6SGabriel Fernandez #define RCC_MP_APB5ENSETR_IWDG1APBEN		BIT(15)
1176*e5e793a6SGabriel Fernandez #define RCC_MP_APB5ENSETR_BSECEN		BIT(16)
1177*e5e793a6SGabriel Fernandez #define RCC_MP_APB5ENSETR_STGENCEN		BIT(20)
1178*e5e793a6SGabriel Fernandez 
1179*e5e793a6SGabriel Fernandez /* RCC_MP_APB5ENCLRR register fields */
1180*e5e793a6SGabriel Fernandez #define RCC_MP_APB5ENCLRR_RTCAPBEN		BIT(8)
1181*e5e793a6SGabriel Fernandez #define RCC_MP_APB5ENCLRR_TZCEN			BIT(11)
1182*e5e793a6SGabriel Fernandez #define RCC_MP_APB5ENCLRR_ETZPCEN		BIT(13)
1183*e5e793a6SGabriel Fernandez #define RCC_MP_APB5ENCLRR_IWDG1APBEN		BIT(15)
1184*e5e793a6SGabriel Fernandez #define RCC_MP_APB5ENCLRR_BSECEN		BIT(16)
1185*e5e793a6SGabriel Fernandez #define RCC_MP_APB5ENCLRR_STGENCEN		BIT(20)
1186*e5e793a6SGabriel Fernandez 
1187*e5e793a6SGabriel Fernandez /* RCC_MP_APB6ENSETR register fields */
1188*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENSETR_USART1EN		BIT(0)
1189*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENSETR_USART2EN		BIT(1)
1190*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENSETR_SPI4EN		BIT(2)
1191*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENSETR_SPI5EN		BIT(3)
1192*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENSETR_I2C3EN		BIT(4)
1193*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENSETR_I2C4EN		BIT(5)
1194*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENSETR_I2C5EN		BIT(6)
1195*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENSETR_TIM12EN		BIT(7)
1196*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENSETR_TIM13EN		BIT(8)
1197*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENSETR_TIM14EN		BIT(9)
1198*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENSETR_TIM15EN		BIT(10)
1199*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENSETR_TIM16EN		BIT(11)
1200*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENSETR_TIM17EN		BIT(12)
1201*e5e793a6SGabriel Fernandez 
1202*e5e793a6SGabriel Fernandez /* RCC_MP_APB6ENCLRR register fields */
1203*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENCLRR_USART1EN		BIT(0)
1204*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENCLRR_USART2EN		BIT(1)
1205*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENCLRR_SPI4EN		BIT(2)
1206*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENCLRR_SPI5EN		BIT(3)
1207*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENCLRR_I2C3EN		BIT(4)
1208*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENCLRR_I2C4EN		BIT(5)
1209*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENCLRR_I2C5EN		BIT(6)
1210*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENCLRR_TIM12EN		BIT(7)
1211*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENCLRR_TIM13EN		BIT(8)
1212*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENCLRR_TIM14EN		BIT(9)
1213*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENCLRR_TIM15EN		BIT(10)
1214*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENCLRR_TIM16EN		BIT(11)
1215*e5e793a6SGabriel Fernandez #define RCC_MP_APB6ENCLRR_TIM17EN		BIT(12)
1216*e5e793a6SGabriel Fernandez 
1217*e5e793a6SGabriel Fernandez /* RCC_MP_AHB2ENSETR register fields */
1218*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENSETR_DMA1EN		BIT(0)
1219*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENSETR_DMA2EN		BIT(1)
1220*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENSETR_DMAMUX1EN		BIT(2)
1221*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENSETR_DMA3EN		BIT(3)
1222*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENSETR_DMAMUX2EN		BIT(4)
1223*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENSETR_ADC1EN		BIT(5)
1224*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENSETR_ADC2EN		BIT(6)
1225*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENSETR_USBOEN		BIT(8)
1226*e5e793a6SGabriel Fernandez 
1227*e5e793a6SGabriel Fernandez /* RCC_MP_AHB2ENCLRR register fields */
1228*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENCLRR_DMA1EN		BIT(0)
1229*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENCLRR_DMA2EN		BIT(1)
1230*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENCLRR_DMAMUX1EN		BIT(2)
1231*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENCLRR_DMA3EN		BIT(3)
1232*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENCLRR_DMAMUX2EN		BIT(4)
1233*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENCLRR_ADC1EN		BIT(5)
1234*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENCLRR_ADC2EN		BIT(6)
1235*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2ENCLRR_USBOEN		BIT(8)
1236*e5e793a6SGabriel Fernandez 
1237*e5e793a6SGabriel Fernandez /* RCC_MP_AHB4ENSETR register fields */
1238*e5e793a6SGabriel Fernandez #define RCC_MP_AHB4ENSETR_TSCEN			BIT(15)
1239*e5e793a6SGabriel Fernandez 
1240*e5e793a6SGabriel Fernandez /* RCC_MP_AHB4ENCLRR register fields */
1241*e5e793a6SGabriel Fernandez #define RCC_MP_AHB4ENCLRR_TSCEN			BIT(15)
1242*e5e793a6SGabriel Fernandez 
1243*e5e793a6SGabriel Fernandez /* RCC_MP_S_AHB4ENSETR register fields */
1244*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENSETR_GPIOAEN		BIT(0)
1245*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENSETR_GPIOBEN		BIT(1)
1246*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENSETR_GPIOCEN		BIT(2)
1247*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENSETR_GPIODEN		BIT(3)
1248*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENSETR_GPIOEEN		BIT(4)
1249*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENSETR_GPIOFEN		BIT(5)
1250*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENSETR_GPIOGEN		BIT(6)
1251*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENSETR_GPIOHEN		BIT(7)
1252*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENSETR_GPIOIEN		BIT(8)
1253*e5e793a6SGabriel Fernandez 
1254*e5e793a6SGabriel Fernandez /* RCC_MP_S_AHB4ENCLRR register fields */
1255*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENCLRR_GPIOAEN		BIT(0)
1256*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENCLRR_GPIOBEN		BIT(1)
1257*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENCLRR_GPIOCEN		BIT(2)
1258*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENCLRR_GPIODEN		BIT(3)
1259*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENCLRR_GPIOEEN		BIT(4)
1260*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENCLRR_GPIOFEN		BIT(5)
1261*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENCLRR_GPIOGEN		BIT(6)
1262*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENCLRR_GPIOHEN		BIT(7)
1263*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4ENCLRR_GPIOIEN		BIT(8)
1264*e5e793a6SGabriel Fernandez 
1265*e5e793a6SGabriel Fernandez /* RCC_MP_NS_AHB4ENSETR register fields */
1266*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENSETR_GPIOAEN		BIT(0)
1267*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENSETR_GPIOBEN		BIT(1)
1268*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENSETR_GPIOCEN		BIT(2)
1269*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENSETR_GPIODEN		BIT(3)
1270*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENSETR_GPIOEEN		BIT(4)
1271*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENSETR_GPIOFEN		BIT(5)
1272*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENSETR_GPIOGEN		BIT(6)
1273*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENSETR_GPIOHEN		BIT(7)
1274*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENSETR_GPIOIEN		BIT(8)
1275*e5e793a6SGabriel Fernandez 
1276*e5e793a6SGabriel Fernandez /* RCC_MP_NS_AHB4ENCLRR register fields */
1277*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENCLRR_GPIOAEN		BIT(0)
1278*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENCLRR_GPIOBEN		BIT(1)
1279*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENCLRR_GPIOCEN		BIT(2)
1280*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENCLRR_GPIODEN		BIT(3)
1281*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENCLRR_GPIOEEN		BIT(4)
1282*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENCLRR_GPIOFEN		BIT(5)
1283*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENCLRR_GPIOGEN		BIT(6)
1284*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENCLRR_GPIOHEN		BIT(7)
1285*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4ENCLRR_GPIOIEN		BIT(8)
1286*e5e793a6SGabriel Fernandez 
1287*e5e793a6SGabriel Fernandez /* RCC_MP_AHB5ENSETR register fields */
1288*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5ENSETR_PKAEN			BIT(2)
1289*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5ENSETR_SAESEN		BIT(3)
1290*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5ENSETR_CRYP1EN		BIT(4)
1291*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5ENSETR_HASH1EN		BIT(5)
1292*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5ENSETR_RNG1EN		BIT(6)
1293*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5ENSETR_BKPSRAMEN		BIT(8)
1294*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5ENSETR_AXIMCEN		BIT(16)
1295*e5e793a6SGabriel Fernandez 
1296*e5e793a6SGabriel Fernandez /* RCC_MP_AHB5ENCLRR register fields */
1297*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5ENCLRR_PKAEN			BIT(2)
1298*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5ENCLRR_SAESEN		BIT(3)
1299*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5ENCLRR_CRYP1EN		BIT(4)
1300*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5ENCLRR_HASH1EN		BIT(5)
1301*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5ENCLRR_RNG1EN		BIT(6)
1302*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5ENCLRR_BKPSRAMEN		BIT(8)
1303*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5ENCLRR_AXIMCEN		BIT(16)
1304*e5e793a6SGabriel Fernandez 
1305*e5e793a6SGabriel Fernandez /* RCC_MP_AHB6ENSETR register fields */
1306*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENSETR_MCEEN			BIT(1)
1307*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENSETR_ETH1CKEN		BIT(7)
1308*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENSETR_ETH1TXEN		BIT(8)
1309*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENSETR_ETH1RXEN		BIT(9)
1310*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENSETR_ETH1MACEN		BIT(10)
1311*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENSETR_FMCEN			BIT(12)
1312*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENSETR_QSPIEN		BIT(14)
1313*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENSETR_SDMMC1EN		BIT(16)
1314*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENSETR_SDMMC2EN		BIT(17)
1315*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENSETR_CRC1EN		BIT(20)
1316*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENSETR_USBHEN		BIT(24)
1317*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENSETR_ETH2CKEN		BIT(27)
1318*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENSETR_ETH2TXEN		BIT(28)
1319*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENSETR_ETH2RXEN		BIT(29)
1320*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENSETR_ETH2MACEN		BIT(30)
1321*e5e793a6SGabriel Fernandez 
1322*e5e793a6SGabriel Fernandez /* RCC_MP_AHB6ENCLRR register fields */
1323*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENCLRR_MCEEN			BIT(1)
1324*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENCLRR_ETH1CKEN		BIT(7)
1325*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENCLRR_ETH1TXEN		BIT(8)
1326*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENCLRR_ETH1RXEN		BIT(9)
1327*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENCLRR_ETH1MACEN		BIT(10)
1328*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENCLRR_FMCEN			BIT(12)
1329*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENCLRR_QSPIEN		BIT(14)
1330*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENCLRR_SDMMC1EN		BIT(16)
1331*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENCLRR_SDMMC2EN		BIT(17)
1332*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENCLRR_CRC1EN		BIT(20)
1333*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENCLRR_USBHEN		BIT(24)
1334*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENCLRR_ETH2CKEN		BIT(27)
1335*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENCLRR_ETH2TXEN		BIT(28)
1336*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENCLRR_ETH2RXEN		BIT(29)
1337*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6ENCLRR_ETH2MACEN		BIT(30)
1338*e5e793a6SGabriel Fernandez 
1339*e5e793a6SGabriel Fernandez /* RCC_MP_S_AHB6ENSETR register fields */
1340*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB6ENSETR_MDMAEN		BIT(0)
1341*e5e793a6SGabriel Fernandez 
1342*e5e793a6SGabriel Fernandez /* RCC_MP_S_AHB6ENCLRR register fields */
1343*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB6ENCLRR_MDMAEN		BIT(0)
1344*e5e793a6SGabriel Fernandez 
1345*e5e793a6SGabriel Fernandez /* RCC_MP_NS_AHB6ENSETR register fields */
1346*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB6ENSETR_MDMAEN		BIT(0)
1347*e5e793a6SGabriel Fernandez 
1348*e5e793a6SGabriel Fernandez /* RCC_MP_NS_AHB6ENCLRR register fields */
1349*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB6ENCLRR_MDMAEN		BIT(0)
1350*e5e793a6SGabriel Fernandez 
1351*e5e793a6SGabriel Fernandez /* RCC_MP_APB1LPENSETR register fields */
1352*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_TIM2LPEN		BIT(0)
1353*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_TIM3LPEN		BIT(1)
1354*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_TIM4LPEN		BIT(2)
1355*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_TIM5LPEN		BIT(3)
1356*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_TIM6LPEN		BIT(4)
1357*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_TIM7LPEN		BIT(5)
1358*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_LPTIM1LPEN		BIT(9)
1359*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_SPI2LPEN		BIT(11)
1360*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_SPI3LPEN		BIT(12)
1361*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_USART3LPEN		BIT(15)
1362*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_UART4LPEN		BIT(16)
1363*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_UART5LPEN		BIT(17)
1364*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_UART7LPEN		BIT(18)
1365*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_UART8LPEN		BIT(19)
1366*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_I2C1LPEN		BIT(21)
1367*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_I2C2LPEN		BIT(22)
1368*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENSETR_SPDIFLPEN		BIT(26)
1369*e5e793a6SGabriel Fernandez 
1370*e5e793a6SGabriel Fernandez /* RCC_MP_APB1LPENCLRR register fields */
1371*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_TIM2LPEN		BIT(0)
1372*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_TIM3LPEN		BIT(1)
1373*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_TIM4LPEN		BIT(2)
1374*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_TIM5LPEN		BIT(3)
1375*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_TIM6LPEN		BIT(4)
1376*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_TIM7LPEN		BIT(5)
1377*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_LPTIM1LPEN		BIT(9)
1378*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_SPI2LPEN		BIT(11)
1379*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_SPI3LPEN		BIT(12)
1380*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_USART3LPEN		BIT(15)
1381*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_UART4LPEN		BIT(16)
1382*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_UART5LPEN		BIT(17)
1383*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_UART7LPEN		BIT(18)
1384*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_UART8LPEN		BIT(19)
1385*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_I2C1LPEN		BIT(21)
1386*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_I2C2LPEN		BIT(22)
1387*e5e793a6SGabriel Fernandez #define RCC_MP_APB1LPENCLRR_SPDIFLPEN		BIT(26)
1388*e5e793a6SGabriel Fernandez 
1389*e5e793a6SGabriel Fernandez /* RCC_MP_APB2LPENSETR register fields */
1390*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENSETR_TIM1LPEN		BIT(0)
1391*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENSETR_TIM8LPEN		BIT(1)
1392*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENSETR_SPI1LPEN		BIT(8)
1393*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENSETR_USART6LPEN		BIT(13)
1394*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENSETR_SAI1LPEN		BIT(16)
1395*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENSETR_SAI2LPEN		BIT(17)
1396*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENSETR_DFSDMLPEN		BIT(20)
1397*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENSETR_ADFSDMLPEN		BIT(21)
1398*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENSETR_FDCANLPEN		BIT(24)
1399*e5e793a6SGabriel Fernandez 
1400*e5e793a6SGabriel Fernandez /* RCC_MP_APB2LPENCLRR register fields */
1401*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENCLRR_TIM1LPEN		BIT(0)
1402*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENCLRR_TIM8LPEN		BIT(1)
1403*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENCLRR_SPI1LPEN		BIT(8)
1404*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENCLRR_USART6LPEN		BIT(13)
1405*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENCLRR_SAI1LPEN		BIT(16)
1406*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENCLRR_SAI2LPEN		BIT(17)
1407*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENCLRR_DFSDMLPEN		BIT(20)
1408*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENCLRR_ADFSDMLPEN		BIT(21)
1409*e5e793a6SGabriel Fernandez #define RCC_MP_APB2LPENCLRR_FDCANLPEN		BIT(24)
1410*e5e793a6SGabriel Fernandez 
1411*e5e793a6SGabriel Fernandez /* RCC_MP_APB3LPENSETR register fields */
1412*e5e793a6SGabriel Fernandez #define RCC_MP_APB3LPENSETR_LPTIM2LPEN		BIT(0)
1413*e5e793a6SGabriel Fernandez #define RCC_MP_APB3LPENSETR_LPTIM3LPEN		BIT(1)
1414*e5e793a6SGabriel Fernandez #define RCC_MP_APB3LPENSETR_LPTIM4LPEN		BIT(2)
1415*e5e793a6SGabriel Fernandez #define RCC_MP_APB3LPENSETR_LPTIM5LPEN		BIT(3)
1416*e5e793a6SGabriel Fernandez #define RCC_MP_APB3LPENSETR_VREFLPEN		BIT(13)
1417*e5e793a6SGabriel Fernandez #define RCC_MP_APB3LPENSETR_DTSLPEN		BIT(16)
1418*e5e793a6SGabriel Fernandez #define RCC_MP_APB3LPENSETR_PMBCTRLLPEN		BIT(17)
1419*e5e793a6SGabriel Fernandez 
1420*e5e793a6SGabriel Fernandez /* RCC_MP_APB3LPENCLRR register fields */
1421*e5e793a6SGabriel Fernandez #define RCC_MP_APB3LPENCLRR_LPTIM2LPEN		BIT(0)
1422*e5e793a6SGabriel Fernandez #define RCC_MP_APB3LPENCLRR_LPTIM3LPEN		BIT(1)
1423*e5e793a6SGabriel Fernandez #define RCC_MP_APB3LPENCLRR_LPTIM4LPEN		BIT(2)
1424*e5e793a6SGabriel Fernandez #define RCC_MP_APB3LPENCLRR_LPTIM5LPEN		BIT(3)
1425*e5e793a6SGabriel Fernandez #define RCC_MP_APB3LPENCLRR_VREFLPEN		BIT(13)
1426*e5e793a6SGabriel Fernandez #define RCC_MP_APB3LPENCLRR_DTSLPEN		BIT(16)
1427*e5e793a6SGabriel Fernandez #define RCC_MP_APB3LPENCLRR_PMBCTRLLPEN		BIT(17)
1428*e5e793a6SGabriel Fernandez 
1429*e5e793a6SGabriel Fernandez /* RCC_MP_S_APB3LPENSETR register fields */
1430*e5e793a6SGabriel Fernandez #define RCC_MP_S_APB3LPENSETR_SYSCFGLPEN	BIT(0)
1431*e5e793a6SGabriel Fernandez 
1432*e5e793a6SGabriel Fernandez /* RCC_MP_S_APB3LPENCLRR register fields */
1433*e5e793a6SGabriel Fernandez #define RCC_MP_S_APB3LPENCLRR_SYSCFGLPEN	BIT(0)
1434*e5e793a6SGabriel Fernandez 
1435*e5e793a6SGabriel Fernandez /* RCC_MP_NS_APB3LPENSETR register fields */
1436*e5e793a6SGabriel Fernandez #define RCC_MP_NS_APB3LPENSETR_SYSCFGLPEN	BIT(0)
1437*e5e793a6SGabriel Fernandez 
1438*e5e793a6SGabriel Fernandez /* RCC_MP_NS_APB3LPENCLRR register fields */
1439*e5e793a6SGabriel Fernandez #define RCC_MP_NS_APB3LPENCLRR_SYSCFGLPEN	BIT(0)
1440*e5e793a6SGabriel Fernandez 
1441*e5e793a6SGabriel Fernandez /* RCC_MP_APB4LPENSETR register fields */
1442*e5e793a6SGabriel Fernandez #define RCC_MP_APB4LPENSETR_DCMIPPLPEN		BIT(1)
1443*e5e793a6SGabriel Fernandez #define RCC_MP_APB4LPENSETR_DDRPERFMLPEN	BIT(8)
1444*e5e793a6SGabriel Fernandez #define RCC_MP_APB4LPENSETR_IWDG2APBLPEN	BIT(15)
1445*e5e793a6SGabriel Fernandez #define RCC_MP_APB4LPENSETR_USBPHYLPEN		BIT(16)
1446*e5e793a6SGabriel Fernandez #define RCC_MP_APB4LPENSETR_STGENROLPEN		BIT(20)
1447*e5e793a6SGabriel Fernandez #define RCC_MP_APB4LPENSETR_STGENROSTPEN	BIT(21)
1448*e5e793a6SGabriel Fernandez 
1449*e5e793a6SGabriel Fernandez /* RCC_MP_APB4LPENCLRR register fields */
1450*e5e793a6SGabriel Fernandez #define RCC_MP_APB4LPENCLRR_DCMIPPLPEN		BIT(1)
1451*e5e793a6SGabriel Fernandez #define RCC_MP_APB4LPENCLRR_DDRPERFMLPEN	BIT(8)
1452*e5e793a6SGabriel Fernandez #define RCC_MP_APB4LPENCLRR_IWDG2APBLPEN	BIT(15)
1453*e5e793a6SGabriel Fernandez #define RCC_MP_APB4LPENCLRR_USBPHYLPEN		BIT(16)
1454*e5e793a6SGabriel Fernandez #define RCC_MP_APB4LPENCLRR_STGENROLPEN		BIT(20)
1455*e5e793a6SGabriel Fernandez #define RCC_MP_APB4LPENCLRR_STGENROSTPEN	BIT(21)
1456*e5e793a6SGabriel Fernandez 
1457*e5e793a6SGabriel Fernandez /* RCC_MP_S_APB4LPENSETR register fields */
1458*e5e793a6SGabriel Fernandez #define RCC_MP_S_APB4LPENSETR_LTDCLPEN		BIT(0)
1459*e5e793a6SGabriel Fernandez 
1460*e5e793a6SGabriel Fernandez /* RCC_MP_S_APB4LPENCLRR register fields */
1461*e5e793a6SGabriel Fernandez #define RCC_MP_S_APB4LPENCLRR_LTDCLPEN		BIT(0)
1462*e5e793a6SGabriel Fernandez 
1463*e5e793a6SGabriel Fernandez /* RCC_MP_NS_APB4LPENSETR register fields */
1464*e5e793a6SGabriel Fernandez #define RCC_MP_NS_APB4LPENSETR_LTDCLPEN		BIT(0)
1465*e5e793a6SGabriel Fernandez 
1466*e5e793a6SGabriel Fernandez /* RCC_MP_NS_APB4LPENCLRR register fields */
1467*e5e793a6SGabriel Fernandez #define RCC_MP_NS_APB4LPENCLRR_LTDCLPEN		BIT(0)
1468*e5e793a6SGabriel Fernandez 
1469*e5e793a6SGabriel Fernandez /* RCC_MP_APB5LPENSETR register fields */
1470*e5e793a6SGabriel Fernandez #define RCC_MP_APB5LPENSETR_RTCAPBLPEN		BIT(8)
1471*e5e793a6SGabriel Fernandez #define RCC_MP_APB5LPENSETR_TZCLPEN		BIT(11)
1472*e5e793a6SGabriel Fernandez #define RCC_MP_APB5LPENSETR_ETZPCLPEN		BIT(13)
1473*e5e793a6SGabriel Fernandez #define RCC_MP_APB5LPENSETR_IWDG1APBLPEN	BIT(15)
1474*e5e793a6SGabriel Fernandez #define RCC_MP_APB5LPENSETR_BSECLPEN		BIT(16)
1475*e5e793a6SGabriel Fernandez #define RCC_MP_APB5LPENSETR_STGENCLPEN		BIT(20)
1476*e5e793a6SGabriel Fernandez #define RCC_MP_APB5LPENSETR_STGENCSTPEN		BIT(21)
1477*e5e793a6SGabriel Fernandez 
1478*e5e793a6SGabriel Fernandez /* RCC_MP_APB5LPENCLRR register fields */
1479*e5e793a6SGabriel Fernandez #define RCC_MP_APB5LPENCLRR_RTCAPBLPEN		BIT(8)
1480*e5e793a6SGabriel Fernandez #define RCC_MP_APB5LPENCLRR_TZCLPEN		BIT(11)
1481*e5e793a6SGabriel Fernandez #define RCC_MP_APB5LPENCLRR_ETZPCLPEN		BIT(13)
1482*e5e793a6SGabriel Fernandez #define RCC_MP_APB5LPENCLRR_IWDG1APBLPEN	BIT(15)
1483*e5e793a6SGabriel Fernandez #define RCC_MP_APB5LPENCLRR_BSECLPEN		BIT(16)
1484*e5e793a6SGabriel Fernandez #define RCC_MP_APB5LPENCLRR_STGENCLPEN		BIT(20)
1485*e5e793a6SGabriel Fernandez #define RCC_MP_APB5LPENCLRR_STGENCSTPEN		BIT(21)
1486*e5e793a6SGabriel Fernandez 
1487*e5e793a6SGabriel Fernandez /* RCC_MP_APB6LPENSETR register fields */
1488*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENSETR_USART1LPEN		BIT(0)
1489*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENSETR_USART2LPEN		BIT(1)
1490*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENSETR_SPI4LPEN		BIT(2)
1491*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENSETR_SPI5LPEN		BIT(3)
1492*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENSETR_I2C3LPEN		BIT(4)
1493*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENSETR_I2C4LPEN		BIT(5)
1494*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENSETR_I2C5LPEN		BIT(6)
1495*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENSETR_TIM12LPEN		BIT(7)
1496*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENSETR_TIM13LPEN		BIT(8)
1497*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENSETR_TIM14LPEN		BIT(9)
1498*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENSETR_TIM15LPEN		BIT(10)
1499*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENSETR_TIM16LPEN		BIT(11)
1500*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENSETR_TIM17LPEN		BIT(12)
1501*e5e793a6SGabriel Fernandez 
1502*e5e793a6SGabriel Fernandez /* RCC_MP_APB6LPENCLRR register fields */
1503*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENCLRR_USART1LPEN		BIT(0)
1504*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENCLRR_USART2LPEN		BIT(1)
1505*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENCLRR_SPI4LPEN		BIT(2)
1506*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENCLRR_SPI5LPEN		BIT(3)
1507*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENCLRR_I2C3LPEN		BIT(4)
1508*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENCLRR_I2C4LPEN		BIT(5)
1509*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENCLRR_I2C5LPEN		BIT(6)
1510*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENCLRR_TIM12LPEN		BIT(7)
1511*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENCLRR_TIM13LPEN		BIT(8)
1512*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENCLRR_TIM14LPEN		BIT(9)
1513*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENCLRR_TIM15LPEN		BIT(10)
1514*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENCLRR_TIM16LPEN		BIT(11)
1515*e5e793a6SGabriel Fernandez #define RCC_MP_APB6LPENCLRR_TIM17LPEN		BIT(12)
1516*e5e793a6SGabriel Fernandez 
1517*e5e793a6SGabriel Fernandez /* RCC_MP_AHB2LPENSETR register fields */
1518*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENSETR_DMA1LPEN		BIT(0)
1519*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENSETR_DMA2LPEN		BIT(1)
1520*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENSETR_DMAMUX1LPEN		BIT(2)
1521*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENSETR_DMA3LPEN		BIT(3)
1522*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENSETR_DMAMUX2LPEN		BIT(4)
1523*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENSETR_ADC1LPEN		BIT(5)
1524*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENSETR_ADC2LPEN		BIT(6)
1525*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENSETR_USBOLPEN		BIT(8)
1526*e5e793a6SGabriel Fernandez 
1527*e5e793a6SGabriel Fernandez /* RCC_MP_AHB2LPENCLRR register fields */
1528*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENCLRR_DMA1LPEN		BIT(0)
1529*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENCLRR_DMA2LPEN		BIT(1)
1530*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENCLRR_DMAMUX1LPEN		BIT(2)
1531*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENCLRR_DMA3LPEN		BIT(3)
1532*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENCLRR_DMAMUX2LPEN		BIT(4)
1533*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENCLRR_ADC1LPEN		BIT(5)
1534*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENCLRR_ADC2LPEN		BIT(6)
1535*e5e793a6SGabriel Fernandez #define RCC_MP_AHB2LPENCLRR_USBOLPEN		BIT(8)
1536*e5e793a6SGabriel Fernandez 
1537*e5e793a6SGabriel Fernandez /* RCC_MP_AHB4LPENSETR register fields */
1538*e5e793a6SGabriel Fernandez #define RCC_MP_AHB4LPENSETR_TSCLPEN		BIT(15)
1539*e5e793a6SGabriel Fernandez 
1540*e5e793a6SGabriel Fernandez /* RCC_MP_AHB4LPENCLRR register fields */
1541*e5e793a6SGabriel Fernandez #define RCC_MP_AHB4LPENCLRR_TSCLPEN		BIT(15)
1542*e5e793a6SGabriel Fernandez 
1543*e5e793a6SGabriel Fernandez /* RCC_MP_S_AHB4LPENSETR register fields */
1544*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENSETR_GPIOALPEN		BIT(0)
1545*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENSETR_GPIOBLPEN		BIT(1)
1546*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENSETR_GPIOCLPEN		BIT(2)
1547*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENSETR_GPIODLPEN		BIT(3)
1548*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENSETR_GPIOELPEN		BIT(4)
1549*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENSETR_GPIOFLPEN		BIT(5)
1550*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENSETR_GPIOGLPEN		BIT(6)
1551*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENSETR_GPIOHLPEN		BIT(7)
1552*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENSETR_GPIOILPEN		BIT(8)
1553*e5e793a6SGabriel Fernandez 
1554*e5e793a6SGabriel Fernandez /* RCC_MP_S_AHB4LPENCLRR register fields */
1555*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENCLRR_GPIOALPEN		BIT(0)
1556*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENCLRR_GPIOBLPEN		BIT(1)
1557*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENCLRR_GPIOCLPEN		BIT(2)
1558*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENCLRR_GPIODLPEN		BIT(3)
1559*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENCLRR_GPIOELPEN		BIT(4)
1560*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENCLRR_GPIOFLPEN		BIT(5)
1561*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENCLRR_GPIOGLPEN		BIT(6)
1562*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENCLRR_GPIOHLPEN		BIT(7)
1563*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB4LPENCLRR_GPIOILPEN		BIT(8)
1564*e5e793a6SGabriel Fernandez 
1565*e5e793a6SGabriel Fernandez /* RCC_MP_NS_AHB4LPENSETR register fields */
1566*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENSETR_GPIOALPEN	BIT(0)
1567*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENSETR_GPIOBLPEN	BIT(1)
1568*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENSETR_GPIOCLPEN	BIT(2)
1569*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENSETR_GPIODLPEN	BIT(3)
1570*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENSETR_GPIOELPEN	BIT(4)
1571*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENSETR_GPIOFLPEN	BIT(5)
1572*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENSETR_GPIOGLPEN	BIT(6)
1573*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENSETR_GPIOHLPEN	BIT(7)
1574*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENSETR_GPIOILPEN	BIT(8)
1575*e5e793a6SGabriel Fernandez 
1576*e5e793a6SGabriel Fernandez /* RCC_MP_NS_AHB4LPENCLRR register fields */
1577*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENCLRR_GPIOALPEN	BIT(0)
1578*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENCLRR_GPIOBLPEN	BIT(1)
1579*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENCLRR_GPIOCLPEN	BIT(2)
1580*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENCLRR_GPIODLPEN	BIT(3)
1581*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENCLRR_GPIOELPEN	BIT(4)
1582*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENCLRR_GPIOFLPEN	BIT(5)
1583*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENCLRR_GPIOGLPEN	BIT(6)
1584*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENCLRR_GPIOHLPEN	BIT(7)
1585*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB4LPENCLRR_GPIOILPEN	BIT(8)
1586*e5e793a6SGabriel Fernandez 
1587*e5e793a6SGabriel Fernandez /* RCC_MP_AHB5LPENSETR register fields */
1588*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5LPENSETR_PKALPEN		BIT(2)
1589*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5LPENSETR_SAESLPEN		BIT(3)
1590*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5LPENSETR_CRYP1LPEN		BIT(4)
1591*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5LPENSETR_HASH1LPEN		BIT(5)
1592*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5LPENSETR_RNG1LPEN		BIT(6)
1593*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5LPENSETR_BKPSRAMLPEN		BIT(8)
1594*e5e793a6SGabriel Fernandez 
1595*e5e793a6SGabriel Fernandez /* RCC_MP_AHB5LPENCLRR register fields */
1596*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5LPENCLRR_PKALPEN		BIT(2)
1597*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5LPENCLRR_SAESLPEN		BIT(3)
1598*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5LPENCLRR_CRYP1LPEN		BIT(4)
1599*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5LPENCLRR_HASH1LPEN		BIT(5)
1600*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5LPENCLRR_RNG1LPEN		BIT(6)
1601*e5e793a6SGabriel Fernandez #define RCC_MP_AHB5LPENCLRR_BKPSRAMLPEN		BIT(8)
1602*e5e793a6SGabriel Fernandez 
1603*e5e793a6SGabriel Fernandez /* RCC_MP_AHB6LPENSETR register fields */
1604*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_MCELPEN		BIT(1)
1605*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_ETH1CKLPEN		BIT(7)
1606*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_ETH1TXLPEN		BIT(8)
1607*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_ETH1RXLPEN		BIT(9)
1608*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_ETH1MACLPEN		BIT(10)
1609*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_ETH1STPEN		BIT(11)
1610*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_FMCLPEN		BIT(12)
1611*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_QSPILPEN		BIT(14)
1612*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_SDMMC1LPEN		BIT(16)
1613*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_SDMMC2LPEN		BIT(17)
1614*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_CRC1LPEN		BIT(20)
1615*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_USBHLPEN		BIT(24)
1616*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_ETH2CKLPEN		BIT(27)
1617*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_ETH2TXLPEN		BIT(28)
1618*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_ETH2RXLPEN		BIT(29)
1619*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_ETH2MACLPEN		BIT(30)
1620*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENSETR_ETH2STPEN		BIT(31)
1621*e5e793a6SGabriel Fernandez 
1622*e5e793a6SGabriel Fernandez /* RCC_MP_AHB6LPENCLRR register fields */
1623*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_MCELPEN		BIT(1)
1624*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_ETH1CKLPEN		BIT(7)
1625*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_ETH1TXLPEN		BIT(8)
1626*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_ETH1RXLPEN		BIT(9)
1627*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_ETH1MACLPEN		BIT(10)
1628*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_ETH1STPEN		BIT(11)
1629*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_FMCLPEN		BIT(12)
1630*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_QSPILPEN		BIT(14)
1631*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_SDMMC1LPEN		BIT(16)
1632*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_SDMMC2LPEN		BIT(17)
1633*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_CRC1LPEN		BIT(20)
1634*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_USBHLPEN		BIT(24)
1635*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_ETH2CKLPEN		BIT(27)
1636*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_ETH2TXLPEN		BIT(28)
1637*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_ETH2RXLPEN		BIT(29)
1638*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_ETH2MACLPEN		BIT(30)
1639*e5e793a6SGabriel Fernandez #define RCC_MP_AHB6LPENCLRR_ETH2STPEN		BIT(31)
1640*e5e793a6SGabriel Fernandez 
1641*e5e793a6SGabriel Fernandez /* RCC_MP_S_AHB6LPENSETR register fields */
1642*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB6LPENSETR_MDMALPEN		BIT(0)
1643*e5e793a6SGabriel Fernandez 
1644*e5e793a6SGabriel Fernandez /* RCC_MP_S_AHB6LPENCLRR register fields */
1645*e5e793a6SGabriel Fernandez #define RCC_MP_S_AHB6LPENCLRR_MDMALPEN		BIT(0)
1646*e5e793a6SGabriel Fernandez 
1647*e5e793a6SGabriel Fernandez /* RCC_MP_NS_AHB6LPENSETR register fields */
1648*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB6LPENSETR_MDMALPEN		BIT(0)
1649*e5e793a6SGabriel Fernandez 
1650*e5e793a6SGabriel Fernandez /* RCC_MP_NS_AHB6LPENCLRR register fields */
1651*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AHB6LPENCLRR_MDMALPEN		BIT(0)
1652*e5e793a6SGabriel Fernandez 
1653*e5e793a6SGabriel Fernandez /* RCC_MP_S_AXIMLPENSETR register fields */
1654*e5e793a6SGabriel Fernandez #define RCC_MP_S_AXIMLPENSETR_SYSRAMLPEN	BIT(0)
1655*e5e793a6SGabriel Fernandez 
1656*e5e793a6SGabriel Fernandez /* RCC_MP_S_AXIMLPENCLRR register fields */
1657*e5e793a6SGabriel Fernandez #define RCC_MP_S_AXIMLPENCLRR_SYSRAMLPEN	BIT(0)
1658*e5e793a6SGabriel Fernandez 
1659*e5e793a6SGabriel Fernandez /* RCC_MP_NS_AXIMLPENSETR register fields */
1660*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AXIMLPENSETR_SYSRAMLPEN	BIT(0)
1661*e5e793a6SGabriel Fernandez 
1662*e5e793a6SGabriel Fernandez /* RCC_MP_NS_AXIMLPENCLRR register fields */
1663*e5e793a6SGabriel Fernandez #define RCC_MP_NS_AXIMLPENCLRR_SYSRAMLPEN	BIT(0)
1664*e5e793a6SGabriel Fernandez 
1665*e5e793a6SGabriel Fernandez /* RCC_MP_MLAHBLPENSETR register fields */
1666*e5e793a6SGabriel Fernandez #define RCC_MP_MLAHBLPENSETR_SRAM1LPEN		BIT(0)
1667*e5e793a6SGabriel Fernandez #define RCC_MP_MLAHBLPENSETR_SRAM2LPEN		BIT(1)
1668*e5e793a6SGabriel Fernandez #define RCC_MP_MLAHBLPENSETR_SRAM3LPEN		BIT(2)
1669*e5e793a6SGabriel Fernandez 
1670*e5e793a6SGabriel Fernandez /* RCC_MP_MLAHBLPENCLRR register fields */
1671*e5e793a6SGabriel Fernandez #define RCC_MP_MLAHBLPENCLRR_SRAM1LPEN		BIT(0)
1672*e5e793a6SGabriel Fernandez #define RCC_MP_MLAHBLPENCLRR_SRAM2LPEN		BIT(1)
1673*e5e793a6SGabriel Fernandez #define RCC_MP_MLAHBLPENCLRR_SRAM3LPEN		BIT(2)
1674*e5e793a6SGabriel Fernandez 
1675*e5e793a6SGabriel Fernandez /* RCC_APB3SECSR register fields */
1676*e5e793a6SGabriel Fernandez #define RCC_APB3SECSR_LPTIM2SECF		BIT(0)
1677*e5e793a6SGabriel Fernandez #define RCC_APB3SECSR_LPTIM3SECF		BIT(1)
1678*e5e793a6SGabriel Fernandez #define RCC_APB3SECSR_VREFSECF			BIT(13)
1679*e5e793a6SGabriel Fernandez 
1680*e5e793a6SGabriel Fernandez /* RCC_APB4SECSR register fields */
1681*e5e793a6SGabriel Fernandez #define RCC_APB4SECSR_DCMIPPSECF		BIT(1)
1682*e5e793a6SGabriel Fernandez #define RCC_APB4SECSR_USBPHYSECF		BIT(16)
1683*e5e793a6SGabriel Fernandez 
1684*e5e793a6SGabriel Fernandez /* RCC_APB5SECSR register fields */
1685*e5e793a6SGabriel Fernandez #define RCC_APB5SECSR_RTCSECF			BIT(8)
1686*e5e793a6SGabriel Fernandez #define RCC_APB5SECSR_TZCSECF			BIT(11)
1687*e5e793a6SGabriel Fernandez #define RCC_APB5SECSR_ETZPCSECF			BIT(13)
1688*e5e793a6SGabriel Fernandez #define RCC_APB5SECSR_IWDG1SECF			BIT(15)
1689*e5e793a6SGabriel Fernandez #define RCC_APB5SECSR_BSECSECF			BIT(16)
1690*e5e793a6SGabriel Fernandez #define RCC_APB5SECSR_STGENCSECF_MASK		GENMASK_32(21, 20)
1691*e5e793a6SGabriel Fernandez #define RCC_APB5SECSR_STGENCSECF_SHIFT		20
1692*e5e793a6SGabriel Fernandez 
1693*e5e793a6SGabriel Fernandez /* RCC_APB6SECSR register fields */
1694*e5e793a6SGabriel Fernandez #define RCC_APB6SECSR_USART1SECF		BIT(0)
1695*e5e793a6SGabriel Fernandez #define RCC_APB6SECSR_USART2SECF		BIT(1)
1696*e5e793a6SGabriel Fernandez #define RCC_APB6SECSR_SPI4SECF			BIT(2)
1697*e5e793a6SGabriel Fernandez #define RCC_APB6SECSR_SPI5SECF			BIT(3)
1698*e5e793a6SGabriel Fernandez #define RCC_APB6SECSR_I2C3SECF			BIT(4)
1699*e5e793a6SGabriel Fernandez #define RCC_APB6SECSR_I2C4SECF			BIT(5)
1700*e5e793a6SGabriel Fernandez #define RCC_APB6SECSR_I2C5SECF			BIT(6)
1701*e5e793a6SGabriel Fernandez #define RCC_APB6SECSR_TIM12SECF			BIT(7)
1702*e5e793a6SGabriel Fernandez #define RCC_APB6SECSR_TIM13SECF			BIT(8)
1703*e5e793a6SGabriel Fernandez #define RCC_APB6SECSR_TIM14SECF			BIT(9)
1704*e5e793a6SGabriel Fernandez #define RCC_APB6SECSR_TIM15SECF			BIT(10)
1705*e5e793a6SGabriel Fernandez #define RCC_APB6SECSR_TIM16SECF			BIT(11)
1706*e5e793a6SGabriel Fernandez #define RCC_APB6SECSR_TIM17SECF			BIT(12)
1707*e5e793a6SGabriel Fernandez 
1708*e5e793a6SGabriel Fernandez /* RCC_AHB2SECSR register fields */
1709*e5e793a6SGabriel Fernandez #define RCC_AHB2SECSR_DMA3SECF			BIT(3)
1710*e5e793a6SGabriel Fernandez #define RCC_AHB2SECSR_DMAMUX2SECF		BIT(4)
1711*e5e793a6SGabriel Fernandez #define RCC_AHB2SECSR_ADC1SECF			BIT(5)
1712*e5e793a6SGabriel Fernandez #define RCC_AHB2SECSR_ADC2SECF			BIT(6)
1713*e5e793a6SGabriel Fernandez #define RCC_AHB2SECSR_USBOSECF			BIT(8)
1714*e5e793a6SGabriel Fernandez 
1715*e5e793a6SGabriel Fernandez /* RCC_AHB4SECSR register fields */
1716*e5e793a6SGabriel Fernandez #define RCC_AHB4SECSR_TSCSECF			BIT(15)
1717*e5e793a6SGabriel Fernandez 
1718*e5e793a6SGabriel Fernandez /* RCC_AHB5SECSR register fields */
1719*e5e793a6SGabriel Fernandez #define RCC_AHB5SECSR_PKASECF			BIT(2)
1720*e5e793a6SGabriel Fernandez #define RCC_AHB5SECSR_SAESSECF			BIT(3)
1721*e5e793a6SGabriel Fernandez #define RCC_AHB5SECSR_CRYP1SECF			BIT(4)
1722*e5e793a6SGabriel Fernandez #define RCC_AHB5SECSR_HASH1SECF			BIT(5)
1723*e5e793a6SGabriel Fernandez #define RCC_AHB5SECSR_RNG1SECF			BIT(6)
1724*e5e793a6SGabriel Fernandez #define RCC_AHB5SECSR_BKPSRAMSECF		BIT(8)
1725*e5e793a6SGabriel Fernandez 
1726*e5e793a6SGabriel Fernandez /* RCC_AHB6SECSR register fields */
1727*e5e793a6SGabriel Fernandez #define RCC_AHB6SECSR_MCESECF			BIT(1)
1728*e5e793a6SGabriel Fernandez #define RCC_AHB6SECSR_ETH1SECF_MASK		GENMASK_32(11, 7)
1729*e5e793a6SGabriel Fernandez #define RCC_AHB6SECSR_ETH1SECF_SHIFT		7
1730*e5e793a6SGabriel Fernandez #define RCC_AHB6SECSR_FMCSECF			BIT(12)
1731*e5e793a6SGabriel Fernandez #define RCC_AHB6SECSR_QSPISECF			BIT(14)
1732*e5e793a6SGabriel Fernandez #define RCC_AHB6SECSR_SDMMC1SECF		BIT(16)
1733*e5e793a6SGabriel Fernandez #define RCC_AHB6SECSR_SDMMC2SECF		BIT(17)
1734*e5e793a6SGabriel Fernandez #define RCC_AHB6SECSR_ETH2SECF_MASK		GENMASK_32(31, 27)
1735*e5e793a6SGabriel Fernandez #define RCC_AHB6SECSR_ETH2SECF_SHIFT		27
1736*e5e793a6SGabriel Fernandez 
1737*e5e793a6SGabriel Fernandez /* RCC_VERR register fields */
1738*e5e793a6SGabriel Fernandez #define RCC_VERR_MINREV_MASK			GENMASK_32(3, 0)
1739*e5e793a6SGabriel Fernandez #define RCC_VERR_MINREV_SHIFT			0
1740*e5e793a6SGabriel Fernandez #define RCC_VERR_MAJREV_MASK			GENMASK_32(7, 4)
1741*e5e793a6SGabriel Fernandez #define RCC_VERR_MAJREV_SHIFT			4
1742*e5e793a6SGabriel Fernandez 
1743*e5e793a6SGabriel Fernandez /* RCC_IDR register fields */
1744*e5e793a6SGabriel Fernandez #define RCC_IDR_ID_MASK				GENMASK_32(31, 0)
1745*e5e793a6SGabriel Fernandez #define RCC_IDR_ID_SHIFT			0
1746*e5e793a6SGabriel Fernandez 
1747*e5e793a6SGabriel Fernandez /* RCC_SIDR register fields */
1748*e5e793a6SGabriel Fernandez #define RCC_SIDR_SID_MASK			GENMASK_32(31, 0)
1749*e5e793a6SGabriel Fernandez #define RCC_SIDR_SID_SHIFT			0
1750*e5e793a6SGabriel Fernandez 
1751*e5e793a6SGabriel Fernandez /* Used for all RCC_PLL<n>CR registers */
1752*e5e793a6SGabriel Fernandez #define RCC_PLLNCR_PLLON			BIT(0)
1753*e5e793a6SGabriel Fernandez #define RCC_PLLNCR_PLLRDY			BIT(1)
1754*e5e793a6SGabriel Fernandez #define RCC_PLLNCR_SSCG_CTRL			BIT(2)
1755*e5e793a6SGabriel Fernandez #define RCC_PLLNCR_DIVPEN			BIT(4)
1756*e5e793a6SGabriel Fernandez #define RCC_PLLNCR_DIVQEN			BIT(5)
1757*e5e793a6SGabriel Fernandez #define RCC_PLLNCR_DIVREN			BIT(6)
1758*e5e793a6SGabriel Fernandez #define RCC_PLLNCR_DIVEN_SHIFT			4
1759*e5e793a6SGabriel Fernandez 
1760*e5e793a6SGabriel Fernandez /* Used for all RCC_PLL<n>CFGR1 registers */
1761*e5e793a6SGabriel Fernandez #define RCC_PLLNCFGR1_DIVM_SHIFT		16
1762*e5e793a6SGabriel Fernandez #define RCC_PLLNCFGR1_DIVM_MASK			GENMASK_32(21, 16)
1763*e5e793a6SGabriel Fernandez #define RCC_PLLNCFGR1_DIVN_SHIFT		0
1764*e5e793a6SGabriel Fernandez #define RCC_PLLNCFGR1_DIVN_MASK			GENMASK_32(8, 0)
1765*e5e793a6SGabriel Fernandez 
1766*e5e793a6SGabriel Fernandez /* Only for PLL3 and PLL4 */
1767*e5e793a6SGabriel Fernandez #define RCC_PLLNCFGR1_IFRGE_SHIFT		24
1768*e5e793a6SGabriel Fernandez #define RCC_PLLNCFGR1_IFRGE_MASK		GENMASK_32(25, 24)
1769*e5e793a6SGabriel Fernandez 
1770*e5e793a6SGabriel Fernandez /* Used for all RCC_PLL<n>CFGR2 registers */
1771*e5e793a6SGabriel Fernandez #define RCC_PLLNCFGR2_DIVX_MASK			GENMASK_32(6, 0)
1772*e5e793a6SGabriel Fernandez #define RCC_PLLNCFGR2_DIVP_SHIFT		0
1773*e5e793a6SGabriel Fernandez #define RCC_PLLNCFGR2_DIVP_MASK			GENMASK_32(6, 0)
1774*e5e793a6SGabriel Fernandez #define RCC_PLLNCFGR2_DIVQ_SHIFT		8
1775*e5e793a6SGabriel Fernandez #define RCC_PLLNCFGR2_DIVQ_MASK			GENMASK_32(14, 8)
1776*e5e793a6SGabriel Fernandez #define RCC_PLLNCFGR2_DIVR_SHIFT		16
1777*e5e793a6SGabriel Fernandez #define RCC_PLLNCFGR2_DIVR_MASK			GENMASK_32(22, 16)
1778*e5e793a6SGabriel Fernandez 
1779*e5e793a6SGabriel Fernandez /* Used for all RCC_PLL<n>FRACR registers */
1780*e5e793a6SGabriel Fernandez #define RCC_PLLNFRACR_FRACV_SHIFT		3
1781*e5e793a6SGabriel Fernandez #define RCC_PLLNFRACR_FRACV_MASK		GENMASK_32(15, 3)
1782*e5e793a6SGabriel Fernandez #define RCC_PLLNFRACR_FRACLE			BIT(16)
1783*e5e793a6SGabriel Fernandez 
1784*e5e793a6SGabriel Fernandez /* Used for all RCC_PLL<n>CSGR registers */
1785*e5e793a6SGabriel Fernandez #define RCC_PLLNCSGR_INC_STEP_SHIFT		16
1786*e5e793a6SGabriel Fernandez #define RCC_PLLNCSGR_INC_STEP_MASK		GENMASK_32(30, 16)
1787*e5e793a6SGabriel Fernandez #define RCC_PLLNCSGR_MOD_PER_SHIFT		0
1788*e5e793a6SGabriel Fernandez #define RCC_PLLNCSGR_MOD_PER_MASK		GENMASK_32(12, 0)
1789*e5e793a6SGabriel Fernandez #define RCC_PLLNCSGR_SSCG_MODE_SHIFT		15
1790*e5e793a6SGabriel Fernandez #define RCC_PLLNCSGR_SSCG_MODE_MASK		BIT(15)
1791*e5e793a6SGabriel Fernandez 
1792*e5e793a6SGabriel Fernandez /* Used for most of RCC_<x>SELR registers */
1793*e5e793a6SGabriel Fernandez #define RCC_SELR_SRC_MASK			GENMASK_32(2, 0)
1794*e5e793a6SGabriel Fernandez #define RCC_SELR_REFCLK_SRC_MASK		GENMASK_32(1, 0)
1795*e5e793a6SGabriel Fernandez #define RCC_SELR_SRCRDY				BIT(31)
1796*e5e793a6SGabriel Fernandez 
1797*e5e793a6SGabriel Fernandez /* Values of RCC_MPCKSELR register */
1798*e5e793a6SGabriel Fernandez #define RCC_MPCKSELR_HSI			0x00000000
1799*e5e793a6SGabriel Fernandez #define RCC_MPCKSELR_HSE			0x00000001
1800*e5e793a6SGabriel Fernandez #define RCC_MPCKSELR_PLL			0x00000002
1801*e5e793a6SGabriel Fernandez #define RCC_MPCKSELR_PLL_MPUDIV			0x00000003
1802*e5e793a6SGabriel Fernandez 
1803*e5e793a6SGabriel Fernandez /* Values of RCC_ASSCKSELR register */
1804*e5e793a6SGabriel Fernandez #define RCC_ASSCKSELR_HSI			0x00000000
1805*e5e793a6SGabriel Fernandez #define RCC_ASSCKSELR_HSE			0x00000001
1806*e5e793a6SGabriel Fernandez #define RCC_ASSCKSELR_PLL			0x00000002
1807*e5e793a6SGabriel Fernandez 
1808*e5e793a6SGabriel Fernandez /* Values of RCC_MSSCKSELR register */
1809*e5e793a6SGabriel Fernandez #define RCC_MSSCKSELR_HSI			0x00000000
1810*e5e793a6SGabriel Fernandez #define RCC_MSSCKSELR_HSE			0x00000001
1811*e5e793a6SGabriel Fernandez #define RCC_MSSCKSELR_CSI			0x00000002
1812*e5e793a6SGabriel Fernandez #define RCC_MSSCKSELR_PLL			0x00000003
1813*e5e793a6SGabriel Fernandez 
1814*e5e793a6SGabriel Fernandez /* Values of RCC_CPERCKSELR register */
1815*e5e793a6SGabriel Fernandez #define RCC_CPERCKSELR_HSI			0x00000000
1816*e5e793a6SGabriel Fernandez #define RCC_CPERCKSELR_CSI			0x00000001
1817*e5e793a6SGabriel Fernandez #define RCC_CPERCKSELR_HSE			0x00000002
1818*e5e793a6SGabriel Fernandez 
1819*e5e793a6SGabriel Fernandez /* Used for most of DIVR register: max div for RTC */
1820*e5e793a6SGabriel Fernandez #define RCC_DIVR_DIV_MASK			GENMASK_32(5, 0)
1821*e5e793a6SGabriel Fernandez #define RCC_DIVR_DIVRDY				BIT(31)
1822*e5e793a6SGabriel Fernandez 
1823*e5e793a6SGabriel Fernandez /* Masks for specific DIVR registers */
1824*e5e793a6SGabriel Fernandez #define RCC_APBXDIV_MASK			GENMASK_32(2, 0)
1825*e5e793a6SGabriel Fernandez #define RCC_MPUDIV_MASK				GENMASK_32(2, 0)
1826*e5e793a6SGabriel Fernandez #define RCC_AXIDIV_MASK				GENMASK_32(2, 0)
1827*e5e793a6SGabriel Fernandez #define RCC_MLAHBDIV_MASK			GENMASK_32(3, 0)
1828*e5e793a6SGabriel Fernandez 
1829*e5e793a6SGabriel Fernandez /* Used for TIMER Prescaler */
1830*e5e793a6SGabriel Fernandez #define RCC_TIMGXPRER_TIMGXPRE			BIT(0)
1831*e5e793a6SGabriel Fernandez 
1832*e5e793a6SGabriel Fernandez /* Offset between RCC_MP_xxxENSETR and RCC_MP_xxxENCLRR registers */
1833*e5e793a6SGabriel Fernandez #define RCC_MP_ENCLRR_OFFSET			U(4)
1834*e5e793a6SGabriel Fernandez 
1835*e5e793a6SGabriel Fernandez /* Offset between RCC_xxxRSTSETR and RCC_xxxRSTCLRR registers */
1836*e5e793a6SGabriel Fernandez #define RCC_RSTCLRR_OFFSET			U(4)
1837*e5e793a6SGabriel Fernandez 
1838*e5e793a6SGabriel Fernandez /* RCC_OCENSETR register fields */
1839*e5e793a6SGabriel Fernandez #define RCC_OCENR_HSION				BIT(0)
1840*e5e793a6SGabriel Fernandez #define RCC_OCENR_HSIKERON			BIT(1)
1841*e5e793a6SGabriel Fernandez #define RCC_OCENR_CSION				BIT(4)
1842*e5e793a6SGabriel Fernandez #define RCC_OCENR_CSIKERON			BIT(5)
1843*e5e793a6SGabriel Fernandez #define RCC_OCENR_DIGBYP			BIT(7)
1844*e5e793a6SGabriel Fernandez #define RCC_OCENR_HSEON				BIT(8)
1845*e5e793a6SGabriel Fernandez #define RCC_OCENR_HSEKERON			BIT(9)
1846*e5e793a6SGabriel Fernandez #define RCC_OCENR_HSEBYP			BIT(10)
1847*e5e793a6SGabriel Fernandez #define RCC_OCENR_HSECSSON			BIT(11)
1848*e5e793a6SGabriel Fernandez 
1849*e5e793a6SGabriel Fernandez #define RCC_OCENR_DIGBYP_BIT		        7
1850*e5e793a6SGabriel Fernandez #define RCC_OCENR_HSEBYP_BIT		        10
1851*e5e793a6SGabriel Fernandez #define RCC_OCENR_HSECSSON_BIT		        11
1852*e5e793a6SGabriel Fernandez 
1853*e5e793a6SGabriel Fernandez /* Used for RCC_MCO related operations */
1854*e5e793a6SGabriel Fernandez #define RCC_MCOCFG_MCOON			BIT(12)
1855*e5e793a6SGabriel Fernandez #define RCC_MCOCFG_MCODIV_MASK			GENMASK_32(7, 4)
1856*e5e793a6SGabriel Fernandez #define RCC_MCOCFG_MCODIV_SHIFT			4
1857*e5e793a6SGabriel Fernandez #define RCC_MCOCFG_MCOSRC_MASK			GENMASK_32(2, 0)
1858*e5e793a6SGabriel Fernandez 
1859*e5e793a6SGabriel Fernandez #define RCC_UART4CKSELR_HSI			0x00000002
1860*e5e793a6SGabriel Fernandez 
1861*e5e793a6SGabriel Fernandez #define RCC_CPERCKSELR_PERSRC_MASK		GENMASK_32(1, 0)
1862*e5e793a6SGabriel Fernandez #define RCC_CPERCKSELR_PERSRC_SHIFT		0
1863*e5e793a6SGabriel Fernandez 
1864*e5e793a6SGabriel Fernandez #define RCC_USBCKSELR_USBOSRC_MASK		BIT(4)
1865*e5e793a6SGabriel Fernandez #define RCC_USBCKSELR_USBOSRC_SHIFT		4
1866*e5e793a6SGabriel Fernandez 
1867*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRCKMOD_SSR		0
1868*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRCKMOD_ASR1		BIT(20)
1869*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRCKMOD_HSR1		BIT(21)
1870*e5e793a6SGabriel Fernandez 
1871*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRC2EN			BIT(0)
1872*e5e793a6SGabriel Fernandez #define RCC_DDRITFCR_DDRC2LPEN			BIT(1)
1873*e5e793a6SGabriel Fernandez 
1874*e5e793a6SGabriel Fernandez #define RCC_MP_CIFR_MASK			U(0x110F1F)
1875*e5e793a6SGabriel Fernandez #define RCC_OFFSET_MASK				GENMASK_32(11, 0)
1876*e5e793a6SGabriel Fernandez 
1877*e5e793a6SGabriel Fernandez vaddr_t stm32_rcc_base(void);
1878*e5e793a6SGabriel Fernandez 
1879*e5e793a6SGabriel Fernandez #endif /*__DRIVERS_STM32MP13_RCC_H__*/
1880