Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
0002 /*
0003  * Copyright (C) 2020, STMicroelectronics - All Rights Reserved
0004  *
0005  * Configuration settings for the STM32MP13x CPU
0006  */
0007 
0008 #ifndef STM32MP13_RCC_H
0009 #define STM32MP13_RCC_H
0010 /* RCC registers */
0011 #define RCC_SECCFGR         0x0
0012 #define RCC_MP_SREQSETR         0x100
0013 #define RCC_MP_SREQCLRR         0x104
0014 #define RCC_MP_APRSTCR          0x108
0015 #define RCC_MP_APRSTSR          0x10c
0016 #define RCC_PWRLPDLYCR          0x110
0017 #define RCC_MP_GRSTCSETR        0x114
0018 #define RCC_BR_RSTSCLRR         0x118
0019 #define RCC_MP_RSTSSETR         0x11c
0020 #define RCC_MP_RSTSCLRR         0x120
0021 #define RCC_MP_IWDGFZSETR       0x124
0022 #define RCC_MP_IWDGFZCLRR       0x128
0023 #define RCC_MP_CIER         0x200
0024 #define RCC_MP_CIFR         0x204
0025 #define RCC_BDCR            0x400
0026 #define RCC_RDLSICR         0x404
0027 #define RCC_OCENSETR            0x420
0028 #define RCC_OCENCLRR            0x424
0029 #define RCC_OCRDYR          0x428
0030 #define RCC_HSICFGR         0x440
0031 #define RCC_CSICFGR         0x444
0032 #define RCC_MCO1CFGR            0x460
0033 #define RCC_MCO2CFGR            0x464
0034 #define RCC_DBGCFGR         0x468
0035 #define RCC_RCK12SELR           0x480
0036 #define RCC_RCK3SELR            0x484
0037 #define RCC_RCK4SELR            0x488
0038 #define RCC_PLL1CR          0x4a0
0039 #define RCC_PLL1CFGR1           0x4a4
0040 #define RCC_PLL1CFGR2           0x4a8
0041 #define RCC_PLL1FRACR           0x4ac
0042 #define RCC_PLL1CSGR            0x4b0
0043 #define RCC_PLL2CR          0x4d0
0044 #define RCC_PLL2CFGR1           0x4d4
0045 #define RCC_PLL2CFGR2           0x4d8
0046 #define RCC_PLL2FRACR           0x4dc
0047 #define RCC_PLL2CSGR            0x4e0
0048 #define RCC_PLL3CR          0x500
0049 #define RCC_PLL3CFGR1           0x504
0050 #define RCC_PLL3CFGR2           0x508
0051 #define RCC_PLL3FRACR           0x50c
0052 #define RCC_PLL3CSGR            0x510
0053 #define RCC_PLL4CR          0x520
0054 #define RCC_PLL4CFGR1           0x524
0055 #define RCC_PLL4CFGR2           0x528
0056 #define RCC_PLL4FRACR           0x52c
0057 #define RCC_PLL4CSGR            0x530
0058 #define RCC_MPCKSELR            0x540
0059 #define RCC_ASSCKSELR           0x544
0060 #define RCC_MSSCKSELR           0x548
0061 #define RCC_CPERCKSELR          0x54c
0062 #define RCC_RTCDIVR         0x560
0063 #define RCC_MPCKDIVR            0x564
0064 #define RCC_AXIDIVR         0x568
0065 #define RCC_MLAHBDIVR           0x56c
0066 #define RCC_APB1DIVR            0x570
0067 #define RCC_APB2DIVR            0x574
0068 #define RCC_APB3DIVR            0x578
0069 #define RCC_APB4DIVR            0x57c
0070 #define RCC_APB5DIVR            0x580
0071 #define RCC_APB6DIVR            0x584
0072 #define RCC_TIMG1PRER           0x5a0
0073 #define RCC_TIMG2PRER           0x5a4
0074 #define RCC_TIMG3PRER           0x5a8
0075 #define RCC_DDRITFCR            0x5c0
0076 #define RCC_I2C12CKSELR         0x600
0077 #define RCC_I2C345CKSELR        0x604
0078 #define RCC_SPI2S1CKSELR        0x608
0079 #define RCC_SPI2S23CKSELR       0x60c
0080 #define RCC_SPI45CKSELR         0x610
0081 #define RCC_UART12CKSELR        0x614
0082 #define RCC_UART35CKSELR        0x618
0083 #define RCC_UART4CKSELR         0x61c
0084 #define RCC_UART6CKSELR         0x620
0085 #define RCC_UART78CKSELR        0x624
0086 #define RCC_LPTIM1CKSELR        0x628
0087 #define RCC_LPTIM23CKSELR       0x62c
0088 #define RCC_LPTIM45CKSELR       0x630
0089 #define RCC_SAI1CKSELR          0x634
0090 #define RCC_SAI2CKSELR          0x638
0091 #define RCC_FDCANCKSELR         0x63c
0092 #define RCC_SPDIFCKSELR         0x640
0093 #define RCC_ADC12CKSELR         0x644
0094 #define RCC_SDMMC12CKSELR       0x648
0095 #define RCC_ETH12CKSELR         0x64c
0096 #define RCC_USBCKSELR           0x650
0097 #define RCC_QSPICKSELR          0x654
0098 #define RCC_FMCCKSELR           0x658
0099 #define RCC_RNG1CKSELR          0x65c
0100 #define RCC_STGENCKSELR         0x660
0101 #define RCC_DCMIPPCKSELR        0x664
0102 #define RCC_SAESCKSELR          0x668
0103 #define RCC_APB1RSTSETR         0x6a0
0104 #define RCC_APB1RSTCLRR         0x6a4
0105 #define RCC_APB2RSTSETR         0x6a8
0106 #define RCC_APB2RSTCLRR         0x6ac
0107 #define RCC_APB3RSTSETR         0x6b0
0108 #define RCC_APB3RSTCLRR         0x6b4
0109 #define RCC_APB4RSTSETR         0x6b8
0110 #define RCC_APB4RSTCLRR         0x6bc
0111 #define RCC_APB5RSTSETR         0x6c0
0112 #define RCC_APB5RSTCLRR         0x6c4
0113 #define RCC_APB6RSTSETR         0x6c8
0114 #define RCC_APB6RSTCLRR         0x6cc
0115 #define RCC_AHB2RSTSETR         0x6d0
0116 #define RCC_AHB2RSTCLRR         0x6d4
0117 #define RCC_AHB4RSTSETR         0x6e0
0118 #define RCC_AHB4RSTCLRR         0x6e4
0119 #define RCC_AHB5RSTSETR         0x6e8
0120 #define RCC_AHB5RSTCLRR         0x6ec
0121 #define RCC_AHB6RSTSETR         0x6f0
0122 #define RCC_AHB6RSTCLRR         0x6f4
0123 #define RCC_MP_APB1ENSETR       0x700
0124 #define RCC_MP_APB1ENCLRR       0x704
0125 #define RCC_MP_APB2ENSETR       0x708
0126 #define RCC_MP_APB2ENCLRR       0x70c
0127 #define RCC_MP_APB3ENSETR       0x710
0128 #define RCC_MP_APB3ENCLRR       0x714
0129 #define RCC_MP_S_APB3ENSETR     0x718
0130 #define RCC_MP_S_APB3ENCLRR     0x71c
0131 #define RCC_MP_NS_APB3ENSETR        0x720
0132 #define RCC_MP_NS_APB3ENCLRR        0x724
0133 #define RCC_MP_APB4ENSETR       0x728
0134 #define RCC_MP_APB4ENCLRR       0x72c
0135 #define RCC_MP_S_APB4ENSETR     0x730
0136 #define RCC_MP_S_APB4ENCLRR     0x734
0137 #define RCC_MP_NS_APB4ENSETR        0x738
0138 #define RCC_MP_NS_APB4ENCLRR        0x73c
0139 #define RCC_MP_APB5ENSETR       0x740
0140 #define RCC_MP_APB5ENCLRR       0x744
0141 #define RCC_MP_APB6ENSETR       0x748
0142 #define RCC_MP_APB6ENCLRR       0x74c
0143 #define RCC_MP_AHB2ENSETR       0x750
0144 #define RCC_MP_AHB2ENCLRR       0x754
0145 #define RCC_MP_AHB4ENSETR       0x760
0146 #define RCC_MP_AHB4ENCLRR       0x764
0147 #define RCC_MP_S_AHB4ENSETR     0x768
0148 #define RCC_MP_S_AHB4ENCLRR     0x76c
0149 #define RCC_MP_NS_AHB4ENSETR        0x770
0150 #define RCC_MP_NS_AHB4ENCLRR        0x774
0151 #define RCC_MP_AHB5ENSETR       0x778
0152 #define RCC_MP_AHB5ENCLRR       0x77c
0153 #define RCC_MP_AHB6ENSETR       0x780
0154 #define RCC_MP_AHB6ENCLRR       0x784
0155 #define RCC_MP_S_AHB6ENSETR     0x788
0156 #define RCC_MP_S_AHB6ENCLRR     0x78c
0157 #define RCC_MP_NS_AHB6ENSETR        0x790
0158 #define RCC_MP_NS_AHB6ENCLRR        0x794
0159 #define RCC_MP_APB1LPENSETR     0x800
0160 #define RCC_MP_APB1LPENCLRR     0x804
0161 #define RCC_MP_APB2LPENSETR     0x808
0162 #define RCC_MP_APB2LPENCLRR     0x80c
0163 #define RCC_MP_APB3LPENSETR     0x810
0164 #define RCC_MP_APB3LPENCLRR     0x814
0165 #define RCC_MP_S_APB3LPENSETR       0x818
0166 #define RCC_MP_S_APB3LPENCLRR       0x81c
0167 #define RCC_MP_NS_APB3LPENSETR      0x820
0168 #define RCC_MP_NS_APB3LPENCLRR      0x824
0169 #define RCC_MP_APB4LPENSETR     0x828
0170 #define RCC_MP_APB4LPENCLRR     0x82c
0171 #define RCC_MP_S_APB4LPENSETR       0x830
0172 #define RCC_MP_S_APB4LPENCLRR       0x834
0173 #define RCC_MP_NS_APB4LPENSETR      0x838
0174 #define RCC_MP_NS_APB4LPENCLRR      0x83c
0175 #define RCC_MP_APB5LPENSETR     0x840
0176 #define RCC_MP_APB5LPENCLRR     0x844
0177 #define RCC_MP_APB6LPENSETR     0x848
0178 #define RCC_MP_APB6LPENCLRR     0x84c
0179 #define RCC_MP_AHB2LPENSETR     0x850
0180 #define RCC_MP_AHB2LPENCLRR     0x854
0181 #define RCC_MP_AHB4LPENSETR     0x858
0182 #define RCC_MP_AHB4LPENCLRR     0x85c
0183 #define RCC_MP_S_AHB4LPENSETR       0x868
0184 #define RCC_MP_S_AHB4LPENCLRR       0x86c
0185 #define RCC_MP_NS_AHB4LPENSETR      0x870
0186 #define RCC_MP_NS_AHB4LPENCLRR      0x874
0187 #define RCC_MP_AHB5LPENSETR     0x878
0188 #define RCC_MP_AHB5LPENCLRR     0x87c
0189 #define RCC_MP_AHB6LPENSETR     0x880
0190 #define RCC_MP_AHB6LPENCLRR     0x884
0191 #define RCC_MP_S_AHB6LPENSETR       0x888
0192 #define RCC_MP_S_AHB6LPENCLRR       0x88c
0193 #define RCC_MP_NS_AHB6LPENSETR      0x890
0194 #define RCC_MP_NS_AHB6LPENCLRR      0x894
0195 #define RCC_MP_S_AXIMLPENSETR       0x898
0196 #define RCC_MP_S_AXIMLPENCLRR       0x89c
0197 #define RCC_MP_NS_AXIMLPENSETR      0x8a0
0198 #define RCC_MP_NS_AXIMLPENCLRR      0x8a4
0199 #define RCC_MP_MLAHBLPENSETR        0x8a8
0200 #define RCC_MP_MLAHBLPENCLRR        0x8ac
0201 #define RCC_APB3SECSR           0x8c0
0202 #define RCC_APB4SECSR           0x8c4
0203 #define RCC_APB5SECSR           0x8c8
0204 #define RCC_APB6SECSR           0x8cc
0205 #define RCC_AHB2SECSR           0x8d0
0206 #define RCC_AHB4SECSR           0x8d4
0207 #define RCC_AHB5SECSR           0x8d8
0208 #define RCC_AHB6SECSR           0x8dc
0209 #define RCC_VERR            0xff4
0210 #define RCC_IDR             0xff8
0211 #define RCC_SIDR            0xffc
0212 
0213 /* RCC_SECCFGR register fields */
0214 #define RCC_SECCFGR_HSISEC      0
0215 #define RCC_SECCFGR_CSISEC      1
0216 #define RCC_SECCFGR_HSESEC      2
0217 #define RCC_SECCFGR_LSISEC      3
0218 #define RCC_SECCFGR_LSESEC      4
0219 #define RCC_SECCFGR_PLL12SEC        8
0220 #define RCC_SECCFGR_PLL3SEC     9
0221 #define RCC_SECCFGR_PLL4SEC     10
0222 #define RCC_SECCFGR_MPUSEC      11
0223 #define RCC_SECCFGR_AXISEC      12
0224 #define RCC_SECCFGR_MLAHBSEC        13
0225 #define RCC_SECCFGR_APB3DIVSEC      16
0226 #define RCC_SECCFGR_APB4DIVSEC      17
0227 #define RCC_SECCFGR_APB5DIVSEC      18
0228 #define RCC_SECCFGR_APB6DIVSEC      19
0229 #define RCC_SECCFGR_TIMG3SEC        20
0230 #define RCC_SECCFGR_CPERSEC     21
0231 #define RCC_SECCFGR_MCO1SEC     22
0232 #define RCC_SECCFGR_MCO2SEC     23
0233 #define RCC_SECCFGR_STPSEC      24
0234 #define RCC_SECCFGR_RSTSEC      25
0235 #define RCC_SECCFGR_PWRSEC      31
0236 
0237 /* RCC_MP_SREQSETR register fields */
0238 #define RCC_MP_SREQSETR_STPREQ_P0   BIT(0)
0239 
0240 /* RCC_MP_SREQCLRR register fields */
0241 #define RCC_MP_SREQCLRR_STPREQ_P0   BIT(0)
0242 
0243 /* RCC_MP_APRSTCR register fields */
0244 #define RCC_MP_APRSTCR_RDCTLEN      BIT(0)
0245 #define RCC_MP_APRSTCR_RSTTO_MASK   GENMASK(14, 8)
0246 #define RCC_MP_APRSTCR_RSTTO_SHIFT  8
0247 
0248 /* RCC_MP_APRSTSR register fields */
0249 #define RCC_MP_APRSTSR_RSTTOV_MASK  GENMASK(14, 8)
0250 #define RCC_MP_APRSTSR_RSTTOV_SHIFT 8
0251 
0252 /* RCC_PWRLPDLYCR register fields */
0253 #define RCC_PWRLPDLYCR_PWRLP_DLY_MASK   GENMASK(21, 0)
0254 #define RCC_PWRLPDLYCR_PWRLP_DLY_SHIFT  0
0255 
0256 /* RCC_MP_GRSTCSETR register fields */
0257 #define RCC_MP_GRSTCSETR_MPSYSRST   BIT(0)
0258 #define RCC_MP_GRSTCSETR_MPUP0RST   BIT(4)
0259 
0260 /* RCC_BR_RSTSCLRR register fields */
0261 #define RCC_BR_RSTSCLRR_PORRSTF     BIT(0)
0262 #define RCC_BR_RSTSCLRR_BORRSTF     BIT(1)
0263 #define RCC_BR_RSTSCLRR_PADRSTF     BIT(2)
0264 #define RCC_BR_RSTSCLRR_HCSSRSTF    BIT(3)
0265 #define RCC_BR_RSTSCLRR_VCORERSTF   BIT(4)
0266 #define RCC_BR_RSTSCLRR_VCPURSTF    BIT(5)
0267 #define RCC_BR_RSTSCLRR_MPSYSRSTF   BIT(6)
0268 #define RCC_BR_RSTSCLRR_IWDG1RSTF   BIT(8)
0269 #define RCC_BR_RSTSCLRR_IWDG2RSTF   BIT(9)
0270 #define RCC_BR_RSTSCLRR_MPUP0RSTF   BIT(13)
0271 
0272 /* RCC_MP_RSTSSETR register fields */
0273 #define RCC_MP_RSTSSETR_PORRSTF     BIT(0)
0274 #define RCC_MP_RSTSSETR_BORRSTF     BIT(1)
0275 #define RCC_MP_RSTSSETR_PADRSTF     BIT(2)
0276 #define RCC_MP_RSTSSETR_HCSSRSTF    BIT(3)
0277 #define RCC_MP_RSTSSETR_VCORERSTF   BIT(4)
0278 #define RCC_MP_RSTSSETR_VCPURSTF    BIT(5)
0279 #define RCC_MP_RSTSSETR_MPSYSRSTF   BIT(6)
0280 #define RCC_MP_RSTSSETR_IWDG1RSTF   BIT(8)
0281 #define RCC_MP_RSTSSETR_IWDG2RSTF   BIT(9)
0282 #define RCC_MP_RSTSSETR_STP2RSTF    BIT(10)
0283 #define RCC_MP_RSTSSETR_STDBYRSTF   BIT(11)
0284 #define RCC_MP_RSTSSETR_CSTDBYRSTF  BIT(12)
0285 #define RCC_MP_RSTSSETR_MPUP0RSTF   BIT(13)
0286 #define RCC_MP_RSTSSETR_SPARE       BIT(15)
0287 
0288 /* RCC_MP_RSTSCLRR register fields */
0289 #define RCC_MP_RSTSCLRR_PORRSTF     BIT(0)
0290 #define RCC_MP_RSTSCLRR_BORRSTF     BIT(1)
0291 #define RCC_MP_RSTSCLRR_PADRSTF     BIT(2)
0292 #define RCC_MP_RSTSCLRR_HCSSRSTF    BIT(3)
0293 #define RCC_MP_RSTSCLRR_VCORERSTF   BIT(4)
0294 #define RCC_MP_RSTSCLRR_VCPURSTF    BIT(5)
0295 #define RCC_MP_RSTSCLRR_MPSYSRSTF   BIT(6)
0296 #define RCC_MP_RSTSCLRR_IWDG1RSTF   BIT(8)
0297 #define RCC_MP_RSTSCLRR_IWDG2RSTF   BIT(9)
0298 #define RCC_MP_RSTSCLRR_STP2RSTF    BIT(10)
0299 #define RCC_MP_RSTSCLRR_STDBYRSTF   BIT(11)
0300 #define RCC_MP_RSTSCLRR_CSTDBYRSTF  BIT(12)
0301 #define RCC_MP_RSTSCLRR_MPUP0RSTF   BIT(13)
0302 #define RCC_MP_RSTSCLRR_SPARE       BIT(15)
0303 
0304 /* RCC_MP_IWDGFZSETR register fields */
0305 #define RCC_MP_IWDGFZSETR_FZ_IWDG1  BIT(0)
0306 #define RCC_MP_IWDGFZSETR_FZ_IWDG2  BIT(1)
0307 
0308 /* RCC_MP_IWDGFZCLRR register fields */
0309 #define RCC_MP_IWDGFZCLRR_FZ_IWDG1  BIT(0)
0310 #define RCC_MP_IWDGFZCLRR_FZ_IWDG2  BIT(1)
0311 
0312 /* RCC_MP_CIER register fields */
0313 #define RCC_MP_CIER_LSIRDYIE        BIT(0)
0314 #define RCC_MP_CIER_LSERDYIE        BIT(1)
0315 #define RCC_MP_CIER_HSIRDYIE        BIT(2)
0316 #define RCC_MP_CIER_HSERDYIE        BIT(3)
0317 #define RCC_MP_CIER_CSIRDYIE        BIT(4)
0318 #define RCC_MP_CIER_PLL1DYIE        BIT(8)
0319 #define RCC_MP_CIER_PLL2DYIE        BIT(9)
0320 #define RCC_MP_CIER_PLL3DYIE        BIT(10)
0321 #define RCC_MP_CIER_PLL4DYIE        BIT(11)
0322 #define RCC_MP_CIER_LSECSSIE        BIT(16)
0323 #define RCC_MP_CIER_WKUPIE      BIT(20)
0324 
0325 /* RCC_MP_CIFR register fields */
0326 #define RCC_MP_CIFR_LSIRDYF     BIT(0)
0327 #define RCC_MP_CIFR_LSERDYF     BIT(1)
0328 #define RCC_MP_CIFR_HSIRDYF     BIT(2)
0329 #define RCC_MP_CIFR_HSERDYF     BIT(3)
0330 #define RCC_MP_CIFR_CSIRDYF     BIT(4)
0331 #define RCC_MP_CIFR_PLL1DYF     BIT(8)
0332 #define RCC_MP_CIFR_PLL2DYF     BIT(9)
0333 #define RCC_MP_CIFR_PLL3DYF     BIT(10)
0334 #define RCC_MP_CIFR_PLL4DYF     BIT(11)
0335 #define RCC_MP_CIFR_LSECSSF     BIT(16)
0336 #define RCC_MP_CIFR_WKUPF       BIT(20)
0337 
0338 /* RCC_BDCR register fields */
0339 #define RCC_BDCR_LSEON          BIT(0)
0340 #define RCC_BDCR_LSEBYP         BIT(1)
0341 #define RCC_BDCR_LSERDY         BIT(2)
0342 #define RCC_BDCR_DIGBYP         BIT(3)
0343 #define RCC_BDCR_LSEDRV_MASK        GENMASK(5, 4)
0344 #define RCC_BDCR_LSECSSON       BIT(8)
0345 #define RCC_BDCR_LSECSSD        BIT(9)
0346 #define RCC_BDCR_RTCSRC_MASK        GENMASK(17, 16)
0347 #define RCC_BDCR_RTCCKEN        BIT(20)
0348 #define RCC_BDCR_VSWRST         BIT(31)
0349 #define RCC_BDCR_LSEDRV_SHIFT       4
0350 #define RCC_BDCR_RTCSRC_SHIFT       16
0351 
0352 /* RCC_RDLSICR register fields */
0353 #define RCC_RDLSICR_LSION       BIT(0)
0354 #define RCC_RDLSICR_LSIRDY      BIT(1)
0355 #define RCC_RDLSICR_MRD_MASK        GENMASK(20, 16)
0356 #define RCC_RDLSICR_EADLY_MASK      GENMASK(26, 24)
0357 #define RCC_RDLSICR_SPARE_MASK      GENMASK(31, 27)
0358 #define RCC_RDLSICR_MRD_SHIFT       16
0359 #define RCC_RDLSICR_EADLY_SHIFT     24
0360 #define RCC_RDLSICR_SPARE_SHIFT     27
0361 
0362 /* RCC_OCENSETR register fields */
0363 #define RCC_OCENSETR_HSION      BIT(0)
0364 #define RCC_OCENSETR_HSIKERON       BIT(1)
0365 #define RCC_OCENSETR_CSION      BIT(4)
0366 #define RCC_OCENSETR_CSIKERON       BIT(5)
0367 #define RCC_OCENSETR_DIGBYP     BIT(7)
0368 #define RCC_OCENSETR_HSEON      BIT(8)
0369 #define RCC_OCENSETR_HSEKERON       BIT(9)
0370 #define RCC_OCENSETR_HSEBYP     BIT(10)
0371 #define RCC_OCENSETR_HSECSSON       BIT(11)
0372 
0373 /* RCC_OCENCLRR register fields */
0374 #define RCC_OCENCLRR_HSION      BIT(0)
0375 #define RCC_OCENCLRR_HSIKERON       BIT(1)
0376 #define RCC_OCENCLRR_CSION      BIT(4)
0377 #define RCC_OCENCLRR_CSIKERON       BIT(5)
0378 #define RCC_OCENCLRR_DIGBYP     BIT(7)
0379 #define RCC_OCENCLRR_HSEON      BIT(8)
0380 #define RCC_OCENCLRR_HSEKERON       BIT(9)
0381 #define RCC_OCENCLRR_HSEBYP     BIT(10)
0382 
0383 /* RCC_OCRDYR register fields */
0384 #define RCC_OCRDYR_HSIRDY       BIT(0)
0385 #define RCC_OCRDYR_HSIDIVRDY        BIT(2)
0386 #define RCC_OCRDYR_CSIRDY       BIT(4)
0387 #define RCC_OCRDYR_HSERDY       BIT(8)
0388 #define RCC_OCRDYR_MPUCKRDY     BIT(23)
0389 #define RCC_OCRDYR_AXICKRDY     BIT(24)
0390 
0391 /* RCC_HSICFGR register fields */
0392 #define RCC_HSICFGR_HSIDIV_MASK     GENMASK(1, 0)
0393 #define RCC_HSICFGR_HSITRIM_MASK    GENMASK(14, 8)
0394 #define RCC_HSICFGR_HSICAL_MASK     GENMASK(27, 16)
0395 #define RCC_HSICFGR_HSIDIV_SHIFT    0
0396 #define RCC_HSICFGR_HSITRIM_SHIFT   8
0397 #define RCC_HSICFGR_HSICAL_SHIFT    16
0398 
0399 /* RCC_CSICFGR register fields */
0400 #define RCC_CSICFGR_CSITRIM_MASK    GENMASK(12, 8)
0401 #define RCC_CSICFGR_CSICAL_MASK     GENMASK(23, 16)
0402 #define RCC_CSICFGR_CSITRIM_SHIFT   8
0403 #define RCC_CSICFGR_CSICAL_SHIFT    16
0404 
0405 /* RCC_MCO1CFGR register fields */
0406 #define RCC_MCO1CFGR_MCO1SEL_MASK   GENMASK(2, 0)
0407 #define RCC_MCO1CFGR_MCO1DIV_MASK   GENMASK(7, 4)
0408 #define RCC_MCO1CFGR_MCO1ON     BIT(12)
0409 #define RCC_MCO1CFGR_MCO1SEL_SHIFT  0
0410 #define RCC_MCO1CFGR_MCO1DIV_SHIFT  4
0411 
0412 /* RCC_MCO2CFGR register fields */
0413 #define RCC_MCO2CFGR_MCO2SEL_MASK   GENMASK(2, 0)
0414 #define RCC_MCO2CFGR_MCO2DIV_MASK   GENMASK(7, 4)
0415 #define RCC_MCO2CFGR_MCO2ON     BIT(12)
0416 #define RCC_MCO2CFGR_MCO2SEL_SHIFT  0
0417 #define RCC_MCO2CFGR_MCO2DIV_SHIFT  4
0418 
0419 /* RCC_DBGCFGR register fields */
0420 #define RCC_DBGCFGR_TRACEDIV_MASK   GENMASK(2, 0)
0421 #define RCC_DBGCFGR_DBGCKEN     BIT(8)
0422 #define RCC_DBGCFGR_TRACECKEN       BIT(9)
0423 #define RCC_DBGCFGR_DBGRST      BIT(12)
0424 #define RCC_DBGCFGR_TRACEDIV_SHIFT  0
0425 
0426 /* RCC_RCK12SELR register fields */
0427 #define RCC_RCK12SELR_PLL12SRC_MASK GENMASK(1, 0)
0428 #define RCC_RCK12SELR_PLL12SRCRDY   BIT(31)
0429 #define RCC_RCK12SELR_PLL12SRC_SHIFT    0
0430 
0431 /* RCC_RCK3SELR register fields */
0432 #define RCC_RCK3SELR_PLL3SRC_MASK   GENMASK(1, 0)
0433 #define RCC_RCK3SELR_PLL3SRCRDY     BIT(31)
0434 #define RCC_RCK3SELR_PLL3SRC_SHIFT  0
0435 
0436 /* RCC_RCK4SELR register fields */
0437 #define RCC_RCK4SELR_PLL4SRC_MASK   GENMASK(1, 0)
0438 #define RCC_RCK4SELR_PLL4SRCRDY     BIT(31)
0439 #define RCC_RCK4SELR_PLL4SRC_SHIFT  0
0440 
0441 /* RCC_PLL1CR register fields */
0442 #define RCC_PLL1CR_PLLON        BIT(0)
0443 #define RCC_PLL1CR_PLL1RDY      BIT(1)
0444 #define RCC_PLL1CR_SSCG_CTRL        BIT(2)
0445 #define RCC_PLL1CR_DIVPEN       BIT(4)
0446 #define RCC_PLL1CR_DIVQEN       BIT(5)
0447 #define RCC_PLL1CR_DIVREN       BIT(6)
0448 
0449 /* RCC_PLL1CFGR1 register fields */
0450 #define RCC_PLL1CFGR1_DIVN_MASK     GENMASK(8, 0)
0451 #define RCC_PLL1CFGR1_DIVM1_MASK    GENMASK(21, 16)
0452 #define RCC_PLL1CFGR1_DIVN_SHIFT    0
0453 #define RCC_PLL1CFGR1_DIVM1_SHIFT   16
0454 
0455 /* RCC_PLL1CFGR2 register fields */
0456 #define RCC_PLL1CFGR2_DIVP_MASK     GENMASK(6, 0)
0457 #define RCC_PLL1CFGR2_DIVQ_MASK     GENMASK(14, 8)
0458 #define RCC_PLL1CFGR2_DIVR_MASK     GENMASK(22, 16)
0459 #define RCC_PLL1CFGR2_DIVP_SHIFT    0
0460 #define RCC_PLL1CFGR2_DIVQ_SHIFT    8
0461 #define RCC_PLL1CFGR2_DIVR_SHIFT    16
0462 
0463 /* RCC_PLL1FRACR register fields */
0464 #define RCC_PLL1FRACR_FRACV_MASK    GENMASK(15, 3)
0465 #define RCC_PLL1FRACR_FRACLE        BIT(16)
0466 #define RCC_PLL1FRACR_FRACV_SHIFT   3
0467 
0468 /* RCC_PLL1CSGR register fields */
0469 #define RCC_PLL1CSGR_MOD_PER_MASK   GENMASK(12, 0)
0470 #define RCC_PLL1CSGR_TPDFN_DIS      BIT(13)
0471 #define RCC_PLL1CSGR_RPDFN_DIS      BIT(14)
0472 #define RCC_PLL1CSGR_SSCG_MODE      BIT(15)
0473 #define RCC_PLL1CSGR_INC_STEP_MASK  GENMASK(30, 16)
0474 #define RCC_PLL1CSGR_MOD_PER_SHIFT  0
0475 #define RCC_PLL1CSGR_INC_STEP_SHIFT 16
0476 
0477 /* RCC_PLL2CR register fields */
0478 #define RCC_PLL2CR_PLLON        BIT(0)
0479 #define RCC_PLL2CR_PLL2RDY      BIT(1)
0480 #define RCC_PLL2CR_SSCG_CTRL        BIT(2)
0481 #define RCC_PLL2CR_DIVPEN       BIT(4)
0482 #define RCC_PLL2CR_DIVQEN       BIT(5)
0483 #define RCC_PLL2CR_DIVREN       BIT(6)
0484 
0485 /* RCC_PLL2CFGR1 register fields */
0486 #define RCC_PLL2CFGR1_DIVN_MASK     GENMASK(8, 0)
0487 #define RCC_PLL2CFGR1_DIVM2_MASK    GENMASK(21, 16)
0488 #define RCC_PLL2CFGR1_DIVN_SHIFT    0
0489 #define RCC_PLL2CFGR1_DIVM2_SHIFT   16
0490 
0491 /* RCC_PLL2CFGR2 register fields */
0492 #define RCC_PLL2CFGR2_DIVP_MASK     GENMASK(6, 0)
0493 #define RCC_PLL2CFGR2_DIVQ_MASK     GENMASK(14, 8)
0494 #define RCC_PLL2CFGR2_DIVR_MASK     GENMASK(22, 16)
0495 #define RCC_PLL2CFGR2_DIVP_SHIFT    0
0496 #define RCC_PLL2CFGR2_DIVQ_SHIFT    8
0497 #define RCC_PLL2CFGR2_DIVR_SHIFT    16
0498 
0499 /* RCC_PLL2FRACR register fields */
0500 #define RCC_PLL2FRACR_FRACV_MASK    GENMASK(15, 3)
0501 #define RCC_PLL2FRACR_FRACLE        BIT(16)
0502 #define RCC_PLL2FRACR_FRACV_SHIFT   3
0503 
0504 /* RCC_PLL2CSGR register fields */
0505 #define RCC_PLL2CSGR_MOD_PER_MASK   GENMASK(12, 0)
0506 #define RCC_PLL2CSGR_TPDFN_DIS      BIT(13)
0507 #define RCC_PLL2CSGR_RPDFN_DIS      BIT(14)
0508 #define RCC_PLL2CSGR_SSCG_MODE      BIT(15)
0509 #define RCC_PLL2CSGR_INC_STEP_MASK  GENMASK(30, 16)
0510 #define RCC_PLL2CSGR_MOD_PER_SHIFT  0
0511 #define RCC_PLL2CSGR_INC_STEP_SHIFT 16
0512 
0513 /* RCC_PLL3CR register fields */
0514 #define RCC_PLL3CR_PLLON        BIT(0)
0515 #define RCC_PLL3CR_PLL3RDY      BIT(1)
0516 #define RCC_PLL3CR_SSCG_CTRL        BIT(2)
0517 #define RCC_PLL3CR_DIVPEN       BIT(4)
0518 #define RCC_PLL3CR_DIVQEN       BIT(5)
0519 #define RCC_PLL3CR_DIVREN       BIT(6)
0520 
0521 /* RCC_PLL3CFGR1 register fields */
0522 #define RCC_PLL3CFGR1_DIVN_MASK     GENMASK(8, 0)
0523 #define RCC_PLL3CFGR1_DIVM3_MASK    GENMASK(21, 16)
0524 #define RCC_PLL3CFGR1_IFRGE_MASK    GENMASK(25, 24)
0525 #define RCC_PLL3CFGR1_DIVN_SHIFT    0
0526 #define RCC_PLL3CFGR1_DIVM3_SHIFT   16
0527 #define RCC_PLL3CFGR1_IFRGE_SHIFT   24
0528 
0529 /* RCC_PLL3CFGR2 register fields */
0530 #define RCC_PLL3CFGR2_DIVP_MASK     GENMASK(6, 0)
0531 #define RCC_PLL3CFGR2_DIVQ_MASK     GENMASK(14, 8)
0532 #define RCC_PLL3CFGR2_DIVR_MASK     GENMASK(22, 16)
0533 #define RCC_PLL3CFGR2_DIVP_SHIFT    0
0534 #define RCC_PLL3CFGR2_DIVQ_SHIFT    8
0535 #define RCC_PLL3CFGR2_DIVR_SHIFT    16
0536 
0537 /* RCC_PLL3FRACR register fields */
0538 #define RCC_PLL3FRACR_FRACV_MASK    GENMASK(15, 3)
0539 #define RCC_PLL3FRACR_FRACLE        BIT(16)
0540 #define RCC_PLL3FRACR_FRACV_SHIFT   3
0541 
0542 /* RCC_PLL3CSGR register fields */
0543 #define RCC_PLL3CSGR_MOD_PER_MASK   GENMASK(12, 0)
0544 #define RCC_PLL3CSGR_TPDFN_DIS      BIT(13)
0545 #define RCC_PLL3CSGR_RPDFN_DIS      BIT(14)
0546 #define RCC_PLL3CSGR_SSCG_MODE      BIT(15)
0547 #define RCC_PLL3CSGR_INC_STEP_MASK  GENMASK(30, 16)
0548 #define RCC_PLL3CSGR_MOD_PER_SHIFT  0
0549 #define RCC_PLL3CSGR_INC_STEP_SHIFT 16
0550 
0551 /* RCC_PLL4CR register fields */
0552 #define RCC_PLL4CR_PLLON        BIT(0)
0553 #define RCC_PLL4CR_PLL4RDY      BIT(1)
0554 #define RCC_PLL4CR_SSCG_CTRL        BIT(2)
0555 #define RCC_PLL4CR_DIVPEN       BIT(4)
0556 #define RCC_PLL4CR_DIVQEN       BIT(5)
0557 #define RCC_PLL4CR_DIVREN       BIT(6)
0558 
0559 /* RCC_PLL4CFGR1 register fields */
0560 #define RCC_PLL4CFGR1_DIVN_MASK     GENMASK(8, 0)
0561 #define RCC_PLL4CFGR1_DIVM4_MASK    GENMASK(21, 16)
0562 #define RCC_PLL4CFGR1_IFRGE_MASK    GENMASK(25, 24)
0563 #define RCC_PLL4CFGR1_DIVN_SHIFT    0
0564 #define RCC_PLL4CFGR1_DIVM4_SHIFT   16
0565 #define RCC_PLL4CFGR1_IFRGE_SHIFT   24
0566 
0567 /* RCC_PLL4CFGR2 register fields */
0568 #define RCC_PLL4CFGR2_DIVP_MASK     GENMASK(6, 0)
0569 #define RCC_PLL4CFGR2_DIVQ_MASK     GENMASK(14, 8)
0570 #define RCC_PLL4CFGR2_DIVR_MASK     GENMASK(22, 16)
0571 #define RCC_PLL4CFGR2_DIVP_SHIFT    0
0572 #define RCC_PLL4CFGR2_DIVQ_SHIFT    8
0573 #define RCC_PLL4CFGR2_DIVR_SHIFT    16
0574 
0575 /* RCC_PLL4FRACR register fields */
0576 #define RCC_PLL4FRACR_FRACV_MASK    GENMASK(15, 3)
0577 #define RCC_PLL4FRACR_FRACLE        BIT(16)
0578 #define RCC_PLL4FRACR_FRACV_SHIFT   3
0579 
0580 /* RCC_PLL4CSGR register fields */
0581 #define RCC_PLL4CSGR_MOD_PER_MASK   GENMASK(12, 0)
0582 #define RCC_PLL4CSGR_TPDFN_DIS      BIT(13)
0583 #define RCC_PLL4CSGR_RPDFN_DIS      BIT(14)
0584 #define RCC_PLL4CSGR_SSCG_MODE      BIT(15)
0585 #define RCC_PLL4CSGR_INC_STEP_MASK  GENMASK(30, 16)
0586 #define RCC_PLL4CSGR_MOD_PER_SHIFT  0
0587 #define RCC_PLL4CSGR_INC_STEP_SHIFT 16
0588 
0589 /* RCC_MPCKSELR register fields */
0590 #define RCC_MPCKSELR_MPUSRC_MASK    GENMASK(1, 0)
0591 #define RCC_MPCKSELR_MPUSRCRDY      BIT(31)
0592 #define RCC_MPCKSELR_MPUSRC_SHIFT   0
0593 
0594 /* RCC_ASSCKSELR register fields */
0595 #define RCC_ASSCKSELR_AXISSRC_MASK  GENMASK(2, 0)
0596 #define RCC_ASSCKSELR_AXISSRCRDY    BIT(31)
0597 #define RCC_ASSCKSELR_AXISSRC_SHIFT 0
0598 
0599 /* RCC_MSSCKSELR register fields */
0600 #define RCC_MSSCKSELR_MLAHBSSRC_MASK    GENMASK(1, 0)
0601 #define RCC_MSSCKSELR_MLAHBSSRCRDY  BIT(31)
0602 #define RCC_MSSCKSELR_MLAHBSSRC_SHIFT   0
0603 
0604 /* RCC_CPERCKSELR register fields */
0605 #define RCC_CPERCKSELR_CKPERSRC_MASK    GENMASK(1, 0)
0606 #define RCC_CPERCKSELR_CKPERSRC_SHIFT   0
0607 
0608 /* RCC_RTCDIVR register fields */
0609 #define RCC_RTCDIVR_RTCDIV_MASK     GENMASK(5, 0)
0610 #define RCC_RTCDIVR_RTCDIV_SHIFT    0
0611 
0612 /* RCC_MPCKDIVR register fields */
0613 #define RCC_MPCKDIVR_MPUDIV_MASK    GENMASK(3, 0)
0614 #define RCC_MPCKDIVR_MPUDIVRDY      BIT(31)
0615 #define RCC_MPCKDIVR_MPUDIV_SHIFT   0
0616 
0617 /* RCC_AXIDIVR register fields */
0618 #define RCC_AXIDIVR_AXIDIV_MASK     GENMASK(2, 0)
0619 #define RCC_AXIDIVR_AXIDIVRDY       BIT(31)
0620 #define RCC_AXIDIVR_AXIDIV_SHIFT    0
0621 
0622 /* RCC_MLAHBDIVR register fields */
0623 #define RCC_MLAHBDIVR_MLAHBDIV_MASK GENMASK(3, 0)
0624 #define RCC_MLAHBDIVR_MLAHBDIVRDY   BIT(31)
0625 #define RCC_MLAHBDIVR_MLAHBDIV_SHIFT    0
0626 
0627 /* RCC_APB1DIVR register fields */
0628 #define RCC_APB1DIVR_APB1DIV_MASK   GENMASK(2, 0)
0629 #define RCC_APB1DIVR_APB1DIVRDY     BIT(31)
0630 #define RCC_APB1DIVR_APB1DIV_SHIFT  0
0631 
0632 /* RCC_APB2DIVR register fields */
0633 #define RCC_APB2DIVR_APB2DIV_MASK   GENMASK(2, 0)
0634 #define RCC_APB2DIVR_APB2DIVRDY     BIT(31)
0635 #define RCC_APB2DIVR_APB2DIV_SHIFT  0
0636 
0637 /* RCC_APB3DIVR register fields */
0638 #define RCC_APB3DIVR_APB3DIV_MASK   GENMASK(2, 0)
0639 #define RCC_APB3DIVR_APB3DIVRDY     BIT(31)
0640 #define RCC_APB3DIVR_APB3DIV_SHIFT  0
0641 
0642 /* RCC_APB4DIVR register fields */
0643 #define RCC_APB4DIVR_APB4DIV_MASK   GENMASK(2, 0)
0644 #define RCC_APB4DIVR_APB4DIVRDY     BIT(31)
0645 #define RCC_APB4DIVR_APB4DIV_SHIFT  0
0646 
0647 /* RCC_APB5DIVR register fields */
0648 #define RCC_APB5DIVR_APB5DIV_MASK   GENMASK(2, 0)
0649 #define RCC_APB5DIVR_APB5DIVRDY     BIT(31)
0650 #define RCC_APB5DIVR_APB5DIV_SHIFT  0
0651 
0652 /* RCC_APB6DIVR register fields */
0653 #define RCC_APB6DIVR_APB6DIV_MASK   GENMASK(2, 0)
0654 #define RCC_APB6DIVR_APB6DIVRDY     BIT(31)
0655 #define RCC_APB6DIVR_APB6DIV_SHIFT  0
0656 
0657 /* RCC_TIMG1PRER register fields */
0658 #define RCC_TIMG1PRER_TIMG1PRE      BIT(0)
0659 #define RCC_TIMG1PRER_TIMG1PRERDY   BIT(31)
0660 
0661 /* RCC_TIMG2PRER register fields */
0662 #define RCC_TIMG2PRER_TIMG2PRE      BIT(0)
0663 #define RCC_TIMG2PRER_TIMG2PRERDY   BIT(31)
0664 
0665 /* RCC_TIMG3PRER register fields */
0666 #define RCC_TIMG3PRER_TIMG3PRE      BIT(0)
0667 #define RCC_TIMG3PRER_TIMG3PRERDY   BIT(31)
0668 
0669 /* RCC_DDRITFCR register fields */
0670 #define RCC_DDRITFCR_DDRC1EN        BIT(0)
0671 #define RCC_DDRITFCR_DDRC1LPEN      BIT(1)
0672 #define RCC_DDRITFCR_DDRPHYCEN      BIT(4)
0673 #define RCC_DDRITFCR_DDRPHYCLPEN    BIT(5)
0674 #define RCC_DDRITFCR_DDRCAPBEN      BIT(6)
0675 #define RCC_DDRITFCR_DDRCAPBLPEN    BIT(7)
0676 #define RCC_DDRITFCR_AXIDCGEN       BIT(8)
0677 #define RCC_DDRITFCR_DDRPHYCAPBEN   BIT(9)
0678 #define RCC_DDRITFCR_DDRPHYCAPBLPEN BIT(10)
0679 #define RCC_DDRITFCR_KERDCG_DLY_MASK    GENMASK(13, 11)
0680 #define RCC_DDRITFCR_DDRCAPBRST     BIT(14)
0681 #define RCC_DDRITFCR_DDRCAXIRST     BIT(15)
0682 #define RCC_DDRITFCR_DDRCORERST     BIT(16)
0683 #define RCC_DDRITFCR_DPHYAPBRST     BIT(17)
0684 #define RCC_DDRITFCR_DPHYRST        BIT(18)
0685 #define RCC_DDRITFCR_DPHYCTLRST     BIT(19)
0686 #define RCC_DDRITFCR_DDRCKMOD_MASK  GENMASK(22, 20)
0687 #define RCC_DDRITFCR_GSKPMOD        BIT(23)
0688 #define RCC_DDRITFCR_GSKPCTRL       BIT(24)
0689 #define RCC_DDRITFCR_DFILP_WIDTH_MASK   GENMASK(27, 25)
0690 #define RCC_DDRITFCR_GSKP_DUR_MASK  GENMASK(31, 28)
0691 #define RCC_DDRITFCR_KERDCG_DLY_SHIFT   11
0692 #define RCC_DDRITFCR_DDRCKMOD_SHIFT 20
0693 #define RCC_DDRITFCR_DFILP_WIDTH_SHIFT  25
0694 #define RCC_DDRITFCR_GSKP_DUR_SHIFT 28
0695 
0696 /* RCC_I2C12CKSELR register fields */
0697 #define RCC_I2C12CKSELR_I2C12SRC_MASK   GENMASK(2, 0)
0698 #define RCC_I2C12CKSELR_I2C12SRC_SHIFT  0
0699 
0700 /* RCC_I2C345CKSELR register fields */
0701 #define RCC_I2C345CKSELR_I2C3SRC_MASK   GENMASK(2, 0)
0702 #define RCC_I2C345CKSELR_I2C4SRC_MASK   GENMASK(5, 3)
0703 #define RCC_I2C345CKSELR_I2C5SRC_MASK   GENMASK(8, 6)
0704 #define RCC_I2C345CKSELR_I2C3SRC_SHIFT  0
0705 #define RCC_I2C345CKSELR_I2C4SRC_SHIFT  3
0706 #define RCC_I2C345CKSELR_I2C5SRC_SHIFT  6
0707 
0708 /* RCC_SPI2S1CKSELR register fields */
0709 #define RCC_SPI2S1CKSELR_SPI1SRC_MASK   GENMASK(2, 0)
0710 #define RCC_SPI2S1CKSELR_SPI1SRC_SHIFT  0
0711 
0712 /* RCC_SPI2S23CKSELR register fields */
0713 #define RCC_SPI2S23CKSELR_SPI23SRC_MASK GENMASK(2, 0)
0714 #define RCC_SPI2S23CKSELR_SPI23SRC_SHIFT    0
0715 
0716 /* RCC_SPI45CKSELR register fields */
0717 #define RCC_SPI45CKSELR_SPI4SRC_MASK    GENMASK(2, 0)
0718 #define RCC_SPI45CKSELR_SPI5SRC_MASK    GENMASK(5, 3)
0719 #define RCC_SPI45CKSELR_SPI4SRC_SHIFT   0
0720 #define RCC_SPI45CKSELR_SPI5SRC_SHIFT   3
0721 
0722 /* RCC_UART12CKSELR register fields */
0723 #define RCC_UART12CKSELR_UART1SRC_MASK  GENMASK(2, 0)
0724 #define RCC_UART12CKSELR_UART2SRC_MASK  GENMASK(5, 3)
0725 #define RCC_UART12CKSELR_UART1SRC_SHIFT 0
0726 #define RCC_UART12CKSELR_UART2SRC_SHIFT 3
0727 
0728 /* RCC_UART35CKSELR register fields */
0729 #define RCC_UART35CKSELR_UART35SRC_MASK GENMASK(2, 0)
0730 #define RCC_UART35CKSELR_UART35SRC_SHIFT    0
0731 
0732 /* RCC_UART4CKSELR register fields */
0733 #define RCC_UART4CKSELR_UART4SRC_MASK   GENMASK(2, 0)
0734 #define RCC_UART4CKSELR_UART4SRC_SHIFT  0
0735 
0736 /* RCC_UART6CKSELR register fields */
0737 #define RCC_UART6CKSELR_UART6SRC_MASK   GENMASK(2, 0)
0738 #define RCC_UART6CKSELR_UART6SRC_SHIFT  0
0739 
0740 /* RCC_UART78CKSELR register fields */
0741 #define RCC_UART78CKSELR_UART78SRC_MASK GENMASK(2, 0)
0742 #define RCC_UART78CKSELR_UART78SRC_SHIFT    0
0743 
0744 /* RCC_LPTIM1CKSELR register fields */
0745 #define RCC_LPTIM1CKSELR_LPTIM1SRC_MASK GENMASK(2, 0)
0746 #define RCC_LPTIM1CKSELR_LPTIM1SRC_SHIFT    0
0747 
0748 /* RCC_LPTIM23CKSELR register fields */
0749 #define RCC_LPTIM23CKSELR_LPTIM2SRC_MASK    GENMASK(2, 0)
0750 #define RCC_LPTIM23CKSELR_LPTIM3SRC_MASK    GENMASK(5, 3)
0751 #define RCC_LPTIM23CKSELR_LPTIM2SRC_SHIFT   0
0752 #define RCC_LPTIM23CKSELR_LPTIM3SRC_SHIFT   3
0753 
0754 /* RCC_LPTIM45CKSELR register fields */
0755 #define RCC_LPTIM45CKSELR_LPTIM45SRC_MASK   GENMASK(2, 0)
0756 #define RCC_LPTIM45CKSELR_LPTIM45SRC_SHIFT  0
0757 
0758 /* RCC_SAI1CKSELR register fields */
0759 #define RCC_SAI1CKSELR_SAI1SRC_MASK GENMASK(2, 0)
0760 #define RCC_SAI1CKSELR_SAI1SRC_SHIFT    0
0761 
0762 /* RCC_SAI2CKSELR register fields */
0763 #define RCC_SAI2CKSELR_SAI2SRC_MASK GENMASK(2, 0)
0764 #define RCC_SAI2CKSELR_SAI2SRC_SHIFT    0
0765 
0766 /* RCC_FDCANCKSELR register fields */
0767 #define RCC_FDCANCKSELR_FDCANSRC_MASK   GENMASK(1, 0)
0768 #define RCC_FDCANCKSELR_FDCANSRC_SHIFT  0
0769 
0770 /* RCC_SPDIFCKSELR register fields */
0771 #define RCC_SPDIFCKSELR_SPDIFSRC_MASK   GENMASK(1, 0)
0772 #define RCC_SPDIFCKSELR_SPDIFSRC_SHIFT  0
0773 
0774 /* RCC_ADC12CKSELR register fields */
0775 #define RCC_ADC12CKSELR_ADC1SRC_MASK    GENMASK(1, 0)
0776 #define RCC_ADC12CKSELR_ADC2SRC_MASK    GENMASK(3, 2)
0777 #define RCC_ADC12CKSELR_ADC1SRC_SHIFT   0
0778 #define RCC_ADC12CKSELR_ADC2SRC_SHIFT   2
0779 
0780 /* RCC_SDMMC12CKSELR register fields */
0781 #define RCC_SDMMC12CKSELR_SDMMC1SRC_MASK    GENMASK(2, 0)
0782 #define RCC_SDMMC12CKSELR_SDMMC2SRC_MASK    GENMASK(5, 3)
0783 #define RCC_SDMMC12CKSELR_SDMMC1SRC_SHIFT   0
0784 #define RCC_SDMMC12CKSELR_SDMMC2SRC_SHIFT   3
0785 
0786 /* RCC_ETH12CKSELR register fields */
0787 #define RCC_ETH12CKSELR_ETH1SRC_MASK    GENMASK(1, 0)
0788 #define RCC_ETH12CKSELR_ETH1PTPDIV_MASK GENMASK(7, 4)
0789 #define RCC_ETH12CKSELR_ETH2SRC_MASK    GENMASK(9, 8)
0790 #define RCC_ETH12CKSELR_ETH2PTPDIV_MASK GENMASK(15, 12)
0791 #define RCC_ETH12CKSELR_ETH1SRC_SHIFT   0
0792 #define RCC_ETH12CKSELR_ETH1PTPDIV_SHIFT    4
0793 #define RCC_ETH12CKSELR_ETH2SRC_SHIFT   8
0794 #define RCC_ETH12CKSELR_ETH2PTPDIV_SHIFT    12
0795 
0796 /* RCC_USBCKSELR register fields */
0797 #define RCC_USBCKSELR_USBPHYSRC_MASK    GENMASK(1, 0)
0798 #define RCC_USBCKSELR_USBOSRC       BIT(4)
0799 #define RCC_USBCKSELR_USBPHYSRC_SHIFT   0
0800 
0801 /* RCC_QSPICKSELR register fields */
0802 #define RCC_QSPICKSELR_QSPISRC_MASK GENMASK(1, 0)
0803 #define RCC_QSPICKSELR_QSPISRC_SHIFT    0
0804 
0805 /* RCC_FMCCKSELR register fields */
0806 #define RCC_FMCCKSELR_FMCSRC_MASK   GENMASK(1, 0)
0807 #define RCC_FMCCKSELR_FMCSRC_SHIFT  0
0808 
0809 /* RCC_RNG1CKSELR register fields */
0810 #define RCC_RNG1CKSELR_RNG1SRC_MASK GENMASK(1, 0)
0811 #define RCC_RNG1CKSELR_RNG1SRC_SHIFT    0
0812 
0813 /* RCC_STGENCKSELR register fields */
0814 #define RCC_STGENCKSELR_STGENSRC_MASK   GENMASK(1, 0)
0815 #define RCC_STGENCKSELR_STGENSRC_SHIFT  0
0816 
0817 /* RCC_DCMIPPCKSELR register fields */
0818 #define RCC_DCMIPPCKSELR_DCMIPPSRC_MASK GENMASK(1, 0)
0819 #define RCC_DCMIPPCKSELR_DCMIPPSRC_SHIFT    0
0820 
0821 /* RCC_SAESCKSELR register fields */
0822 #define RCC_SAESCKSELR_SAESSRC_MASK GENMASK(1, 0)
0823 #define RCC_SAESCKSELR_SAESSRC_SHIFT    0
0824 
0825 /* RCC_APB1RSTSETR register fields */
0826 #define RCC_APB1RSTSETR_TIM2RST     BIT(0)
0827 #define RCC_APB1RSTSETR_TIM3RST     BIT(1)
0828 #define RCC_APB1RSTSETR_TIM4RST     BIT(2)
0829 #define RCC_APB1RSTSETR_TIM5RST     BIT(3)
0830 #define RCC_APB1RSTSETR_TIM6RST     BIT(4)
0831 #define RCC_APB1RSTSETR_TIM7RST     BIT(5)
0832 #define RCC_APB1RSTSETR_LPTIM1RST   BIT(9)
0833 #define RCC_APB1RSTSETR_SPI2RST     BIT(11)
0834 #define RCC_APB1RSTSETR_SPI3RST     BIT(12)
0835 #define RCC_APB1RSTSETR_USART3RST   BIT(15)
0836 #define RCC_APB1RSTSETR_UART4RST    BIT(16)
0837 #define RCC_APB1RSTSETR_UART5RST    BIT(17)
0838 #define RCC_APB1RSTSETR_UART7RST    BIT(18)
0839 #define RCC_APB1RSTSETR_UART8RST    BIT(19)
0840 #define RCC_APB1RSTSETR_I2C1RST     BIT(21)
0841 #define RCC_APB1RSTSETR_I2C2RST     BIT(22)
0842 #define RCC_APB1RSTSETR_SPDIFRST    BIT(26)
0843 
0844 /* RCC_APB1RSTCLRR register fields */
0845 #define RCC_APB1RSTCLRR_TIM2RST     BIT(0)
0846 #define RCC_APB1RSTCLRR_TIM3RST     BIT(1)
0847 #define RCC_APB1RSTCLRR_TIM4RST     BIT(2)
0848 #define RCC_APB1RSTCLRR_TIM5RST     BIT(3)
0849 #define RCC_APB1RSTCLRR_TIM6RST     BIT(4)
0850 #define RCC_APB1RSTCLRR_TIM7RST     BIT(5)
0851 #define RCC_APB1RSTCLRR_LPTIM1RST   BIT(9)
0852 #define RCC_APB1RSTCLRR_SPI2RST     BIT(11)
0853 #define RCC_APB1RSTCLRR_SPI3RST     BIT(12)
0854 #define RCC_APB1RSTCLRR_USART3RST   BIT(15)
0855 #define RCC_APB1RSTCLRR_UART4RST    BIT(16)
0856 #define RCC_APB1RSTCLRR_UART5RST    BIT(17)
0857 #define RCC_APB1RSTCLRR_UART7RST    BIT(18)
0858 #define RCC_APB1RSTCLRR_UART8RST    BIT(19)
0859 #define RCC_APB1RSTCLRR_I2C1RST     BIT(21)
0860 #define RCC_APB1RSTCLRR_I2C2RST     BIT(22)
0861 #define RCC_APB1RSTCLRR_SPDIFRST    BIT(26)
0862 
0863 /* RCC_APB2RSTSETR register fields */
0864 #define RCC_APB2RSTSETR_TIM1RST     BIT(0)
0865 #define RCC_APB2RSTSETR_TIM8RST     BIT(1)
0866 #define RCC_APB2RSTSETR_SPI1RST     BIT(8)
0867 #define RCC_APB2RSTSETR_USART6RST   BIT(13)
0868 #define RCC_APB2RSTSETR_SAI1RST     BIT(16)
0869 #define RCC_APB2RSTSETR_SAI2RST     BIT(17)
0870 #define RCC_APB2RSTSETR_DFSDMRST    BIT(20)
0871 #define RCC_APB2RSTSETR_FDCANRST    BIT(24)
0872 
0873 /* RCC_APB2RSTCLRR register fields */
0874 #define RCC_APB2RSTCLRR_TIM1RST     BIT(0)
0875 #define RCC_APB2RSTCLRR_TIM8RST     BIT(1)
0876 #define RCC_APB2RSTCLRR_SPI1RST     BIT(8)
0877 #define RCC_APB2RSTCLRR_USART6RST   BIT(13)
0878 #define RCC_APB2RSTCLRR_SAI1RST     BIT(16)
0879 #define RCC_APB2RSTCLRR_SAI2RST     BIT(17)
0880 #define RCC_APB2RSTCLRR_DFSDMRST    BIT(20)
0881 #define RCC_APB2RSTCLRR_FDCANRST    BIT(24)
0882 
0883 /* RCC_APB3RSTSETR register fields */
0884 #define RCC_APB3RSTSETR_LPTIM2RST   BIT(0)
0885 #define RCC_APB3RSTSETR_LPTIM3RST   BIT(1)
0886 #define RCC_APB3RSTSETR_LPTIM4RST   BIT(2)
0887 #define RCC_APB3RSTSETR_LPTIM5RST   BIT(3)
0888 #define RCC_APB3RSTSETR_SYSCFGRST   BIT(11)
0889 #define RCC_APB3RSTSETR_VREFRST     BIT(13)
0890 #define RCC_APB3RSTSETR_DTSRST      BIT(16)
0891 #define RCC_APB3RSTSETR_PMBCTRLRST  BIT(17)
0892 
0893 /* RCC_APB3RSTCLRR register fields */
0894 #define RCC_APB3RSTCLRR_LPTIM2RST   BIT(0)
0895 #define RCC_APB3RSTCLRR_LPTIM3RST   BIT(1)
0896 #define RCC_APB3RSTCLRR_LPTIM4RST   BIT(2)
0897 #define RCC_APB3RSTCLRR_LPTIM5RST   BIT(3)
0898 #define RCC_APB3RSTCLRR_SYSCFGRST   BIT(11)
0899 #define RCC_APB3RSTCLRR_VREFRST     BIT(13)
0900 #define RCC_APB3RSTCLRR_DTSRST      BIT(16)
0901 #define RCC_APB3RSTCLRR_PMBCTRLRST  BIT(17)
0902 
0903 /* RCC_APB4RSTSETR register fields */
0904 #define RCC_APB4RSTSETR_LTDCRST     BIT(0)
0905 #define RCC_APB4RSTSETR_DCMIPPRST   BIT(1)
0906 #define RCC_APB4RSTSETR_DDRPERFMRST BIT(8)
0907 #define RCC_APB4RSTSETR_USBPHYRST   BIT(16)
0908 
0909 /* RCC_APB4RSTCLRR register fields */
0910 #define RCC_APB4RSTCLRR_LTDCRST     BIT(0)
0911 #define RCC_APB4RSTCLRR_DCMIPPRST   BIT(1)
0912 #define RCC_APB4RSTCLRR_DDRPERFMRST BIT(8)
0913 #define RCC_APB4RSTCLRR_USBPHYRST   BIT(16)
0914 
0915 /* RCC_APB5RSTSETR register fields */
0916 #define RCC_APB5RSTSETR_STGENRST    BIT(20)
0917 
0918 /* RCC_APB5RSTCLRR register fields */
0919 #define RCC_APB5RSTCLRR_STGENRST    BIT(20)
0920 
0921 /* RCC_APB6RSTSETR register fields */
0922 #define RCC_APB6RSTSETR_USART1RST   BIT(0)
0923 #define RCC_APB6RSTSETR_USART2RST   BIT(1)
0924 #define RCC_APB6RSTSETR_SPI4RST     BIT(2)
0925 #define RCC_APB6RSTSETR_SPI5RST     BIT(3)
0926 #define RCC_APB6RSTSETR_I2C3RST     BIT(4)
0927 #define RCC_APB6RSTSETR_I2C4RST     BIT(5)
0928 #define RCC_APB6RSTSETR_I2C5RST     BIT(6)
0929 #define RCC_APB6RSTSETR_TIM12RST    BIT(7)
0930 #define RCC_APB6RSTSETR_TIM13RST    BIT(8)
0931 #define RCC_APB6RSTSETR_TIM14RST    BIT(9)
0932 #define RCC_APB6RSTSETR_TIM15RST    BIT(10)
0933 #define RCC_APB6RSTSETR_TIM16RST    BIT(11)
0934 #define RCC_APB6RSTSETR_TIM17RST    BIT(12)
0935 
0936 /* RCC_APB6RSTCLRR register fields */
0937 #define RCC_APB6RSTCLRR_USART1RST   BIT(0)
0938 #define RCC_APB6RSTCLRR_USART2RST   BIT(1)
0939 #define RCC_APB6RSTCLRR_SPI4RST     BIT(2)
0940 #define RCC_APB6RSTCLRR_SPI5RST     BIT(3)
0941 #define RCC_APB6RSTCLRR_I2C3RST     BIT(4)
0942 #define RCC_APB6RSTCLRR_I2C4RST     BIT(5)
0943 #define RCC_APB6RSTCLRR_I2C5RST     BIT(6)
0944 #define RCC_APB6RSTCLRR_TIM12RST    BIT(7)
0945 #define RCC_APB6RSTCLRR_TIM13RST    BIT(8)
0946 #define RCC_APB6RSTCLRR_TIM14RST    BIT(9)
0947 #define RCC_APB6RSTCLRR_TIM15RST    BIT(10)
0948 #define RCC_APB6RSTCLRR_TIM16RST    BIT(11)
0949 #define RCC_APB6RSTCLRR_TIM17RST    BIT(12)
0950 
0951 /* RCC_AHB2RSTSETR register fields */
0952 #define RCC_AHB2RSTSETR_DMA1RST     BIT(0)
0953 #define RCC_AHB2RSTSETR_DMA2RST     BIT(1)
0954 #define RCC_AHB2RSTSETR_DMAMUX1RST  BIT(2)
0955 #define RCC_AHB2RSTSETR_DMA3RST     BIT(3)
0956 #define RCC_AHB2RSTSETR_DMAMUX2RST  BIT(4)
0957 #define RCC_AHB2RSTSETR_ADC1RST     BIT(5)
0958 #define RCC_AHB2RSTSETR_ADC2RST     BIT(6)
0959 #define RCC_AHB2RSTSETR_USBORST     BIT(8)
0960 
0961 /* RCC_AHB2RSTCLRR register fields */
0962 #define RCC_AHB2RSTCLRR_DMA1RST     BIT(0)
0963 #define RCC_AHB2RSTCLRR_DMA2RST     BIT(1)
0964 #define RCC_AHB2RSTCLRR_DMAMUX1RST  BIT(2)
0965 #define RCC_AHB2RSTCLRR_DMA3RST     BIT(3)
0966 #define RCC_AHB2RSTCLRR_DMAMUX2RST  BIT(4)
0967 #define RCC_AHB2RSTCLRR_ADC1RST     BIT(5)
0968 #define RCC_AHB2RSTCLRR_ADC2RST     BIT(6)
0969 #define RCC_AHB2RSTCLRR_USBORST     BIT(8)
0970 
0971 /* RCC_AHB4RSTSETR register fields */
0972 #define RCC_AHB4RSTSETR_GPIOARST    BIT(0)
0973 #define RCC_AHB4RSTSETR_GPIOBRST    BIT(1)
0974 #define RCC_AHB4RSTSETR_GPIOCRST    BIT(2)
0975 #define RCC_AHB4RSTSETR_GPIODRST    BIT(3)
0976 #define RCC_AHB4RSTSETR_GPIOERST    BIT(4)
0977 #define RCC_AHB4RSTSETR_GPIOFRST    BIT(5)
0978 #define RCC_AHB4RSTSETR_GPIOGRST    BIT(6)
0979 #define RCC_AHB4RSTSETR_GPIOHRST    BIT(7)
0980 #define RCC_AHB4RSTSETR_GPIOIRST    BIT(8)
0981 #define RCC_AHB4RSTSETR_TSCRST      BIT(15)
0982 
0983 /* RCC_AHB4RSTCLRR register fields */
0984 #define RCC_AHB4RSTCLRR_GPIOARST    BIT(0)
0985 #define RCC_AHB4RSTCLRR_GPIOBRST    BIT(1)
0986 #define RCC_AHB4RSTCLRR_GPIOCRST    BIT(2)
0987 #define RCC_AHB4RSTCLRR_GPIODRST    BIT(3)
0988 #define RCC_AHB4RSTCLRR_GPIOERST    BIT(4)
0989 #define RCC_AHB4RSTCLRR_GPIOFRST    BIT(5)
0990 #define RCC_AHB4RSTCLRR_GPIOGRST    BIT(6)
0991 #define RCC_AHB4RSTCLRR_GPIOHRST    BIT(7)
0992 #define RCC_AHB4RSTCLRR_GPIOIRST    BIT(8)
0993 #define RCC_AHB4RSTCLRR_TSCRST      BIT(15)
0994 
0995 /* RCC_AHB5RSTSETR register fields */
0996 #define RCC_AHB5RSTSETR_PKARST      BIT(2)
0997 #define RCC_AHB5RSTSETR_SAESRST     BIT(3)
0998 #define RCC_AHB5RSTSETR_CRYP1RST    BIT(4)
0999 #define RCC_AHB5RSTSETR_HASH1RST    BIT(5)
1000 #define RCC_AHB5RSTSETR_RNG1RST     BIT(6)
1001 #define RCC_AHB5RSTSETR_AXIMCRST    BIT(16)
1002 
1003 /* RCC_AHB5RSTCLRR register fields */
1004 #define RCC_AHB5RSTCLRR_PKARST      BIT(2)
1005 #define RCC_AHB5RSTCLRR_SAESRST     BIT(3)
1006 #define RCC_AHB5RSTCLRR_CRYP1RST    BIT(4)
1007 #define RCC_AHB5RSTCLRR_HASH1RST    BIT(5)
1008 #define RCC_AHB5RSTCLRR_RNG1RST     BIT(6)
1009 #define RCC_AHB5RSTCLRR_AXIMCRST    BIT(16)
1010 
1011 /* RCC_AHB6RSTSETR register fields */
1012 #define RCC_AHB6RSTSETR_MDMARST     BIT(0)
1013 #define RCC_AHB6RSTSETR_MCERST      BIT(1)
1014 #define RCC_AHB6RSTSETR_ETH1MACRST  BIT(10)
1015 #define RCC_AHB6RSTSETR_FMCRST      BIT(12)
1016 #define RCC_AHB6RSTSETR_QSPIRST     BIT(14)
1017 #define RCC_AHB6RSTSETR_SDMMC1RST   BIT(16)
1018 #define RCC_AHB6RSTSETR_SDMMC2RST   BIT(17)
1019 #define RCC_AHB6RSTSETR_CRC1RST     BIT(20)
1020 #define RCC_AHB6RSTSETR_USBHRST     BIT(24)
1021 #define RCC_AHB6RSTSETR_ETH2MACRST  BIT(30)
1022 
1023 /* RCC_AHB6RSTCLRR register fields */
1024 #define RCC_AHB6RSTCLRR_MDMARST     BIT(0)
1025 #define RCC_AHB6RSTCLRR_MCERST      BIT(1)
1026 #define RCC_AHB6RSTCLRR_ETH1MACRST  BIT(10)
1027 #define RCC_AHB6RSTCLRR_FMCRST      BIT(12)
1028 #define RCC_AHB6RSTCLRR_QSPIRST     BIT(14)
1029 #define RCC_AHB6RSTCLRR_SDMMC1RST   BIT(16)
1030 #define RCC_AHB6RSTCLRR_SDMMC2RST   BIT(17)
1031 #define RCC_AHB6RSTCLRR_CRC1RST     BIT(20)
1032 #define RCC_AHB6RSTCLRR_USBHRST     BIT(24)
1033 #define RCC_AHB6RSTCLRR_ETH2MACRST  BIT(30)
1034 
1035 /* RCC_MP_APB1ENSETR register fields */
1036 #define RCC_MP_APB1ENSETR_TIM2EN    BIT(0)
1037 #define RCC_MP_APB1ENSETR_TIM3EN    BIT(1)
1038 #define RCC_MP_APB1ENSETR_TIM4EN    BIT(2)
1039 #define RCC_MP_APB1ENSETR_TIM5EN    BIT(3)
1040 #define RCC_MP_APB1ENSETR_TIM6EN    BIT(4)
1041 #define RCC_MP_APB1ENSETR_TIM7EN    BIT(5)
1042 #define RCC_MP_APB1ENSETR_LPTIM1EN  BIT(9)
1043 #define RCC_MP_APB1ENSETR_SPI2EN    BIT(11)
1044 #define RCC_MP_APB1ENSETR_SPI3EN    BIT(12)
1045 #define RCC_MP_APB1ENSETR_USART3EN  BIT(15)
1046 #define RCC_MP_APB1ENSETR_UART4EN   BIT(16)
1047 #define RCC_MP_APB1ENSETR_UART5EN   BIT(17)
1048 #define RCC_MP_APB1ENSETR_UART7EN   BIT(18)
1049 #define RCC_MP_APB1ENSETR_UART8EN   BIT(19)
1050 #define RCC_MP_APB1ENSETR_I2C1EN    BIT(21)
1051 #define RCC_MP_APB1ENSETR_I2C2EN    BIT(22)
1052 #define RCC_MP_APB1ENSETR_SPDIFEN   BIT(26)
1053 
1054 /* RCC_MP_APB1ENCLRR register fields */
1055 #define RCC_MP_APB1ENCLRR_TIM2EN    BIT(0)
1056 #define RCC_MP_APB1ENCLRR_TIM3EN    BIT(1)
1057 #define RCC_MP_APB1ENCLRR_TIM4EN    BIT(2)
1058 #define RCC_MP_APB1ENCLRR_TIM5EN    BIT(3)
1059 #define RCC_MP_APB1ENCLRR_TIM6EN    BIT(4)
1060 #define RCC_MP_APB1ENCLRR_TIM7EN    BIT(5)
1061 #define RCC_MP_APB1ENCLRR_LPTIM1EN  BIT(9)
1062 #define RCC_MP_APB1ENCLRR_SPI2EN    BIT(11)
1063 #define RCC_MP_APB1ENCLRR_SPI3EN    BIT(12)
1064 #define RCC_MP_APB1ENCLRR_USART3EN  BIT(15)
1065 #define RCC_MP_APB1ENCLRR_UART4EN   BIT(16)
1066 #define RCC_MP_APB1ENCLRR_UART5EN   BIT(17)
1067 #define RCC_MP_APB1ENCLRR_UART7EN   BIT(18)
1068 #define RCC_MP_APB1ENCLRR_UART8EN   BIT(19)
1069 #define RCC_MP_APB1ENCLRR_I2C1EN    BIT(21)
1070 #define RCC_MP_APB1ENCLRR_I2C2EN    BIT(22)
1071 #define RCC_MP_APB1ENCLRR_SPDIFEN   BIT(26)
1072 
1073 /* RCC_MP_APB2ENSETR register fields */
1074 #define RCC_MP_APB2ENSETR_TIM1EN    BIT(0)
1075 #define RCC_MP_APB2ENSETR_TIM8EN    BIT(1)
1076 #define RCC_MP_APB2ENSETR_SPI1EN    BIT(8)
1077 #define RCC_MP_APB2ENSETR_USART6EN  BIT(13)
1078 #define RCC_MP_APB2ENSETR_SAI1EN    BIT(16)
1079 #define RCC_MP_APB2ENSETR_SAI2EN    BIT(17)
1080 #define RCC_MP_APB2ENSETR_DFSDMEN   BIT(20)
1081 #define RCC_MP_APB2ENSETR_ADFSDMEN  BIT(21)
1082 #define RCC_MP_APB2ENSETR_FDCANEN   BIT(24)
1083 
1084 /* RCC_MP_APB2ENCLRR register fields */
1085 #define RCC_MP_APB2ENCLRR_TIM1EN    BIT(0)
1086 #define RCC_MP_APB2ENCLRR_TIM8EN    BIT(1)
1087 #define RCC_MP_APB2ENCLRR_SPI1EN    BIT(8)
1088 #define RCC_MP_APB2ENCLRR_USART6EN  BIT(13)
1089 #define RCC_MP_APB2ENCLRR_SAI1EN    BIT(16)
1090 #define RCC_MP_APB2ENCLRR_SAI2EN    BIT(17)
1091 #define RCC_MP_APB2ENCLRR_DFSDMEN   BIT(20)
1092 #define RCC_MP_APB2ENCLRR_ADFSDMEN  BIT(21)
1093 #define RCC_MP_APB2ENCLRR_FDCANEN   BIT(24)
1094 
1095 /* RCC_MP_APB3ENSETR register fields */
1096 #define RCC_MP_APB3ENSETR_LPTIM2EN  BIT(0)
1097 #define RCC_MP_APB3ENSETR_LPTIM3EN  BIT(1)
1098 #define RCC_MP_APB3ENSETR_LPTIM4EN  BIT(2)
1099 #define RCC_MP_APB3ENSETR_LPTIM5EN  BIT(3)
1100 #define RCC_MP_APB3ENSETR_VREFEN    BIT(13)
1101 #define RCC_MP_APB3ENSETR_DTSEN     BIT(16)
1102 #define RCC_MP_APB3ENSETR_PMBCTRLEN BIT(17)
1103 #define RCC_MP_APB3ENSETR_HDPEN     BIT(20)
1104 
1105 /* RCC_MP_APB3ENCLRR register fields */
1106 #define RCC_MP_APB3ENCLRR_LPTIM2EN  BIT(0)
1107 #define RCC_MP_APB3ENCLRR_LPTIM3EN  BIT(1)
1108 #define RCC_MP_APB3ENCLRR_LPTIM4EN  BIT(2)
1109 #define RCC_MP_APB3ENCLRR_LPTIM5EN  BIT(3)
1110 #define RCC_MP_APB3ENCLRR_VREFEN    BIT(13)
1111 #define RCC_MP_APB3ENCLRR_DTSEN     BIT(16)
1112 #define RCC_MP_APB3ENCLRR_PMBCTRLEN BIT(17)
1113 #define RCC_MP_APB3ENCLRR_HDPEN     BIT(20)
1114 
1115 /* RCC_MP_S_APB3ENSETR register fields */
1116 #define RCC_MP_S_APB3ENSETR_SYSCFGEN    BIT(0)
1117 
1118 /* RCC_MP_S_APB3ENCLRR register fields */
1119 #define RCC_MP_S_APB3ENCLRR_SYSCFGEN    BIT(0)
1120 
1121 /* RCC_MP_NS_APB3ENSETR register fields */
1122 #define RCC_MP_NS_APB3ENSETR_SYSCFGEN   BIT(0)
1123 
1124 /* RCC_MP_NS_APB3ENCLRR register fields */
1125 #define RCC_MP_NS_APB3ENCLRR_SYSCFGEN   BIT(0)
1126 
1127 /* RCC_MP_APB4ENSETR register fields */
1128 #define RCC_MP_APB4ENSETR_DCMIPPEN  BIT(1)
1129 #define RCC_MP_APB4ENSETR_DDRPERFMEN    BIT(8)
1130 #define RCC_MP_APB4ENSETR_IWDG2APBEN    BIT(15)
1131 #define RCC_MP_APB4ENSETR_USBPHYEN  BIT(16)
1132 #define RCC_MP_APB4ENSETR_STGENROEN BIT(20)
1133 
1134 /* RCC_MP_APB4ENCLRR register fields */
1135 #define RCC_MP_APB4ENCLRR_DCMIPPEN  BIT(1)
1136 #define RCC_MP_APB4ENCLRR_DDRPERFMEN    BIT(8)
1137 #define RCC_MP_APB4ENCLRR_IWDG2APBEN    BIT(15)
1138 #define RCC_MP_APB4ENCLRR_USBPHYEN  BIT(16)
1139 #define RCC_MP_APB4ENCLRR_STGENROEN BIT(20)
1140 
1141 /* RCC_MP_S_APB4ENSETR register fields */
1142 #define RCC_MP_S_APB4ENSETR_LTDCEN  BIT(0)
1143 
1144 /* RCC_MP_S_APB4ENCLRR register fields */
1145 #define RCC_MP_S_APB4ENCLRR_LTDCEN  BIT(0)
1146 
1147 /* RCC_MP_NS_APB4ENSETR register fields */
1148 #define RCC_MP_NS_APB4ENSETR_LTDCEN BIT(0)
1149 
1150 /* RCC_MP_NS_APB4ENCLRR register fields */
1151 #define RCC_MP_NS_APB4ENCLRR_LTDCEN BIT(0)
1152 
1153 /* RCC_MP_APB5ENSETR register fields */
1154 #define RCC_MP_APB5ENSETR_RTCAPBEN  BIT(8)
1155 #define RCC_MP_APB5ENSETR_TZCEN     BIT(11)
1156 #define RCC_MP_APB5ENSETR_ETZPCEN   BIT(13)
1157 #define RCC_MP_APB5ENSETR_IWDG1APBEN    BIT(15)
1158 #define RCC_MP_APB5ENSETR_BSECEN    BIT(16)
1159 #define RCC_MP_APB5ENSETR_STGENCEN  BIT(20)
1160 
1161 /* RCC_MP_APB5ENCLRR register fields */
1162 #define RCC_MP_APB5ENCLRR_RTCAPBEN  BIT(8)
1163 #define RCC_MP_APB5ENCLRR_TZCEN     BIT(11)
1164 #define RCC_MP_APB5ENCLRR_ETZPCEN   BIT(13)
1165 #define RCC_MP_APB5ENCLRR_IWDG1APBEN    BIT(15)
1166 #define RCC_MP_APB5ENCLRR_BSECEN    BIT(16)
1167 #define RCC_MP_APB5ENCLRR_STGENCEN  BIT(20)
1168 
1169 /* RCC_MP_APB6ENSETR register fields */
1170 #define RCC_MP_APB6ENSETR_USART1EN  BIT(0)
1171 #define RCC_MP_APB6ENSETR_USART2EN  BIT(1)
1172 #define RCC_MP_APB6ENSETR_SPI4EN    BIT(2)
1173 #define RCC_MP_APB6ENSETR_SPI5EN    BIT(3)
1174 #define RCC_MP_APB6ENSETR_I2C3EN    BIT(4)
1175 #define RCC_MP_APB6ENSETR_I2C4EN    BIT(5)
1176 #define RCC_MP_APB6ENSETR_I2C5EN    BIT(6)
1177 #define RCC_MP_APB6ENSETR_TIM12EN   BIT(7)
1178 #define RCC_MP_APB6ENSETR_TIM13EN   BIT(8)
1179 #define RCC_MP_APB6ENSETR_TIM14EN   BIT(9)
1180 #define RCC_MP_APB6ENSETR_TIM15EN   BIT(10)
1181 #define RCC_MP_APB6ENSETR_TIM16EN   BIT(11)
1182 #define RCC_MP_APB6ENSETR_TIM17EN   BIT(12)
1183 
1184 /* RCC_MP_APB6ENCLRR register fields */
1185 #define RCC_MP_APB6ENCLRR_USART1EN  BIT(0)
1186 #define RCC_MP_APB6ENCLRR_USART2EN  BIT(1)
1187 #define RCC_MP_APB6ENCLRR_SPI4EN    BIT(2)
1188 #define RCC_MP_APB6ENCLRR_SPI5EN    BIT(3)
1189 #define RCC_MP_APB6ENCLRR_I2C3EN    BIT(4)
1190 #define RCC_MP_APB6ENCLRR_I2C4EN    BIT(5)
1191 #define RCC_MP_APB6ENCLRR_I2C5EN    BIT(6)
1192 #define RCC_MP_APB6ENCLRR_TIM12EN   BIT(7)
1193 #define RCC_MP_APB6ENCLRR_TIM13EN   BIT(8)
1194 #define RCC_MP_APB6ENCLRR_TIM14EN   BIT(9)
1195 #define RCC_MP_APB6ENCLRR_TIM15EN   BIT(10)
1196 #define RCC_MP_APB6ENCLRR_TIM16EN   BIT(11)
1197 #define RCC_MP_APB6ENCLRR_TIM17EN   BIT(12)
1198 
1199 /* RCC_MP_AHB2ENSETR register fields */
1200 #define RCC_MP_AHB2ENSETR_DMA1EN    BIT(0)
1201 #define RCC_MP_AHB2ENSETR_DMA2EN    BIT(1)
1202 #define RCC_MP_AHB2ENSETR_DMAMUX1EN BIT(2)
1203 #define RCC_MP_AHB2ENSETR_DMA3EN    BIT(3)
1204 #define RCC_MP_AHB2ENSETR_DMAMUX2EN BIT(4)
1205 #define RCC_MP_AHB2ENSETR_ADC1EN    BIT(5)
1206 #define RCC_MP_AHB2ENSETR_ADC2EN    BIT(6)
1207 #define RCC_MP_AHB2ENSETR_USBOEN    BIT(8)
1208 
1209 /* RCC_MP_AHB2ENCLRR register fields */
1210 #define RCC_MP_AHB2ENCLRR_DMA1EN    BIT(0)
1211 #define RCC_MP_AHB2ENCLRR_DMA2EN    BIT(1)
1212 #define RCC_MP_AHB2ENCLRR_DMAMUX1EN BIT(2)
1213 #define RCC_MP_AHB2ENCLRR_DMA3EN    BIT(3)
1214 #define RCC_MP_AHB2ENCLRR_DMAMUX2EN BIT(4)
1215 #define RCC_MP_AHB2ENCLRR_ADC1EN    BIT(5)
1216 #define RCC_MP_AHB2ENCLRR_ADC2EN    BIT(6)
1217 #define RCC_MP_AHB2ENCLRR_USBOEN    BIT(8)
1218 
1219 /* RCC_MP_AHB4ENSETR register fields */
1220 #define RCC_MP_AHB4ENSETR_TSCEN     BIT(15)
1221 
1222 /* RCC_MP_AHB4ENCLRR register fields */
1223 #define RCC_MP_AHB4ENCLRR_TSCEN     BIT(15)
1224 
1225 /* RCC_MP_S_AHB4ENSETR register fields */
1226 #define RCC_MP_S_AHB4ENSETR_GPIOAEN BIT(0)
1227 #define RCC_MP_S_AHB4ENSETR_GPIOBEN BIT(1)
1228 #define RCC_MP_S_AHB4ENSETR_GPIOCEN BIT(2)
1229 #define RCC_MP_S_AHB4ENSETR_GPIODEN BIT(3)
1230 #define RCC_MP_S_AHB4ENSETR_GPIOEEN BIT(4)
1231 #define RCC_MP_S_AHB4ENSETR_GPIOFEN BIT(5)
1232 #define RCC_MP_S_AHB4ENSETR_GPIOGEN BIT(6)
1233 #define RCC_MP_S_AHB4ENSETR_GPIOHEN BIT(7)
1234 #define RCC_MP_S_AHB4ENSETR_GPIOIEN BIT(8)
1235 
1236 /* RCC_MP_S_AHB4ENCLRR register fields */
1237 #define RCC_MP_S_AHB4ENCLRR_GPIOAEN BIT(0)
1238 #define RCC_MP_S_AHB4ENCLRR_GPIOBEN BIT(1)
1239 #define RCC_MP_S_AHB4ENCLRR_GPIOCEN BIT(2)
1240 #define RCC_MP_S_AHB4ENCLRR_GPIODEN BIT(3)
1241 #define RCC_MP_S_AHB4ENCLRR_GPIOEEN BIT(4)
1242 #define RCC_MP_S_AHB4ENCLRR_GPIOFEN BIT(5)
1243 #define RCC_MP_S_AHB4ENCLRR_GPIOGEN BIT(6)
1244 #define RCC_MP_S_AHB4ENCLRR_GPIOHEN BIT(7)
1245 #define RCC_MP_S_AHB4ENCLRR_GPIOIEN BIT(8)
1246 
1247 /* RCC_MP_NS_AHB4ENSETR register fields */
1248 #define RCC_MP_NS_AHB4ENSETR_GPIOAEN    BIT(0)
1249 #define RCC_MP_NS_AHB4ENSETR_GPIOBEN    BIT(1)
1250 #define RCC_MP_NS_AHB4ENSETR_GPIOCEN    BIT(2)
1251 #define RCC_MP_NS_AHB4ENSETR_GPIODEN    BIT(3)
1252 #define RCC_MP_NS_AHB4ENSETR_GPIOEEN    BIT(4)
1253 #define RCC_MP_NS_AHB4ENSETR_GPIOFEN    BIT(5)
1254 #define RCC_MP_NS_AHB4ENSETR_GPIOGEN    BIT(6)
1255 #define RCC_MP_NS_AHB4ENSETR_GPIOHEN    BIT(7)
1256 #define RCC_MP_NS_AHB4ENSETR_GPIOIEN    BIT(8)
1257 
1258 /* RCC_MP_NS_AHB4ENCLRR register fields */
1259 #define RCC_MP_NS_AHB4ENCLRR_GPIOAEN    BIT(0)
1260 #define RCC_MP_NS_AHB4ENCLRR_GPIOBEN    BIT(1)
1261 #define RCC_MP_NS_AHB4ENCLRR_GPIOCEN    BIT(2)
1262 #define RCC_MP_NS_AHB4ENCLRR_GPIODEN    BIT(3)
1263 #define RCC_MP_NS_AHB4ENCLRR_GPIOEEN    BIT(4)
1264 #define RCC_MP_NS_AHB4ENCLRR_GPIOFEN    BIT(5)
1265 #define RCC_MP_NS_AHB4ENCLRR_GPIOGEN    BIT(6)
1266 #define RCC_MP_NS_AHB4ENCLRR_GPIOHEN    BIT(7)
1267 #define RCC_MP_NS_AHB4ENCLRR_GPIOIEN    BIT(8)
1268 
1269 /* RCC_MP_AHB5ENSETR register fields */
1270 #define RCC_MP_AHB5ENSETR_PKAEN     BIT(2)
1271 #define RCC_MP_AHB5ENSETR_SAESEN    BIT(3)
1272 #define RCC_MP_AHB5ENSETR_CRYP1EN   BIT(4)
1273 #define RCC_MP_AHB5ENSETR_HASH1EN   BIT(5)
1274 #define RCC_MP_AHB5ENSETR_RNG1EN    BIT(6)
1275 #define RCC_MP_AHB5ENSETR_BKPSRAMEN BIT(8)
1276 #define RCC_MP_AHB5ENSETR_AXIMCEN   BIT(16)
1277 
1278 /* RCC_MP_AHB5ENCLRR register fields */
1279 #define RCC_MP_AHB5ENCLRR_PKAEN     BIT(2)
1280 #define RCC_MP_AHB5ENCLRR_SAESEN    BIT(3)
1281 #define RCC_MP_AHB5ENCLRR_CRYP1EN   BIT(4)
1282 #define RCC_MP_AHB5ENCLRR_HASH1EN   BIT(5)
1283 #define RCC_MP_AHB5ENCLRR_RNG1EN    BIT(6)
1284 #define RCC_MP_AHB5ENCLRR_BKPSRAMEN BIT(8)
1285 #define RCC_MP_AHB5ENCLRR_AXIMCEN   BIT(16)
1286 
1287 /* RCC_MP_AHB6ENSETR register fields */
1288 #define RCC_MP_AHB6ENSETR_MCEEN     BIT(1)
1289 #define RCC_MP_AHB6ENSETR_ETH1CKEN  BIT(7)
1290 #define RCC_MP_AHB6ENSETR_ETH1TXEN  BIT(8)
1291 #define RCC_MP_AHB6ENSETR_ETH1RXEN  BIT(9)
1292 #define RCC_MP_AHB6ENSETR_ETH1MACEN BIT(10)
1293 #define RCC_MP_AHB6ENSETR_FMCEN     BIT(12)
1294 #define RCC_MP_AHB6ENSETR_QSPIEN    BIT(14)
1295 #define RCC_MP_AHB6ENSETR_SDMMC1EN  BIT(16)
1296 #define RCC_MP_AHB6ENSETR_SDMMC2EN  BIT(17)
1297 #define RCC_MP_AHB6ENSETR_CRC1EN    BIT(20)
1298 #define RCC_MP_AHB6ENSETR_USBHEN    BIT(24)
1299 #define RCC_MP_AHB6ENSETR_ETH2CKEN  BIT(27)
1300 #define RCC_MP_AHB6ENSETR_ETH2TXEN  BIT(28)
1301 #define RCC_MP_AHB6ENSETR_ETH2RXEN  BIT(29)
1302 #define RCC_MP_AHB6ENSETR_ETH2MACEN BIT(30)
1303 
1304 /* RCC_MP_AHB6ENCLRR register fields */
1305 #define RCC_MP_AHB6ENCLRR_MCEEN     BIT(1)
1306 #define RCC_MP_AHB6ENCLRR_ETH1CKEN  BIT(7)
1307 #define RCC_MP_AHB6ENCLRR_ETH1TXEN  BIT(8)
1308 #define RCC_MP_AHB6ENCLRR_ETH1RXEN  BIT(9)
1309 #define RCC_MP_AHB6ENCLRR_ETH1MACEN BIT(10)
1310 #define RCC_MP_AHB6ENCLRR_FMCEN     BIT(12)
1311 #define RCC_MP_AHB6ENCLRR_QSPIEN    BIT(14)
1312 #define RCC_MP_AHB6ENCLRR_SDMMC1EN  BIT(16)
1313 #define RCC_MP_AHB6ENCLRR_SDMMC2EN  BIT(17)
1314 #define RCC_MP_AHB6ENCLRR_CRC1EN    BIT(20)
1315 #define RCC_MP_AHB6ENCLRR_USBHEN    BIT(24)
1316 #define RCC_MP_AHB6ENCLRR_ETH2CKEN  BIT(27)
1317 #define RCC_MP_AHB6ENCLRR_ETH2TXEN  BIT(28)
1318 #define RCC_MP_AHB6ENCLRR_ETH2RXEN  BIT(29)
1319 #define RCC_MP_AHB6ENCLRR_ETH2MACEN BIT(30)
1320 
1321 /* RCC_MP_S_AHB6ENSETR register fields */
1322 #define RCC_MP_S_AHB6ENSETR_MDMAEN  BIT(0)
1323 
1324 /* RCC_MP_S_AHB6ENCLRR register fields */
1325 #define RCC_MP_S_AHB6ENCLRR_MDMAEN  BIT(0)
1326 
1327 /* RCC_MP_NS_AHB6ENSETR register fields */
1328 #define RCC_MP_NS_AHB6ENSETR_MDMAEN BIT(0)
1329 
1330 /* RCC_MP_NS_AHB6ENCLRR register fields */
1331 #define RCC_MP_NS_AHB6ENCLRR_MDMAEN BIT(0)
1332 
1333 /* RCC_MP_APB1LPENSETR register fields */
1334 #define RCC_MP_APB1LPENSETR_TIM2LPEN    BIT(0)
1335 #define RCC_MP_APB1LPENSETR_TIM3LPEN    BIT(1)
1336 #define RCC_MP_APB1LPENSETR_TIM4LPEN    BIT(2)
1337 #define RCC_MP_APB1LPENSETR_TIM5LPEN    BIT(3)
1338 #define RCC_MP_APB1LPENSETR_TIM6LPEN    BIT(4)
1339 #define RCC_MP_APB1LPENSETR_TIM7LPEN    BIT(5)
1340 #define RCC_MP_APB1LPENSETR_LPTIM1LPEN  BIT(9)
1341 #define RCC_MP_APB1LPENSETR_SPI2LPEN    BIT(11)
1342 #define RCC_MP_APB1LPENSETR_SPI3LPEN    BIT(12)
1343 #define RCC_MP_APB1LPENSETR_USART3LPEN  BIT(15)
1344 #define RCC_MP_APB1LPENSETR_UART4LPEN   BIT(16)
1345 #define RCC_MP_APB1LPENSETR_UART5LPEN   BIT(17)
1346 #define RCC_MP_APB1LPENSETR_UART7LPEN   BIT(18)
1347 #define RCC_MP_APB1LPENSETR_UART8LPEN   BIT(19)
1348 #define RCC_MP_APB1LPENSETR_I2C1LPEN    BIT(21)
1349 #define RCC_MP_APB1LPENSETR_I2C2LPEN    BIT(22)
1350 #define RCC_MP_APB1LPENSETR_SPDIFLPEN   BIT(26)
1351 
1352 /* RCC_MP_APB1LPENCLRR register fields */
1353 #define RCC_MP_APB1LPENCLRR_TIM2LPEN    BIT(0)
1354 #define RCC_MP_APB1LPENCLRR_TIM3LPEN    BIT(1)
1355 #define RCC_MP_APB1LPENCLRR_TIM4LPEN    BIT(2)
1356 #define RCC_MP_APB1LPENCLRR_TIM5LPEN    BIT(3)
1357 #define RCC_MP_APB1LPENCLRR_TIM6LPEN    BIT(4)
1358 #define RCC_MP_APB1LPENCLRR_TIM7LPEN    BIT(5)
1359 #define RCC_MP_APB1LPENCLRR_LPTIM1LPEN  BIT(9)
1360 #define RCC_MP_APB1LPENCLRR_SPI2LPEN    BIT(11)
1361 #define RCC_MP_APB1LPENCLRR_SPI3LPEN    BIT(12)
1362 #define RCC_MP_APB1LPENCLRR_USART3LPEN  BIT(15)
1363 #define RCC_MP_APB1LPENCLRR_UART4LPEN   BIT(16)
1364 #define RCC_MP_APB1LPENCLRR_UART5LPEN   BIT(17)
1365 #define RCC_MP_APB1LPENCLRR_UART7LPEN   BIT(18)
1366 #define RCC_MP_APB1LPENCLRR_UART8LPEN   BIT(19)
1367 #define RCC_MP_APB1LPENCLRR_I2C1LPEN    BIT(21)
1368 #define RCC_MP_APB1LPENCLRR_I2C2LPEN    BIT(22)
1369 #define RCC_MP_APB1LPENCLRR_SPDIFLPEN   BIT(26)
1370 
1371 /* RCC_MP_APB2LPENSETR register fields */
1372 #define RCC_MP_APB2LPENSETR_TIM1LPEN    BIT(0)
1373 #define RCC_MP_APB2LPENSETR_TIM8LPEN    BIT(1)
1374 #define RCC_MP_APB2LPENSETR_SPI1LPEN    BIT(8)
1375 #define RCC_MP_APB2LPENSETR_USART6LPEN  BIT(13)
1376 #define RCC_MP_APB2LPENSETR_SAI1LPEN    BIT(16)
1377 #define RCC_MP_APB2LPENSETR_SAI2LPEN    BIT(17)
1378 #define RCC_MP_APB2LPENSETR_DFSDMLPEN   BIT(20)
1379 #define RCC_MP_APB2LPENSETR_ADFSDMLPEN  BIT(21)
1380 #define RCC_MP_APB2LPENSETR_FDCANLPEN   BIT(24)
1381 
1382 /* RCC_MP_APB2LPENCLRR register fields */
1383 #define RCC_MP_APB2LPENCLRR_TIM1LPEN    BIT(0)
1384 #define RCC_MP_APB2LPENCLRR_TIM8LPEN    BIT(1)
1385 #define RCC_MP_APB2LPENCLRR_SPI1LPEN    BIT(8)
1386 #define RCC_MP_APB2LPENCLRR_USART6LPEN  BIT(13)
1387 #define RCC_MP_APB2LPENCLRR_SAI1LPEN    BIT(16)
1388 #define RCC_MP_APB2LPENCLRR_SAI2LPEN    BIT(17)
1389 #define RCC_MP_APB2LPENCLRR_DFSDMLPEN   BIT(20)
1390 #define RCC_MP_APB2LPENCLRR_ADFSDMLPEN  BIT(21)
1391 #define RCC_MP_APB2LPENCLRR_FDCANLPEN   BIT(24)
1392 
1393 /* RCC_MP_APB3LPENSETR register fields */
1394 #define RCC_MP_APB3LPENSETR_LPTIM2LPEN  BIT(0)
1395 #define RCC_MP_APB3LPENSETR_LPTIM3LPEN  BIT(1)
1396 #define RCC_MP_APB3LPENSETR_LPTIM4LPEN  BIT(2)
1397 #define RCC_MP_APB3LPENSETR_LPTIM5LPEN  BIT(3)
1398 #define RCC_MP_APB3LPENSETR_VREFLPEN    BIT(13)
1399 #define RCC_MP_APB3LPENSETR_DTSLPEN BIT(16)
1400 #define RCC_MP_APB3LPENSETR_PMBCTRLLPEN BIT(17)
1401 
1402 /* RCC_MP_APB3LPENCLRR register fields */
1403 #define RCC_MP_APB3LPENCLRR_LPTIM2LPEN  BIT(0)
1404 #define RCC_MP_APB3LPENCLRR_LPTIM3LPEN  BIT(1)
1405 #define RCC_MP_APB3LPENCLRR_LPTIM4LPEN  BIT(2)
1406 #define RCC_MP_APB3LPENCLRR_LPTIM5LPEN  BIT(3)
1407 #define RCC_MP_APB3LPENCLRR_VREFLPEN    BIT(13)
1408 #define RCC_MP_APB3LPENCLRR_DTSLPEN BIT(16)
1409 #define RCC_MP_APB3LPENCLRR_PMBCTRLLPEN BIT(17)
1410 
1411 /* RCC_MP_S_APB3LPENSETR register fields */
1412 #define RCC_MP_S_APB3LPENSETR_SYSCFGLPEN    BIT(0)
1413 
1414 /* RCC_MP_S_APB3LPENCLRR register fields */
1415 #define RCC_MP_S_APB3LPENCLRR_SYSCFGLPEN    BIT(0)
1416 
1417 /* RCC_MP_NS_APB3LPENSETR register fields */
1418 #define RCC_MP_NS_APB3LPENSETR_SYSCFGLPEN   BIT(0)
1419 
1420 /* RCC_MP_NS_APB3LPENCLRR register fields */
1421 #define RCC_MP_NS_APB3LPENCLRR_SYSCFGLPEN   BIT(0)
1422 
1423 /* RCC_MP_APB4LPENSETR register fields */
1424 #define RCC_MP_APB4LPENSETR_DCMIPPLPEN      BIT(1)
1425 #define RCC_MP_APB4LPENSETR_DDRPERFMLPEN    BIT(8)
1426 #define RCC_MP_APB4LPENSETR_IWDG2APBLPEN    BIT(15)
1427 #define RCC_MP_APB4LPENSETR_USBPHYLPEN      BIT(16)
1428 #define RCC_MP_APB4LPENSETR_STGENROLPEN     BIT(20)
1429 #define RCC_MP_APB4LPENSETR_STGENROSTPEN    BIT(21)
1430 
1431 /* RCC_MP_APB4LPENCLRR register fields */
1432 #define RCC_MP_APB4LPENCLRR_DCMIPPLPEN      BIT(1)
1433 #define RCC_MP_APB4LPENCLRR_DDRPERFMLPEN    BIT(8)
1434 #define RCC_MP_APB4LPENCLRR_IWDG2APBLPEN    BIT(15)
1435 #define RCC_MP_APB4LPENCLRR_USBPHYLPEN      BIT(16)
1436 #define RCC_MP_APB4LPENCLRR_STGENROLPEN     BIT(20)
1437 #define RCC_MP_APB4LPENCLRR_STGENROSTPEN    BIT(21)
1438 
1439 /* RCC_MP_S_APB4LPENSETR register fields */
1440 #define RCC_MP_S_APB4LPENSETR_LTDCLPEN  BIT(0)
1441 
1442 /* RCC_MP_S_APB4LPENCLRR register fields */
1443 #define RCC_MP_S_APB4LPENCLRR_LTDCLPEN  BIT(0)
1444 
1445 /* RCC_MP_NS_APB4LPENSETR register fields */
1446 #define RCC_MP_NS_APB4LPENSETR_LTDCLPEN BIT(0)
1447 
1448 /* RCC_MP_NS_APB4LPENCLRR register fields */
1449 #define RCC_MP_NS_APB4LPENCLRR_LTDCLPEN BIT(0)
1450 
1451 /* RCC_MP_APB5LPENSETR register fields */
1452 #define RCC_MP_APB5LPENSETR_RTCAPBLPEN      BIT(8)
1453 #define RCC_MP_APB5LPENSETR_TZCLPEN     BIT(11)
1454 #define RCC_MP_APB5LPENSETR_ETZPCLPEN       BIT(13)
1455 #define RCC_MP_APB5LPENSETR_IWDG1APBLPEN    BIT(15)
1456 #define RCC_MP_APB5LPENSETR_BSECLPEN        BIT(16)
1457 #define RCC_MP_APB5LPENSETR_STGENCLPEN      BIT(20)
1458 #define RCC_MP_APB5LPENSETR_STGENCSTPEN     BIT(21)
1459 
1460 /* RCC_MP_APB5LPENCLRR register fields */
1461 #define RCC_MP_APB5LPENCLRR_RTCAPBLPEN      BIT(8)
1462 #define RCC_MP_APB5LPENCLRR_TZCLPEN     BIT(11)
1463 #define RCC_MP_APB5LPENCLRR_ETZPCLPEN       BIT(13)
1464 #define RCC_MP_APB5LPENCLRR_IWDG1APBLPEN    BIT(15)
1465 #define RCC_MP_APB5LPENCLRR_BSECLPEN        BIT(16)
1466 #define RCC_MP_APB5LPENCLRR_STGENCLPEN      BIT(20)
1467 #define RCC_MP_APB5LPENCLRR_STGENCSTPEN     BIT(21)
1468 
1469 /* RCC_MP_APB6LPENSETR register fields */
1470 #define RCC_MP_APB6LPENSETR_USART1LPEN  BIT(0)
1471 #define RCC_MP_APB6LPENSETR_USART2LPEN  BIT(1)
1472 #define RCC_MP_APB6LPENSETR_SPI4LPEN    BIT(2)
1473 #define RCC_MP_APB6LPENSETR_SPI5LPEN    BIT(3)
1474 #define RCC_MP_APB6LPENSETR_I2C3LPEN    BIT(4)
1475 #define RCC_MP_APB6LPENSETR_I2C4LPEN    BIT(5)
1476 #define RCC_MP_APB6LPENSETR_I2C5LPEN    BIT(6)
1477 #define RCC_MP_APB6LPENSETR_TIM12LPEN   BIT(7)
1478 #define RCC_MP_APB6LPENSETR_TIM13LPEN   BIT(8)
1479 #define RCC_MP_APB6LPENSETR_TIM14LPEN   BIT(9)
1480 #define RCC_MP_APB6LPENSETR_TIM15LPEN   BIT(10)
1481 #define RCC_MP_APB6LPENSETR_TIM16LPEN   BIT(11)
1482 #define RCC_MP_APB6LPENSETR_TIM17LPEN   BIT(12)
1483 
1484 /* RCC_MP_APB6LPENCLRR register fields */
1485 #define RCC_MP_APB6LPENCLRR_USART1LPEN  BIT(0)
1486 #define RCC_MP_APB6LPENCLRR_USART2LPEN  BIT(1)
1487 #define RCC_MP_APB6LPENCLRR_SPI4LPEN    BIT(2)
1488 #define RCC_MP_APB6LPENCLRR_SPI5LPEN    BIT(3)
1489 #define RCC_MP_APB6LPENCLRR_I2C3LPEN    BIT(4)
1490 #define RCC_MP_APB6LPENCLRR_I2C4LPEN    BIT(5)
1491 #define RCC_MP_APB6LPENCLRR_I2C5LPEN    BIT(6)
1492 #define RCC_MP_APB6LPENCLRR_TIM12LPEN   BIT(7)
1493 #define RCC_MP_APB6LPENCLRR_TIM13LPEN   BIT(8)
1494 #define RCC_MP_APB6LPENCLRR_TIM14LPEN   BIT(9)
1495 #define RCC_MP_APB6LPENCLRR_TIM15LPEN   BIT(10)
1496 #define RCC_MP_APB6LPENCLRR_TIM16LPEN   BIT(11)
1497 #define RCC_MP_APB6LPENCLRR_TIM17LPEN   BIT(12)
1498 
1499 /* RCC_MP_AHB2LPENSETR register fields */
1500 #define RCC_MP_AHB2LPENSETR_DMA1LPEN    BIT(0)
1501 #define RCC_MP_AHB2LPENSETR_DMA2LPEN    BIT(1)
1502 #define RCC_MP_AHB2LPENSETR_DMAMUX1LPEN BIT(2)
1503 #define RCC_MP_AHB2LPENSETR_DMA3LPEN    BIT(3)
1504 #define RCC_MP_AHB2LPENSETR_DMAMUX2LPEN BIT(4)
1505 #define RCC_MP_AHB2LPENSETR_ADC1LPEN    BIT(5)
1506 #define RCC_MP_AHB2LPENSETR_ADC2LPEN    BIT(6)
1507 #define RCC_MP_AHB2LPENSETR_USBOLPEN    BIT(8)
1508 
1509 /* RCC_MP_AHB2LPENCLRR register fields */
1510 #define RCC_MP_AHB2LPENCLRR_DMA1LPEN    BIT(0)
1511 #define RCC_MP_AHB2LPENCLRR_DMA2LPEN    BIT(1)
1512 #define RCC_MP_AHB2LPENCLRR_DMAMUX1LPEN BIT(2)
1513 #define RCC_MP_AHB2LPENCLRR_DMA3LPEN    BIT(3)
1514 #define RCC_MP_AHB2LPENCLRR_DMAMUX2LPEN BIT(4)
1515 #define RCC_MP_AHB2LPENCLRR_ADC1LPEN    BIT(5)
1516 #define RCC_MP_AHB2LPENCLRR_ADC2LPEN    BIT(6)
1517 #define RCC_MP_AHB2LPENCLRR_USBOLPEN    BIT(8)
1518 
1519 /* RCC_MP_AHB4LPENSETR register fields */
1520 #define RCC_MP_AHB4LPENSETR_TSCLPEN BIT(15)
1521 
1522 /* RCC_MP_AHB4LPENCLRR register fields */
1523 #define RCC_MP_AHB4LPENCLRR_TSCLPEN BIT(15)
1524 
1525 /* RCC_MP_S_AHB4LPENSETR register fields */
1526 #define RCC_MP_S_AHB4LPENSETR_GPIOALPEN BIT(0)
1527 #define RCC_MP_S_AHB4LPENSETR_GPIOBLPEN BIT(1)
1528 #define RCC_MP_S_AHB4LPENSETR_GPIOCLPEN BIT(2)
1529 #define RCC_MP_S_AHB4LPENSETR_GPIODLPEN BIT(3)
1530 #define RCC_MP_S_AHB4LPENSETR_GPIOELPEN BIT(4)
1531 #define RCC_MP_S_AHB4LPENSETR_GPIOFLPEN BIT(5)
1532 #define RCC_MP_S_AHB4LPENSETR_GPIOGLPEN BIT(6)
1533 #define RCC_MP_S_AHB4LPENSETR_GPIOHLPEN BIT(7)
1534 #define RCC_MP_S_AHB4LPENSETR_GPIOILPEN BIT(8)
1535 
1536 /* RCC_MP_S_AHB4LPENCLRR register fields */
1537 #define RCC_MP_S_AHB4LPENCLRR_GPIOALPEN BIT(0)
1538 #define RCC_MP_S_AHB4LPENCLRR_GPIOBLPEN BIT(1)
1539 #define RCC_MP_S_AHB4LPENCLRR_GPIOCLPEN BIT(2)
1540 #define RCC_MP_S_AHB4LPENCLRR_GPIODLPEN BIT(3)
1541 #define RCC_MP_S_AHB4LPENCLRR_GPIOELPEN BIT(4)
1542 #define RCC_MP_S_AHB4LPENCLRR_GPIOFLPEN BIT(5)
1543 #define RCC_MP_S_AHB4LPENCLRR_GPIOGLPEN BIT(6)
1544 #define RCC_MP_S_AHB4LPENCLRR_GPIOHLPEN BIT(7)
1545 #define RCC_MP_S_AHB4LPENCLRR_GPIOILPEN BIT(8)
1546 
1547 /* RCC_MP_NS_AHB4LPENSETR register fields */
1548 #define RCC_MP_NS_AHB4LPENSETR_GPIOALPEN BIT(0)
1549 #define RCC_MP_NS_AHB4LPENSETR_GPIOBLPEN BIT(1)
1550 #define RCC_MP_NS_AHB4LPENSETR_GPIOCLPEN BIT(2)
1551 #define RCC_MP_NS_AHB4LPENSETR_GPIODLPEN BIT(3)
1552 #define RCC_MP_NS_AHB4LPENSETR_GPIOELPEN BIT(4)
1553 #define RCC_MP_NS_AHB4LPENSETR_GPIOFLPEN BIT(5)
1554 #define RCC_MP_NS_AHB4LPENSETR_GPIOGLPEN BIT(6)
1555 #define RCC_MP_NS_AHB4LPENSETR_GPIOHLPEN BIT(7)
1556 #define RCC_MP_NS_AHB4LPENSETR_GPIOILPEN BIT(8)
1557 
1558 /* RCC_MP_NS_AHB4LPENCLRR register fields */
1559 #define RCC_MP_NS_AHB4LPENCLRR_GPIOALPEN BIT(0)
1560 #define RCC_MP_NS_AHB4LPENCLRR_GPIOBLPEN BIT(1)
1561 #define RCC_MP_NS_AHB4LPENCLRR_GPIOCLPEN BIT(2)
1562 #define RCC_MP_NS_AHB4LPENCLRR_GPIODLPEN BIT(3)
1563 #define RCC_MP_NS_AHB4LPENCLRR_GPIOELPEN BIT(4)
1564 #define RCC_MP_NS_AHB4LPENCLRR_GPIOFLPEN BIT(5)
1565 #define RCC_MP_NS_AHB4LPENCLRR_GPIOGLPEN BIT(6)
1566 #define RCC_MP_NS_AHB4LPENCLRR_GPIOHLPEN BIT(7)
1567 #define RCC_MP_NS_AHB4LPENCLRR_GPIOILPEN BIT(8)
1568 
1569 /* RCC_MP_AHB5LPENSETR register fields */
1570 #define RCC_MP_AHB5LPENSETR_PKALPEN BIT(2)
1571 #define RCC_MP_AHB5LPENSETR_SAESLPEN    BIT(3)
1572 #define RCC_MP_AHB5LPENSETR_CRYP1LPEN   BIT(4)
1573 #define RCC_MP_AHB5LPENSETR_HASH1LPEN   BIT(5)
1574 #define RCC_MP_AHB5LPENSETR_RNG1LPEN    BIT(6)
1575 #define RCC_MP_AHB5LPENSETR_BKPSRAMLPEN BIT(8)
1576 
1577 /* RCC_MP_AHB5LPENCLRR register fields */
1578 #define RCC_MP_AHB5LPENCLRR_PKALPEN BIT(2)
1579 #define RCC_MP_AHB5LPENCLRR_SAESLPEN    BIT(3)
1580 #define RCC_MP_AHB5LPENCLRR_CRYP1LPEN   BIT(4)
1581 #define RCC_MP_AHB5LPENCLRR_HASH1LPEN   BIT(5)
1582 #define RCC_MP_AHB5LPENCLRR_RNG1LPEN    BIT(6)
1583 #define RCC_MP_AHB5LPENCLRR_BKPSRAMLPEN BIT(8)
1584 
1585 /* RCC_MP_AHB6LPENSETR register fields */
1586 #define RCC_MP_AHB6LPENSETR_MCELPEN BIT(1)
1587 #define RCC_MP_AHB6LPENSETR_ETH1CKLPEN  BIT(7)
1588 #define RCC_MP_AHB6LPENSETR_ETH1TXLPEN  BIT(8)
1589 #define RCC_MP_AHB6LPENSETR_ETH1RXLPEN  BIT(9)
1590 #define RCC_MP_AHB6LPENSETR_ETH1MACLPEN BIT(10)
1591 #define RCC_MP_AHB6LPENSETR_ETH1STPEN   BIT(11)
1592 #define RCC_MP_AHB6LPENSETR_FMCLPEN BIT(12)
1593 #define RCC_MP_AHB6LPENSETR_QSPILPEN    BIT(14)
1594 #define RCC_MP_AHB6LPENSETR_SDMMC1LPEN  BIT(16)
1595 #define RCC_MP_AHB6LPENSETR_SDMMC2LPEN  BIT(17)
1596 #define RCC_MP_AHB6LPENSETR_CRC1LPEN    BIT(20)
1597 #define RCC_MP_AHB6LPENSETR_USBHLPEN    BIT(24)
1598 #define RCC_MP_AHB6LPENSETR_ETH2CKLPEN  BIT(27)
1599 #define RCC_MP_AHB6LPENSETR_ETH2TXLPEN  BIT(28)
1600 #define RCC_MP_AHB6LPENSETR_ETH2RXLPEN  BIT(29)
1601 #define RCC_MP_AHB6LPENSETR_ETH2MACLPEN BIT(30)
1602 #define RCC_MP_AHB6LPENSETR_ETH2STPEN   BIT(31)
1603 
1604 /* RCC_MP_AHB6LPENCLRR register fields */
1605 #define RCC_MP_AHB6LPENCLRR_MCELPEN BIT(1)
1606 #define RCC_MP_AHB6LPENCLRR_ETH1CKLPEN  BIT(7)
1607 #define RCC_MP_AHB6LPENCLRR_ETH1TXLPEN  BIT(8)
1608 #define RCC_MP_AHB6LPENCLRR_ETH1RXLPEN  BIT(9)
1609 #define RCC_MP_AHB6LPENCLRR_ETH1MACLPEN BIT(10)
1610 #define RCC_MP_AHB6LPENCLRR_ETH1STPEN   BIT(11)
1611 #define RCC_MP_AHB6LPENCLRR_FMCLPEN BIT(12)
1612 #define RCC_MP_AHB6LPENCLRR_QSPILPEN    BIT(14)
1613 #define RCC_MP_AHB6LPENCLRR_SDMMC1LPEN  BIT(16)
1614 #define RCC_MP_AHB6LPENCLRR_SDMMC2LPEN  BIT(17)
1615 #define RCC_MP_AHB6LPENCLRR_CRC1LPEN    BIT(20)
1616 #define RCC_MP_AHB6LPENCLRR_USBHLPEN    BIT(24)
1617 #define RCC_MP_AHB6LPENCLRR_ETH2CKLPEN  BIT(27)
1618 #define RCC_MP_AHB6LPENCLRR_ETH2TXLPEN  BIT(28)
1619 #define RCC_MP_AHB6LPENCLRR_ETH2RXLPEN  BIT(29)
1620 #define RCC_MP_AHB6LPENCLRR_ETH2MACLPEN BIT(30)
1621 #define RCC_MP_AHB6LPENCLRR_ETH2STPEN   BIT(31)
1622 
1623 /* RCC_MP_S_AHB6LPENSETR register fields */
1624 #define RCC_MP_S_AHB6LPENSETR_MDMALPEN  BIT(0)
1625 
1626 /* RCC_MP_S_AHB6LPENCLRR register fields */
1627 #define RCC_MP_S_AHB6LPENCLRR_MDMALPEN  BIT(0)
1628 
1629 /* RCC_MP_NS_AHB6LPENSETR register fields */
1630 #define RCC_MP_NS_AHB6LPENSETR_MDMALPEN BIT(0)
1631 
1632 /* RCC_MP_NS_AHB6LPENCLRR register fields */
1633 #define RCC_MP_NS_AHB6LPENCLRR_MDMALPEN BIT(0)
1634 
1635 /* RCC_MP_S_AXIMLPENSETR register fields */
1636 #define RCC_MP_S_AXIMLPENSETR_SYSRAMLPEN BIT(0)
1637 
1638 /* RCC_MP_S_AXIMLPENCLRR register fields */
1639 #define RCC_MP_S_AXIMLPENCLRR_SYSRAMLPEN BIT(0)
1640 
1641 /* RCC_MP_NS_AXIMLPENSETR register fields */
1642 #define RCC_MP_NS_AXIMLPENSETR_SYSRAMLPEN BIT(0)
1643 
1644 /* RCC_MP_NS_AXIMLPENCLRR register fields */
1645 #define RCC_MP_NS_AXIMLPENCLRR_SYSRAMLPEN BIT(0)
1646 
1647 /* RCC_MP_MLAHBLPENSETR register fields */
1648 #define RCC_MP_MLAHBLPENSETR_SRAM1LPEN  BIT(0)
1649 #define RCC_MP_MLAHBLPENSETR_SRAM2LPEN  BIT(1)
1650 #define RCC_MP_MLAHBLPENSETR_SRAM3LPEN  BIT(2)
1651 
1652 /* RCC_MP_MLAHBLPENCLRR register fields */
1653 #define RCC_MP_MLAHBLPENCLRR_SRAM1LPEN  BIT(0)
1654 #define RCC_MP_MLAHBLPENCLRR_SRAM2LPEN  BIT(1)
1655 #define RCC_MP_MLAHBLPENCLRR_SRAM3LPEN  BIT(2)
1656 
1657 /* RCC_APB3SECSR register fields */
1658 #define RCC_APB3SECSR_LPTIM2SECF    0
1659 #define RCC_APB3SECSR_LPTIM3SECF    1
1660 #define RCC_APB3SECSR_VREFSECF      13
1661 
1662 /* RCC_APB4SECSR register fields */
1663 #define RCC_APB4SECSR_DCMIPPSECF    1
1664 #define RCC_APB4SECSR_USBPHYSECF    16
1665 
1666 /* RCC_APB5SECSR register fields */
1667 #define RCC_APB5SECSR_RTCSECF       8
1668 #define RCC_APB5SECSR_TZCSECF       11
1669 #define RCC_APB5SECSR_ETZPCSECF     13
1670 #define RCC_APB5SECSR_IWDG1SECF     15
1671 #define RCC_APB5SECSR_BSECSECF      16
1672 #define RCC_APB5SECSR_STGENCSECF_MASK   GENMASK(21, 20)
1673 #define RCC_APB5SECSR_STGENCSECF    20
1674 #define RCC_APB5SECSR_STGENROSECF   21
1675 
1676 /* RCC_APB6SECSR register fields */
1677 #define RCC_APB6SECSR_USART1SECF        0
1678 #define RCC_APB6SECSR_USART2SECF    1
1679 #define RCC_APB6SECSR_SPI4SECF      2
1680 #define RCC_APB6SECSR_SPI5SECF      3
1681 #define RCC_APB6SECSR_I2C3SECF      4
1682 #define RCC_APB6SECSR_I2C4SECF      5
1683 #define RCC_APB6SECSR_I2C5SECF      6
1684 #define RCC_APB6SECSR_TIM12SECF     7
1685 #define RCC_APB6SECSR_TIM13SECF     8
1686 #define RCC_APB6SECSR_TIM14SECF     9
1687 #define RCC_APB6SECSR_TIM15SECF     10
1688 #define RCC_APB6SECSR_TIM16SECF     11
1689 #define RCC_APB6SECSR_TIM17SECF     12
1690 
1691 /* RCC_AHB2SECSR register fields */
1692 #define RCC_AHB2SECSR_DMA3SECF      3
1693 #define RCC_AHB2SECSR_DMAMUX2SECF   4
1694 #define RCC_AHB2SECSR_ADC1SECF      5
1695 #define RCC_AHB2SECSR_ADC2SECF      6
1696 #define RCC_AHB2SECSR_USBOSECF      8
1697 
1698 /* RCC_AHB4SECSR register fields */
1699 #define RCC_AHB4SECSR_TSCSECF       15
1700 
1701 /* RCC_AHB5SECSR register fields */
1702 #define RCC_AHB5SECSR_PKASECF       2
1703 #define RCC_AHB5SECSR_SAESSECF      3
1704 #define RCC_AHB5SECSR_CRYP1SECF     4
1705 #define RCC_AHB5SECSR_HASH1SECF     5
1706 #define RCC_AHB5SECSR_RNG1SECF      6
1707 #define RCC_AHB5SECSR_BKPSRAMSECF   8
1708 
1709 /* RCC_AHB6SECSR register fields */
1710 #define RCC_AHB6SECSR_MCESECF       1
1711 #define RCC_AHB6SECSR_FMCSECF       12
1712 #define RCC_AHB6SECSR_QSPISECF      14
1713 #define RCC_AHB6SECSR_SDMMC1SECF    16
1714 #define RCC_AHB6SECSR_SDMMC2SECF    17
1715 
1716 #define RCC_AHB6SECSR_ETH1SECF_MASK GENMASK(11, 7)
1717 #define RCC_AHB6SECSR_ETH2SECF_MASK GENMASK(31, 27)
1718 #define RCC_AHB6SECSR_ETH1SECF_SHIFT    7
1719 #define RCC_AHB6SECSR_ETH2SECF_SHIFT    27
1720 
1721 #define RCC_AHB6SECSR_ETH1CKSECF    7
1722 #define RCC_AHB6SECSR_ETH1TXSECF    8
1723 #define RCC_AHB6SECSR_ETH1RXSECF    9
1724 #define RCC_AHB6SECSR_ETH1MACSECF   10
1725 #define RCC_AHB6SECSR_ETH1STPSECF   11
1726 
1727 #define RCC_AHB6SECSR_ETH2CKSECF    27
1728 #define RCC_AHB6SECSR_ETH2TXSECF    28
1729 #define RCC_AHB6SECSR_ETH2RXSECF    29
1730 #define RCC_AHB6SECSR_ETH2MACSECF   30
1731 #define RCC_AHB6SECSR_ETH2STPSECF   31
1732 
1733 /* RCC_VERR register fields */
1734 #define RCC_VERR_MINREV_MASK        GENMASK(3, 0)
1735 #define RCC_VERR_MAJREV_MASK        GENMASK(7, 4)
1736 #define RCC_VERR_MINREV_SHIFT       0
1737 #define RCC_VERR_MAJREV_SHIFT       4
1738 
1739 /* RCC_IDR register fields */
1740 #define RCC_IDR_ID_MASK         GENMASK(31, 0)
1741 #define RCC_IDR_ID_SHIFT        0
1742 
1743 /* RCC_SIDR register fields */
1744 #define RCC_SIDR_SID_MASK       GENMASK(31, 0)
1745 #define RCC_SIDR_SID_SHIFT      0
1746 
1747 #endif /* STM32MP13_RCC_H */
1748