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