stm32mp13_rcc.h 61 KB

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