1# SPDX-License-Identifier: GPL-2.0-only 2config KRAIT_CLOCKS 3 bool 4 select KRAIT_L2_ACCESSORS 5 6config QCOM_GDSC 7 bool 8 select PM_GENERIC_DOMAINS if PM 9 10config QCOM_RPMCC 11 bool 12 13menuconfig COMMON_CLK_QCOM 14 tristate "Support for Qualcomm's clock controllers" 15 depends on OF 16 depends on ARCH_QCOM || COMPILE_TEST 17 select RATIONAL 18 select REGMAP_MMIO 19 select RESET_CONTROLLER 20 21if COMMON_CLK_QCOM 22 23config QCOM_A53PLL 24 tristate "MSM8916 A53 PLL" 25 help 26 Support for the A53 PLL on MSM8916 devices. It provides 27 the CPU with frequencies above 1GHz. 28 Say Y if you want to support higher CPU frequencies on MSM8916 29 devices. 30 31config QCOM_CLK_APCS_MSM8916 32 tristate "MSM8916 APCS Clock Controller" 33 depends on QCOM_APCS_IPC || COMPILE_TEST 34 help 35 Support for the APCS Clock Controller on msm8916 devices. The 36 APCS is managing the mux and divider which feeds the CPUs. 37 Say Y if you want to support CPU frequency scaling on devices 38 such as msm8916. 39 40config QCOM_CLK_RPM 41 tristate "RPM based Clock Controller" 42 depends on MFD_QCOM_RPM 43 select QCOM_RPMCC 44 help 45 The RPM (Resource Power Manager) is a dedicated hardware engine for 46 managing the shared SoC resources in order to keep the lowest power 47 profile. It communicates with other hardware subsystems via shared 48 memory and accepts clock requests, aggregates the requests and turns 49 the clocks on/off or scales them on demand. 50 Say Y if you want to support the clocks exposed by the RPM on 51 platforms such as apq8064, msm8660, msm8960 etc. 52 53config QCOM_CLK_SMD_RPM 54 tristate "RPM over SMD based Clock Controller" 55 depends on QCOM_SMD_RPM 56 select QCOM_RPMCC 57 help 58 The RPM (Resource Power Manager) is a dedicated hardware engine for 59 managing the shared SoC resources in order to keep the lowest power 60 profile. It communicates with other hardware subsystems via shared 61 memory and accepts clock requests, aggregates the requests and turns 62 the clocks on/off or scales them on demand. 63 Say Y if you want to support the clocks exposed by the RPM on 64 platforms such as apq8016, apq8084, msm8974 etc. 65 66config QCOM_CLK_RPMH 67 tristate "RPMh Clock Driver" 68 depends on QCOM_RPMH 69 help 70 RPMh manages shared resources on some Qualcomm Technologies, Inc. 71 SoCs. It accepts requests from other hardware subsystems via RSC. 72 Say Y if you want to support the clocks exposed by RPMh on 73 platforms such as SDM845. 74 75config APQ_GCC_8084 76 tristate "APQ8084 Global Clock Controller" 77 select QCOM_GDSC 78 help 79 Support for the global clock controller on apq8084 devices. 80 Say Y if you want to use peripheral devices such as UART, SPI, 81 i2c, USB, SD/eMMC, SATA, PCIe, etc. 82 83config APQ_MMCC_8084 84 tristate "APQ8084 Multimedia Clock Controller" 85 select APQ_GCC_8084 86 select QCOM_GDSC 87 help 88 Support for the multimedia clock controller on apq8084 devices. 89 Say Y if you want to support multimedia devices such as display, 90 graphics, video encode/decode, camera, etc. 91 92config IPQ_GCC_4019 93 tristate "IPQ4019 Global Clock Controller" 94 help 95 Support for the global clock controller on ipq4019 devices. 96 Say Y if you want to use peripheral devices such as UART, SPI, 97 i2c, USB, SD/eMMC, etc. 98 99config IPQ_GCC_806X 100 tristate "IPQ806x Global Clock Controller" 101 help 102 Support for the global clock controller on ipq806x devices. 103 Say Y if you want to use peripheral devices such as UART, SPI, 104 i2c, USB, SD/eMMC, etc. 105 106config IPQ_LCC_806X 107 tristate "IPQ806x LPASS Clock Controller" 108 select IPQ_GCC_806X 109 help 110 Support for the LPASS clock controller on ipq806x devices. 111 Say Y if you want to use audio devices such as i2s, pcm, 112 S/PDIF, etc. 113 114config IPQ_GCC_8074 115 tristate "IPQ8074 Global Clock Controller" 116 help 117 Support for global clock controller on ipq8074 devices. 118 Say Y if you want to use peripheral devices such as UART, SPI, 119 i2c, USB, SD/eMMC, etc. Select this for the root clock 120 of ipq8074. 121 122config MSM_GCC_8660 123 tristate "MSM8660 Global Clock Controller" 124 help 125 Support for the global clock controller on msm8660 devices. 126 Say Y if you want to use peripheral devices such as UART, SPI, 127 i2c, USB, SD/eMMC, etc. 128 129config MSM_GCC_8916 130 tristate "MSM8916 Global Clock Controller" 131 select QCOM_GDSC 132 help 133 Support for the global clock controller on msm8916 devices. 134 Say Y if you want to use devices such as UART, SPI i2c, USB, 135 SD/eMMC, display, graphics, camera etc. 136 137config MSM_GCC_8960 138 tristate "APQ8064/MSM8960 Global Clock Controller" 139 help 140 Support for the global clock controller on apq8064/msm8960 devices. 141 Say Y if you want to use peripheral devices such as UART, SPI, 142 i2c, USB, SD/eMMC, SATA, PCIe, etc. 143 144config MSM_LCC_8960 145 tristate "APQ8064/MSM8960 LPASS Clock Controller" 146 select MSM_GCC_8960 147 help 148 Support for the LPASS clock controller on apq8064/msm8960 devices. 149 Say Y if you want to use audio devices such as i2s, pcm, 150 SLIMBus, etc. 151 152config MDM_GCC_9615 153 tristate "MDM9615 Global Clock Controller" 154 help 155 Support for the global clock controller on mdm9615 devices. 156 Say Y if you want to use peripheral devices such as UART, SPI, 157 i2c, USB, SD/eMMC, etc. 158 159config MDM_LCC_9615 160 tristate "MDM9615 LPASS Clock Controller" 161 select MDM_GCC_9615 162 help 163 Support for the LPASS clock controller on mdm9615 devices. 164 Say Y if you want to use audio devices such as i2s, pcm, 165 SLIMBus, etc. 166 167config MSM_MMCC_8960 168 tristate "MSM8960 Multimedia Clock Controller" 169 select MSM_GCC_8960 170 help 171 Support for the multimedia clock controller on msm8960 devices. 172 Say Y if you want to support multimedia devices such as display, 173 graphics, video encode/decode, camera, etc. 174 175config MSM_GCC_8974 176 tristate "MSM8974 Global Clock Controller" 177 select QCOM_GDSC 178 help 179 Support for the global clock controller on msm8974 devices. 180 Say Y if you want to use peripheral devices such as UART, SPI, 181 i2c, USB, SD/eMMC, SATA, PCIe, etc. 182 183config MSM_MMCC_8974 184 tristate "MSM8974 Multimedia Clock Controller" 185 select MSM_GCC_8974 186 select QCOM_GDSC 187 help 188 Support for the multimedia clock controller on msm8974 devices. 189 Say Y if you want to support multimedia devices such as display, 190 graphics, video encode/decode, camera, etc. 191 192config MSM_GCC_8994 193 tristate "MSM8994 Global Clock Controller" 194 help 195 Support for the global clock controller on msm8994 devices. 196 Say Y if you want to use peripheral devices such as UART, SPI, 197 i2c, USB, UFS, SD/eMMC, PCIe, etc. 198 199config MSM_GCC_8996 200 tristate "MSM8996 Global Clock Controller" 201 select QCOM_GDSC 202 help 203 Support for the global clock controller on msm8996 devices. 204 Say Y if you want to use peripheral devices such as UART, SPI, 205 i2c, USB, UFS, SD/eMMC, PCIe, etc. 206 207config MSM_MMCC_8996 208 tristate "MSM8996 Multimedia Clock Controller" 209 select MSM_GCC_8996 210 select QCOM_GDSC 211 help 212 Support for the multimedia clock controller on msm8996 devices. 213 Say Y if you want to support multimedia devices such as display, 214 graphics, video encode/decode, camera, etc. 215 216config MSM_GCC_8998 217 tristate "MSM8998 Global Clock Controller" 218 select QCOM_GDSC 219 help 220 Support for the global clock controller on msm8998 devices. 221 Say Y if you want to use peripheral devices such as UART, SPI, 222 i2c, USB, UFS, SD/eMMC, PCIe, etc. 223 224config MSM_GPUCC_8998 225 tristate "MSM8998 Graphics Clock Controller" 226 select MSM_GCC_8998 227 select QCOM_GDSC 228 help 229 Support for the graphics clock controller on MSM8998 devices. 230 Say Y if you want to support graphics controller devices and 231 functionality such as 3D graphics. 232 233config MSM_MMCC_8998 234 tristate "MSM8998 Multimedia Clock Controller" 235 select MSM_GCC_8998 236 select QCOM_GDSC 237 help 238 Support for the multimedia clock controller on msm8998 devices. 239 Say Y if you want to support multimedia devices such as display, 240 graphics, video encode/decode, camera, etc. 241 242config QCS_GCC_404 243 tristate "QCS404 Global Clock Controller" 244 help 245 Support for the global clock controller on QCS404 devices. 246 Say Y if you want to use multimedia devices or peripheral 247 devices such as UART, SPI, I2C, USB, SD/eMMC, PCIe etc. 248 249config SC_DISPCC_7180 250 tristate "SC7180 Display Clock Controller" 251 select SC_GCC_7180 252 help 253 Support for the display clock controller on Qualcomm Technologies, Inc 254 SC7180 devices. 255 Say Y if you want to support display devices and functionality such as 256 splash screen. 257 258config SC_GCC_7180 259 tristate "SC7180 Global Clock Controller" 260 select QCOM_GDSC 261 depends on COMMON_CLK_QCOM 262 help 263 Support for the global clock controller on SC7180 devices. 264 Say Y if you want to use peripheral devices such as UART, SPI, 265 I2C, USB, UFS, SDCC, etc. 266 267config SC_GPUCC_7180 268 tristate "SC7180 Graphics Clock Controller" 269 select SC_GCC_7180 270 help 271 Support for the graphics clock controller on SC7180 devices. 272 Say Y if you want to support graphics controller devices and 273 functionality such as 3D graphics. 274 275config SC_VIDEOCC_7180 276 tristate "SC7180 Video Clock Controller" 277 select SC_GCC_7180 278 help 279 Support for the video clock controller on SC7180 devices. 280 Say Y if you want to support video devices and functionality such as 281 video encode and decode. 282 283config SDM_CAMCC_845 284 tristate "SDM845 Camera Clock Controller" 285 select SDM_GCC_845 286 help 287 Support for the camera clock controller on SDM845 devices. 288 Say Y if you want to support camera devices and camera functionality. 289 290config SDM_GCC_660 291 tristate "SDM660 Global Clock Controller" 292 select QCOM_GDSC 293 help 294 Support for the global clock controller on SDM660 devices. 295 Say Y if you want to use peripheral devices such as UART, SPI, 296 i2C, USB, UFS, SDDC, PCIe, etc. 297 298config QCS_TURING_404 299 tristate "QCS404 Turing Clock Controller" 300 help 301 Support for the Turing Clock Controller on QCS404, provides clocks 302 and resets for the Turing subsystem. 303 304config QCS_Q6SSTOP_404 305 tristate "QCS404 Q6SSTOP Clock Controller" 306 select QCS_GCC_404 307 help 308 Support for the Q6SSTOP clock controller on QCS404 devices. 309 Say Y if you want to use the Q6SSTOP branch clocks of the WCSS clock 310 controller to reset the Q6SSTOP subsystem. 311 312config SDM_GCC_845 313 tristate "SDM845 Global Clock Controller" 314 select QCOM_GDSC 315 help 316 Support for the global clock controller on SDM845 devices. 317 Say Y if you want to use peripheral devices such as UART, SPI, 318 i2C, USB, UFS, SDDC, PCIe, etc. 319 320config SDM_GPUCC_845 321 tristate "SDM845 Graphics Clock Controller" 322 select SDM_GCC_845 323 help 324 Support for the graphics clock controller on SDM845 devices. 325 Say Y if you want to support graphics controller devices and 326 functionality such as 3D graphics. 327 328config SDM_VIDEOCC_845 329 tristate "SDM845 Video Clock Controller" 330 select SDM_GCC_845 331 select QCOM_GDSC 332 help 333 Support for the video clock controller on SDM845 devices. 334 Say Y if you want to support video devices and functionality such as 335 video encode and decode. 336 337config SDM_DISPCC_845 338 tristate "SDM845 Display Clock Controller" 339 select SDM_GCC_845 340 help 341 Support for the display clock controller on Qualcomm Technologies, Inc 342 SDM845 devices. 343 Say Y if you want to support display devices and functionality such as 344 splash screen. 345 346config SDM_LPASSCC_845 347 tristate "SDM845 Low Power Audio Subsystem (LPAAS) Clock Controller" 348 select SDM_GCC_845 349 help 350 Support for the LPASS clock controller on SDM845 devices. 351 Say Y if you want to use the LPASS branch clocks of the LPASS clock 352 controller to reset the LPASS subsystem. 353 354config SM_GCC_8150 355 tristate "SM8150 Global Clock Controller" 356 help 357 Support for the global clock controller on SM8150 devices. 358 Say Y if you want to use peripheral devices such as UART, 359 SPI, I2C, USB, SD/UFS, PCIe etc. 360 361config SPMI_PMIC_CLKDIV 362 tristate "SPMI PMIC clkdiv Support" 363 depends on SPMI || COMPILE_TEST 364 help 365 This driver supports the clkdiv functionality on the Qualcomm 366 Technologies, Inc. SPMI PMIC. It configures the frequency of 367 clkdiv outputs of the PMIC. These clocks are typically wired 368 through alternate functions on GPIO pins. 369 370config QCOM_HFPLL 371 tristate "High-Frequency PLL (HFPLL) Clock Controller" 372 help 373 Support for the high-frequency PLLs present on Qualcomm devices. 374 Say Y if you want to support CPU frequency scaling on devices 375 such as MSM8974, APQ8084, etc. 376 377config KPSS_XCC 378 tristate "KPSS Clock Controller" 379 help 380 Support for the Krait ACC and GCC clock controllers. Say Y 381 if you want to support CPU frequency scaling on devices such 382 as MSM8960, APQ8064, etc. 383 384config KRAITCC 385 tristate "Krait Clock Controller" 386 depends on ARM 387 select KRAIT_CLOCKS 388 help 389 Support for the Krait CPU clocks on Qualcomm devices. 390 Say Y if you want to support CPU frequency scaling. 391 392endif 393