Skip to content

Commit 652f181

Browse files
Shefali Jainbebarino
authored andcommitted
clk: qcom: gcc: Add global clock controller driver for QCS404
Add the clocks supported in global clock controller which clock the peripherals like BLSPs, SDCC, USB, MDSS etc. Register all the clocks to the clock framework for the clients to be able to request for them. Signed-off-by: Shefali Jain <shefjain@codeaurora.org> Signed-off-by: Taniya Das <tdas@codeaurora.org> Co-developed-by: Taniya Das <tdas@codeaurora.org> Signed-off-by: Anu Ramanathan <anur@codeaurora.org> [bamse, vkoul: rebase and tidyup for upstream] Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Vinod Koul <vkoul@kernel.org> Acked-by: Rob Herring <robh@kernel.org> [sboyd@kernel.org: Lowercase hex] Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent a3d152e commit 652f181

File tree

5 files changed

+2919
-0
lines changed

5 files changed

+2919
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Required properties :
1919
"qcom,gcc-msm8996"
2020
"qcom,gcc-msm8998"
2121
"qcom,gcc-mdm9615"
22+
"qcom,gcc-qcs404"
2223
"qcom,gcc-sdm845"
2324

2425
- reg : shall contain base register location and length

drivers/clk/qcom/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,14 @@ 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 QCS_GCC_404
239+
tristate "QCS404 Global Clock Controller"
240+
depends on COMMON_CLK_QCOM
241+
help
242+
Support for the global clock controller on QCS404 devices.
243+
Say Y if you want to use multimedia devices or peripheral
244+
devices such as UART, SPI, I2C, USB, SD/eMMC, PCIe etc.
245+
238246
config SDM_GCC_845
239247
tristate "SDM845 Global Clock Controller"
240248
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_QCS_GCC_404) += gcc-qcs404.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)