Skip to content

Commit f2a76a2

Browse files
Taniya Dasbebarino
authored andcommitted
clk: qcom: Add Global Clock controller (GCC) driver for SDM660
Add support for the global clock controller found on SDM660 based devices. This should allow most non-multimedia device drivers to probe and control their clocks. Based on CAF implementation. Signed-off-by: Taniya Das <tdas@codeaurora.org> [craig: rename parents to fit upstream, and other cleanups] Signed-off-by: Craig Tatlor <ctatlor97@gmail.com> Acked-by: Rob Herring <robh@kernel.org> [sboyd@kernel.org: Rename gcc_660 to gcc_sdm660 and fix numbering of defines to avoid duplicates] Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 5b394b2 commit f2a76a2

5 files changed

Lines changed: 2647 additions & 0 deletions

File tree

‎Documentation/devicetree/bindings/clock/qcom,gcc.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Required properties :
1919
"qcom,gcc-msm8996"
2020
"qcom,gcc-msm8998"
2121
"qcom,gcc-mdm9615"
22+
"qcom,gcc-sdm630"
23+
"qcom,gcc-sdm660"
2224
"qcom,gcc-sdm845"
2325

2426
- reg : shall contain base register location and length

‎drivers/clk/qcom/Kconfig‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,15 @@ config MSM_GCC_8998
235235
Say Y if you want to use peripheral devices such as UART, SPI,
236236
i2c, USB, UFS, SD/eMMC, PCIe, etc.
237237

238+
config SDM_GCC_660
239+
tristate "SDM660 Global Clock Controller"
240+
select QCOM_GDSC
241+
depends on COMMON_CLK_QCOM
242+
help
243+
Support for the global clock controller on SDM660 devices.
244+
Say Y if you want to use peripheral devices such as UART, SPI,
245+
i2C, USB, UFS, SDDC, PCIe, etc.
246+
238247
config SDM_GCC_845
239248
tristate "SDM845 Global Clock Controller"
240249
select QCOM_GDSC

‎drivers/clk/qcom/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ obj-$(CONFIG_QCOM_CLK_RPM) += clk-rpm.o
4040
obj-$(CONFIG_QCOM_CLK_RPMH) += clk-rpmh.o
4141
obj-$(CONFIG_QCOM_CLK_SMD_RPM) += clk-smd-rpm.o
4242
obj-$(CONFIG_SDM_DISPCC_845) += dispcc-sdm845.o
43+
obj-$(CONFIG_SDM_GCC_660) += gcc-sdm660.o
4344
obj-$(CONFIG_SDM_GCC_845) += gcc-sdm845.o
4445
obj-$(CONFIG_SDM_VIDEOCC_845) += videocc-sdm845.o
4546
obj-$(CONFIG_SPMI_PMIC_CLKDIV) += clk-spmi-pmic-div.o

0 commit comments

Comments
 (0)