Skip to content

Commit f81715a

Browse files
Luo Jieandersson
authored andcommitted
clk: qcom: Add CMN PLL clock controller driver for IPQ SoC
The CMN PLL clock controller supplies clocks to the hardware blocks that together make up the Ethernet function on Qualcomm IPQ SoCs and to GCC. The driver is initially supported for IPQ9574 SoC. The CMN PLL clock controller expects a reference input clock from the on-board Wi-Fi block acting as clock source. The input reference clock needs to be configured to one of the supported clock rates. The controller supplies a number of fixed-rate output clocks. For the IPQ9574, there is one output clock of 353 MHZ to PPE (Packet Process Engine) hardware block, three 50 MHZ output clocks and an additional 25 MHZ output clock supplied to the connected Ethernet devices. The PLL also supplies a 24 MHZ clock as XO and a 32 KHZ sleep clock to GCC, and one 31.25 MHZ clock to PCS. Signed-off-by: Luo Jie <[email protected]> Acked-by: Konrad Dybcio <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 62ede76 commit f81715a

File tree

3 files changed

+445
-0
lines changed

3 files changed

+445
-0
lines changed

drivers/clk/qcom/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,15 @@ config IPQ_APSS_6018
199199
Say Y if you want to support CPU frequency scaling on
200200
ipq based devices.
201201

202+
config IPQ_CMN_PLL
203+
tristate "IPQ CMN PLL Clock Controller"
204+
help
205+
Support for CMN PLL clock controller on IPQ platform. The
206+
CMN PLL consumes the AHB/SYS clocks from GCC and supplies
207+
the output clocks to the networking hardware and GCC blocks.
208+
Say Y or M if you want to support CMN PLL clock on the IPQ
209+
based devices.
210+
202211
config IPQ_GCC_4019
203212
tristate "IPQ4019 Global Clock Controller"
204213
help

drivers/clk/qcom/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ obj-$(CONFIG_CLK_X1P42100_GPUCC) += gpucc-x1p42100.o
3030
obj-$(CONFIG_CLK_QCM2290_GPUCC) += gpucc-qcm2290.o
3131
obj-$(CONFIG_IPQ_APSS_PLL) += apss-ipq-pll.o
3232
obj-$(CONFIG_IPQ_APSS_6018) += apss-ipq6018.o
33+
obj-$(CONFIG_IPQ_CMN_PLL) += ipq-cmn-pll.o
3334
obj-$(CONFIG_IPQ_GCC_4019) += gcc-ipq4019.o
3435
obj-$(CONFIG_IPQ_GCC_5018) += gcc-ipq5018.o
3536
obj-$(CONFIG_IPQ_GCC_5332) += gcc-ipq5332.o

0 commit comments

Comments
 (0)