stm32mp13-clksrc.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. /*
  2. * Copyright (C) 2022, STMicroelectronics - All Rights Reserved
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
  5. */
  6. #ifndef _DT_BINDINGS_CLOCK_STM32MP13_CLKSRC_H_
  7. #define _DT_BINDINGS_CLOCK_STM32MP13_CLKSRC_H_
  8. #define CMD_DIV 0
  9. #define CMD_MUX 1
  10. #define CMD_CLK 2
  11. #define CMD_RESERVED1 3
  12. #define CMD_SHIFT 26
  13. #define CMD_MASK 0xFC000000
  14. #define CMD_DATA_MASK 0x03FFFFFF
  15. #define DIV_ID_SHIFT 8
  16. #define DIV_ID_MASK 0x0000FF00
  17. #define DIV_DIVN_SHIFT 0
  18. #define DIV_DIVN_MASK 0x000000FF
  19. #define MUX_ID_SHIFT 4
  20. #define MUX_ID_MASK 0x00000FF0
  21. #define MUX_SEL_SHIFT 0
  22. #define MUX_SEL_MASK 0x0000000F
  23. #define CLK_ID_MASK GENMASK_32(19, 11)
  24. #define CLK_ID_SHIFT 11
  25. #define CLK_ON_MASK 0x00000400
  26. #define CLK_ON_SHIFT 10
  27. #define CLK_DIV_MASK GENMASK_32(9, 4)
  28. #define CLK_DIV_SHIFT 4
  29. #define CLK_SEL_MASK GENMASK_32(3, 0)
  30. #define CLK_SEL_SHIFT 0
  31. #define DIV_PLL1DIVP 0
  32. #define DIV_PLL2DIVP 1
  33. #define DIV_PLL2DIVQ 2
  34. #define DIV_PLL2DIVR 3
  35. #define DIV_PLL3DIVP 4
  36. #define DIV_PLL3DIVQ 5
  37. #define DIV_PLL3DIVR 6
  38. #define DIV_PLL4DIVP 7
  39. #define DIV_PLL4DIVQ 8
  40. #define DIV_PLL4DIVR 9
  41. #define DIV_MPU 10
  42. #define DIV_AXI 11
  43. #define DIV_MLAHB 12
  44. #define DIV_APB1 13
  45. #define DIV_APB2 14
  46. #define DIV_APB3 15
  47. #define DIV_APB4 16
  48. #define DIV_APB5 17
  49. #define DIV_APB6 18
  50. #define DIV_RTC 19
  51. #define DIV_MCO1 20
  52. #define DIV_MCO2 21
  53. #define DIV_HSI 22
  54. #define DIV_TRACE 23
  55. #define DIV_ETH1PTP 24
  56. #define DIV_ETH2PTP 25
  57. #define DIV_MAX 26
  58. #define DIV(div_id, div) ((CMD_DIV << CMD_SHIFT) |\
  59. ((div_id) << DIV_ID_SHIFT |\
  60. (div)))
  61. #define CLKSRC(mux_id, sel) ((CMD_MUX << CMD_SHIFT) |\
  62. ((mux_id) << MUX_ID_SHIFT |\
  63. (sel)))
  64. /* MCO output is enable */
  65. #define MCO_SRC(mco_id, sel) ((CMD_CLK << CMD_SHIFT) |\
  66. (((mco_id) << CLK_ID_SHIFT) |\
  67. (sel)) | CLK_ON_MASK)
  68. #define MCO_DISABLED(mco_id) ((CMD_CLK << CMD_SHIFT) |\
  69. ((mco_id) << CLK_ID_SHIFT))
  70. /* CLK output is enable */
  71. #define CLK_SRC(clk_id, sel) ((CMD_CLK << CMD_SHIFT) |\
  72. (((clk_id) << CLK_ID_SHIFT) |\
  73. (sel)) | CLK_ON_MASK)
  74. #define CLK_DISABLED(clk_id) ((CMD_CLK << CMD_SHIFT) |\
  75. ((clk_id) << CLK_ID_SHIFT))
  76. #define MUX_MPU 0
  77. #define MUX_AXI 1
  78. #define MUX_MLAHB 2
  79. #define MUX_PLL12 3
  80. #define MUX_PLL3 4
  81. #define MUX_PLL4 5
  82. #define MUX_RTC 6
  83. #define MUX_MCO1 7
  84. #define MUX_MCO2 8
  85. #define MUX_CKPER 9
  86. #define MUX_KERNEL_BEGIN 10
  87. #define MUX_ADC1 10
  88. #define MUX_ADC2 11
  89. #define MUX_DCMIPP 12
  90. #define MUX_ETH1 13
  91. #define MUX_ETH2 14
  92. #define MUX_FDCAN 15
  93. #define MUX_FMC 16
  94. #define MUX_I2C12 17
  95. #define MUX_I2C3 18
  96. #define MUX_I2C4 19
  97. #define MUX_I2C5 20
  98. #define MUX_LPTIM1 21
  99. #define MUX_LPTIM2 22
  100. #define MUX_LPTIM3 23
  101. #define MUX_LPTIM45 24
  102. #define MUX_QSPI 25
  103. #define MUX_RNG1 26
  104. #define MUX_SAES 27
  105. #define MUX_SAI1 28
  106. #define MUX_SAI2 29
  107. #define MUX_SDMMC1 30
  108. #define MUX_SDMMC2 31
  109. #define MUX_SPDIF 32
  110. #define MUX_SPI1 33
  111. #define MUX_SPI23 34
  112. #define MUX_SPI4 35
  113. #define MUX_SPI5 36
  114. #define MUX_STGEN 37
  115. #define MUX_UART1 38
  116. #define MUX_UART2 39
  117. #define MUX_UART35 40
  118. #define MUX_UART4 41
  119. #define MUX_UART6 42
  120. #define MUX_UART78 43
  121. #define MUX_USBO 44
  122. #define MUX_USBPHY 45
  123. #define MUX_MAX 46
  124. #define CLK_MPU_HSI CLKSRC(MUX_MPU, 0)
  125. #define CLK_MPU_HSE CLKSRC(MUX_MPU, 1)
  126. #define CLK_MPU_PLL1P CLKSRC(MUX_MPU, 2)
  127. #define CLK_MPU_PLL1P_DIV CLKSRC(MUX_MPU, 3)
  128. #define CLK_AXI_HSI CLKSRC(MUX_AXI, 0)
  129. #define CLK_AXI_HSE CLKSRC(MUX_AXI, 1)
  130. #define CLK_AXI_PLL2P CLKSRC(MUX_AXI, 2)
  131. #define CLK_MLAHBS_HSI CLKSRC(MUX_MLAHB, 0)
  132. #define CLK_MLAHBS_HSE CLKSRC(MUX_MLAHB, 1)
  133. #define CLK_MLAHBS_CSI CLKSRC(MUX_MLAHB, 2)
  134. #define CLK_MLAHBS_PLL3 CLKSRC(MUX_MLAHB, 3)
  135. #define CLK_PLL12_HSI CLKSRC(MUX_PLL12, 0)
  136. #define CLK_PLL12_HSE CLKSRC(MUX_PLL12, 1)
  137. #define CLK_PLL3_HSI CLKSRC(MUX_PLL3, 0)
  138. #define CLK_PLL3_HSE CLKSRC(MUX_PLL3, 1)
  139. #define CLK_PLL3_CSI CLKSRC(MUX_PLL3, 2)
  140. #define CLK_PLL4_HSI CLKSRC(MUX_PLL4, 0)
  141. #define CLK_PLL4_HSE CLKSRC(MUX_PLL4, 1)
  142. #define CLK_PLL4_CSI CLKSRC(MUX_PLL4, 2)
  143. #define CLK_RTC_DISABLED CLK_DISABLED(RTC)
  144. #define CLK_RTC_LSE CLK_SRC(RTC, 1)
  145. #define CLK_RTC_LSI CLK_SRC(RTC, 2)
  146. #define CLK_RTC_HSE CLK_SRC(RTC, 3)
  147. #define CLK_MCO1_HSI CLK_SRC(CK_MCO1, 0)
  148. #define CLK_MCO1_HSE CLK_SRC(CK_MCO1, 1)
  149. #define CLK_MCO1_CSI CLK_SRC(CK_MCO1, 2)
  150. #define CLK_MCO1_LSI CLK_SRC(CK_MCO1, 3)
  151. #define CLK_MCO1_LSE CLK_SRC(CK_MCO1, 4)
  152. #define CLK_MCO1_DISABLED CLK_DISABLED(CK_MCO1)
  153. #define CLK_MCO2_MPU CLK_SRC(CK_MCO2, 0)
  154. #define CLK_MCO2_AXI CLK_SRC(CK_MCO2, 1)
  155. #define CLK_MCO2_MLAHB CLK_SRC(CK_MCO2, 2)
  156. #define CLK_MCO2_PLL4 CLK_SRC(CK_MCO2, 3)
  157. #define CLK_MCO2_HSE CLK_SRC(CK_MCO2, 4)
  158. #define CLK_MCO2_HSI CLK_SRC(CK_MCO2, 5)
  159. #define CLK_MCO2_DISABLED CLK_DISABLED(CK_MCO2)
  160. #define CLK_CKPER_HSI CLKSRC(MUX_CKPER, 0)
  161. #define CLK_CKPER_CSI CLKSRC(MUX_CKPER, 1)
  162. #define CLK_CKPER_HSE CLKSRC(MUX_CKPER, 2)
  163. #define CLK_CKPER_DISABLED CLKSRC(MUX_CKPER, 3)
  164. #define CLK_I2C12_PCLK1 CLKSRC(MUX_I2C12, 0)
  165. #define CLK_I2C12_PLL4R CLKSRC(MUX_I2C12, 1)
  166. #define CLK_I2C12_HSI CLKSRC(MUX_I2C12, 2)
  167. #define CLK_I2C12_CSI CLKSRC(MUX_I2C12, 3)
  168. #define CLK_I2C3_PCLK6 CLKSRC(MUX_I2C3, 0)
  169. #define CLK_I2C3_PLL4R CLKSRC(MUX_I2C3, 1)
  170. #define CLK_I2C3_HSI CLKSRC(MUX_I2C3, 2)
  171. #define CLK_I2C3_CSI CLKSRC(MUX_I2C3, 3)
  172. #define CLK_I2C4_PCLK6 CLKSRC(MUX_I2C4, 0)
  173. #define CLK_I2C4_PLL4R CLKSRC(MUX_I2C4, 1)
  174. #define CLK_I2C4_HSI CLKSRC(MUX_I2C4, 2)
  175. #define CLK_I2C4_CSI CLKSRC(MUX_I2C4, 3)
  176. #define CLK_I2C5_PCLK6 CLKSRC(MUX_I2C5, 0)
  177. #define CLK_I2C5_PLL4R CLKSRC(MUX_I2C5, 1)
  178. #define CLK_I2C5_HSI CLKSRC(MUX_I2C5, 2)
  179. #define CLK_I2C5_CSI CLKSRC(MUX_I2C5, 3)
  180. #define CLK_SPI1_PLL4P CLKSRC(MUX_SPI1, 0)
  181. #define CLK_SPI1_PLL3Q CLKSRC(MUX_SPI1, 1)
  182. #define CLK_SPI1_I2SCKIN CLKSRC(MUX_SPI1, 2)
  183. #define CLK_SPI1_CKPER CLKSRC(MUX_SPI1, 3)
  184. #define CLK_SPI1_PLL3R CLKSRC(MUX_SPI1, 4)
  185. #define CLK_SPI23_PLL4P CLKSRC(MUX_SPI23, 0)
  186. #define CLK_SPI23_PLL3Q CLKSRC(MUX_SPI23, 1)
  187. #define CLK_SPI23_I2SCKIN CLKSRC(MUX_SPI23, 2)
  188. #define CLK_SPI23_CKPER CLKSRC(MUX_SPI23, 3)
  189. #define CLK_SPI23_PLL3R CLKSRC(MUX_SPI23, 4)
  190. #define CLK_SPI4_PCLK6 CLKSRC(MUX_SPI4, 0)
  191. #define CLK_SPI4_PLL4Q CLKSRC(MUX_SPI4, 1)
  192. #define CLK_SPI4_HSI CLKSRC(MUX_SPI4, 2)
  193. #define CLK_SPI4_CSI CLKSRC(MUX_SPI4, 3)
  194. #define CLK_SPI4_HSE CLKSRC(MUX_SPI4, 4)
  195. #define CLK_SPI4_I2SCKIN CLKSRC(MUX_SPI4, 5)
  196. #define CLK_SPI5_PCLK6 CLKSRC(MUX_SPI5, 0)
  197. #define CLK_SPI5_PLL4Q CLKSRC(MUX_SPI5, 1)
  198. #define CLK_SPI5_HSI CLKSRC(MUX_SPI5, 2)
  199. #define CLK_SPI5_CSI CLKSRC(MUX_SPI5, 3)
  200. #define CLK_SPI5_HSE CLKSRC(MUX_SPI5, 4)
  201. #define CLK_UART1_PCLK6 CLKSRC(MUX_UART1, 0)
  202. #define CLK_UART1_PLL3Q CLKSRC(MUX_UART1, 1)
  203. #define CLK_UART1_HSI CLKSRC(MUX_UART1, 2)
  204. #define CLK_UART1_CSI CLKSRC(MUX_UART1, 3)
  205. #define CLK_UART1_PLL4Q CLKSRC(MUX_UART1, 4)
  206. #define CLK_UART1_HSE CLKSRC(MUX_UART1, 5)
  207. #define CLK_UART2_PCLK6 CLKSRC(MUX_UART2, 0)
  208. #define CLK_UART2_PLL3Q CLKSRC(MUX_UART2, 1)
  209. #define CLK_UART2_HSI CLKSRC(MUX_UART2, 2)
  210. #define CLK_UART2_CSI CLKSRC(MUX_UART2, 3)
  211. #define CLK_UART2_PLL4Q CLKSRC(MUX_UART2, 4)
  212. #define CLK_UART2_HSE CLKSRC(MUX_UART2, 5)
  213. #define CLK_UART35_PCLK1 CLKSRC(MUX_UART35, 0)
  214. #define CLK_UART35_PLL4Q CLKSRC(MUX_UART35, 1)
  215. #define CLK_UART35_HSI CLKSRC(MUX_UART35, 2)
  216. #define CLK_UART35_CSI CLKSRC(MUX_UART35, 3)
  217. #define CLK_UART35_HSE CLKSRC(MUX_UART35, 4)
  218. #define CLK_UART4_PCLK1 CLKSRC(MUX_UART4, 0)
  219. #define CLK_UART4_PLL4Q CLKSRC(MUX_UART4, 1)
  220. #define CLK_UART4_HSI CLKSRC(MUX_UART4, 2)
  221. #define CLK_UART4_CSI CLKSRC(MUX_UART4, 3)
  222. #define CLK_UART4_HSE CLKSRC(MUX_UART4, 4)
  223. #define CLK_UART6_PCLK2 CLKSRC(MUX_UART6, 0)
  224. #define CLK_UART6_PLL4Q CLKSRC(MUX_UART6, 1)
  225. #define CLK_UART6_HSI CLKSRC(MUX_UART6, 2)
  226. #define CLK_UART6_CSI CLKSRC(MUX_UART6, 3)
  227. #define CLK_UART6_HSE CLKSRC(MUX_UART6, 4)
  228. #define CLK_UART78_PCLK1 CLKSRC(MUX_UART78, 0)
  229. #define CLK_UART78_PLL4Q CLKSRC(MUX_UART78, 1)
  230. #define CLK_UART78_HSI CLKSRC(MUX_UART78, 2)
  231. #define CLK_UART78_CSI CLKSRC(MUX_UART78, 3)
  232. #define CLK_UART78_HSE CLKSRC(MUX_UART78, 4)
  233. #define CLK_LPTIM1_PCLK1 CLKSRC(MUX_LPTIM1, 0)
  234. #define CLK_LPTIM1_PLL4P CLKSRC(MUX_LPTIM1, 1)
  235. #define CLK_LPTIM1_PLL3Q CLKSRC(MUX_LPTIM1, 2)
  236. #define CLK_LPTIM1_LSE CLKSRC(MUX_LPTIM1, 3)
  237. #define CLK_LPTIM1_LSI CLKSRC(MUX_LPTIM1, 4)
  238. #define CLK_LPTIM1_CKPER CLKSRC(MUX_LPTIM1, 5)
  239. #define CLK_LPTIM2_PCLK3 CLKSRC(MUX_LPTIM2, 0)
  240. #define CLK_LPTIM2_PLL4Q CLKSRC(MUX_LPTIM2, 1)
  241. #define CLK_LPTIM2_CKPER CLKSRC(MUX_LPTIM2, 2)
  242. #define CLK_LPTIM2_LSE CLKSRC(MUX_LPTIM2, 3)
  243. #define CLK_LPTIM2_LSI CLKSRC(MUX_LPTIM2, 4)
  244. #define CLK_LPTIM3_PCLK3 CLKSRC(MUX_LPTIM3, 0)
  245. #define CLK_LPTIM3_PLL4Q CLKSRC(MUX_LPTIM3, 1)
  246. #define CLK_LPTIM3_CKPER CLKSRC(MUX_LPTIM3, 2)
  247. #define CLK_LPTIM3_LSE CLKSRC(MUX_LPTIM3, 3)
  248. #define CLK_LPTIM3_LSI CLKSRC(MUX_LPTIM3, 4)
  249. #define CLK_LPTIM45_PCLK3 CLKSRC(MUX_LPTIM45, 0)
  250. #define CLK_LPTIM45_PLL4P CLKSRC(MUX_LPTIM45, 1)
  251. #define CLK_LPTIM45_PLL3Q CLKSRC(MUX_LPTIM45, 2)
  252. #define CLK_LPTIM45_LSE CLKSRC(MUX_LPTIM45, 3)
  253. #define CLK_LPTIM45_LSI CLKSRC(MUX_LPTIM45, 4)
  254. #define CLK_LPTIM45_CKPER CLKSRC(MUX_LPTIM45, 5)
  255. #define CLK_SAI1_PLL4Q CLKSRC(MUX_SAI1, 0)
  256. #define CLK_SAI1_PLL3Q CLKSRC(MUX_SAI1, 1)
  257. #define CLK_SAI1_I2SCKIN CLKSRC(MUX_SAI1, 2)
  258. #define CLK_SAI1_CKPER CLKSRC(MUX_SAI1, 3)
  259. #define CLK_SAI1_PLL3R CLKSRC(MUX_SAI1, 4)
  260. #define CLK_SAI2_PLL4Q CLKSRC(MUX_SAI2, 0)
  261. #define CLK_SAI2_PLL3Q CLKSRC(MUX_SAI2, 1)
  262. #define CLK_SAI2_I2SCKIN CLKSRC(MUX_SAI2, 2)
  263. #define CLK_SAI2_CKPER CLKSRC(MUX_SAI2, 3)
  264. #define CLK_SAI2_SPDIF CLKSRC(MUX_SAI2, 4)
  265. #define CLK_SAI2_PLL3R CLKSRC(MUX_SAI2, 5)
  266. #define CLK_FDCAN_HSE CLKSRC(MUX_FDCAN, 0)
  267. #define CLK_FDCAN_PLL3Q CLKSRC(MUX_FDCAN, 1)
  268. #define CLK_FDCAN_PLL4Q CLKSRC(MUX_FDCAN, 2)
  269. #define CLK_FDCAN_PLL4R CLKSRC(MUX_FDCAN, 3)
  270. #define CLK_SPDIF_PLL4P CLKSRC(MUX_SPDIF, 0)
  271. #define CLK_SPDIF_PLL3Q CLKSRC(MUX_SPDIF, 1)
  272. #define CLK_SPDIF_HSI CLKSRC(MUX_SPDIF, 2)
  273. #define CLK_ADC1_PLL4R CLKSRC(MUX_ADC1, 0)
  274. #define CLK_ADC1_CKPER CLKSRC(MUX_ADC1, 1)
  275. #define CLK_ADC1_PLL3Q CLKSRC(MUX_ADC1, 2)
  276. #define CLK_ADC2_PLL4R CLKSRC(MUX_ADC2, 0)
  277. #define CLK_ADC2_CKPER CLKSRC(MUX_ADC2, 1)
  278. #define CLK_ADC2_PLL3Q CLKSRC(MUX_ADC2, 2)
  279. #define CLK_SDMMC1_HCLK6 CLKSRC(MUX_SDMMC1, 0)
  280. #define CLK_SDMMC1_PLL3R CLKSRC(MUX_SDMMC1, 1)
  281. #define CLK_SDMMC1_PLL4P CLKSRC(MUX_SDMMC1, 2)
  282. #define CLK_SDMMC1_HSI CLKSRC(MUX_SDMMC1, 3)
  283. #define CLK_SDMMC2_HCLK6 CLKSRC(MUX_SDMMC2, 0)
  284. #define CLK_SDMMC2_PLL3R CLKSRC(MUX_SDMMC2, 1)
  285. #define CLK_SDMMC2_PLL4P CLKSRC(MUX_SDMMC2, 2)
  286. #define CLK_SDMMC2_HSI CLKSRC(MUX_SDMMC2, 3)
  287. #define CLK_ETH1_PLL4P CLKSRC(MUX_ETH1, 0)
  288. #define CLK_ETH1_PLL3Q CLKSRC(MUX_ETH1, 1)
  289. #define CLK_ETH2_PLL4P CLKSRC(MUX_ETH2, 0)
  290. #define CLK_ETH2_PLL3Q CLKSRC(MUX_ETH2, 1)
  291. #define CLK_USBPHY_HSE CLKSRC(MUX_USBPHY, 0)
  292. #define CLK_USBPHY_PLL4R CLKSRC(MUX_USBPHY, 1)
  293. #define CLK_USBPHY_HSE_DIV2 CLKSRC(MUX_USBPHY, 2)
  294. #define CLK_USBO_PLL4R CLKSRC(MUX_USBO, 0)
  295. #define CLK_USBO_USBPHY CLKSRC(MUX_USBO, 1)
  296. #define CLK_QSPI_ACLK CLKSRC(MUX_QSPI, 0)
  297. #define CLK_QSPI_PLL3R CLKSRC(MUX_QSPI, 1)
  298. #define CLK_QSPI_PLL4P CLKSRC(MUX_QSPI, 2)
  299. #define CLK_QSPI_CKPER CLKSRC(MUX_QSPI, 3)
  300. #define CLK_FMC_ACLK CLKSRC(MUX_FMC, 0)
  301. #define CLK_FMC_PLL3R CLKSRC(MUX_FMC, 1)
  302. #define CLK_FMC_PLL4P CLKSRC(MUX_FMC, 2)
  303. #define CLK_FMC_CKPER CLKSRC(MUX_FMC, 3)
  304. #define CLK_RNG1_CSI CLKSRC(MUX_RNG1, 0)
  305. #define CLK_RNG1_PLL4R CLKSRC(MUX_RNG1, 1)
  306. /* WARNING: POSITION 2 OF RNG1 MUX IS RESERVED */
  307. #define CLK_RNG1_LSI CLKSRC(MUX_RNG1, 3)
  308. #define CLK_STGEN_HSI CLKSRC(MUX_STGEN, 0)
  309. #define CLK_STGEN_HSE CLKSRC(MUX_STGEN, 1)
  310. #define CLK_DCMIPP_ACLK CLKSRC(MUX_DCMIPP, 0)
  311. #define CLK_DCMIPP_PLL2Q CLKSRC(MUX_DCMIPP, 1)
  312. #define CLK_DCMIPP_PLL4P CLKSRC(MUX_DCMIPP, 2)
  313. #define CLK_DCMIPP_CKPER CLKSRC(MUX_DCMIPP, 3)
  314. #define CLK_SAES_AXI CLKSRC(MUX_SAES, 0)
  315. #define CLK_SAES_CKPER CLKSRC(MUX_SAES, 1)
  316. #define CLK_SAES_PLL4R CLKSRC(MUX_SAES, 2)
  317. #define CLK_SAES_LSI CLKSRC(MUX_SAES, 3)
  318. /* PLL output is enable when x=1, with x=p,q or r */
  319. #define PQR(p, q, r) (((p) & 1) | (((q) & 1) << 1) | (((r) & 1) << 2))
  320. /* define for st,pll /csg */
  321. #define SSCG_MODE_CENTER_SPREAD 0
  322. #define SSCG_MODE_DOWN_SPREAD 1
  323. /* define for st,drive */
  324. #define LSEDRV_LOWEST 0
  325. #define LSEDRV_MEDIUM_LOW 1
  326. #define LSEDRV_MEDIUM_HIGH 2
  327. #define LSEDRV_HIGHEST 3
  328. #endif /* _DT_BINDINGS_CLOCK_STM32MP13_CLKSRC_H_ */