clk: qcom: Add support for QCS404
v2 cover clk: qcom: Add support for QCS404
Add the clock driver for QCS404 SoC. This needs to export clk_alpha_pll_configure() so first patch does that
Changes in v2:
- Fix comments provided by Stephen & Taniya
Bjorn Andersson (1):
clk: qcom: Export clk_alpha_pll_configure()
Shefali Jain (1):
clk: qcom: gcc: Add global clock controller driver for QCS404
.../devicetree/bindings/clock/qcom,gcc.txt | 1 + drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clk-alpha-pll.c | 1 + drivers/clk/qcom/gcc-qcs404.c | 2744 ++++++++++++++++++++ include/dt-bindings/clock/qcom,gcc-qcs404.h | 165 ++ 6 files changed, 2920 insertions(+) create mode 100644 drivers/clk/qcom/gcc-qcs404.c create mode 100644 include/dt-bindings/clock/qcom,gcc-qcs404.h
Signature · 1 line
2.14.4
PATCH v2 1/2 clk: qcom: Export clk_alpha_pll_configure()
From: Bjorn Andersson <[email protected]>
This is used by the QCS404 GCC driver, export it to allow that driver to be compiled as a module..
--- drivers/clk/qcom/clk-alpha-pll.c | 1 + 1 file changed, 1 insertion(+)
drivers/clk/qcom/clk-alpha-pll.c +1 -0
@@ -220,6 +220,7 @@ void clk_alpha_pll_configure(struct clk_alpha_pll *pll, struct regmap *regmap,if (pll->flags &SUPPORTS_FSM_MODE )qcom_pll_set_fsm_mode (regmap,PLL_MODE (pll),6 ,0 ); } +EXPORT_SYMBOL_GPL (clk_alpha_pll_configure);static int clk_alpha_pll_hwfsm_enable (struct clk_hw *hw) {
Signature · 1 line
2.14.4
Re: [PATCH v2 1/2] clk: qcom: Export clk_alpha_pll_configure()
Quoting Vinod Koul (2018-10-10 07:51:37)
Quoted 8 lines
From: Bjorn Andersson <[email protected]>
This is used by the QCS404 GCC driver, export it to allow that driver to be compiled as a module..
Signed-off-by Bjorn Andersson <[email protected]>Signed-off-by Vinod Koul <[email protected]>---
Applied to clk-next
PATCH v2 2/2 clk: qcom: gcc: Add global clock controller driver for QCS404
In reply to Vinod KoulFrom: Shefali Jain <[email protected]>
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.
--- .../devicetree/bindings/clock/qcom,gcc.txt | 1 + drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/gcc-qcs404.c | 2744 ++++++++++++++++++++ include/dt-bindings/clock/qcom,gcc-qcs404.h | 165 ++ 5 files changed, 2919 insertions(+) create mode 100644 drivers/clk/qcom/gcc-qcs404.c create mode 100644 include/dt-bindings/clock/qcom,gcc-qcs404.h
Documentation/devicetree/bindings/clock/qcom,gcc.txt +1 -0
@@ -19,6 +19,7 @@ Required properties : "qcom,gcc-msm8996" "qcom,gcc-msm8998" "qcom,gcc-mdm9615" + "qcom,gcc-qcs404" "qcom,gcc-sdm845" - reg : shall contain base register location and length
drivers/clk/qcom/Kconfig +8 -0
@@ -235,6 +235,14 @@ config MSM_GCC_8998 Say Y if you want to use peripheral devices such as UART, SPI, i2c, USB, UFS, SD/eMMC, PCIe, etc. +config QCS_GCC_404 + tristate "QCS404 Global Clock Controller" + depends on COMMON_CLK_QCOM + help + Support for the global clock controller on QCS404 devices. + Say Y if you want to use multimedia devices or peripheral + devices such as UART, SPI, I2C, USB, SD/eMMC, PCIe etc. + config SDM_GCC_845 tristate "SDM845 Global Clock Controller" select QCOM_GDSC
drivers/clk/qcom/Makefile +1 -0
@@ -40,6 +40,7 @@ obj-$(CONFIG_QCOM_CLK_RPM) += clk-rpm.o obj-$(CONFIG_QCOM_CLK_RPMH) += clk-rpmh.o obj-$(CONFIG_QCOM_CLK_SMD_RPM) += clk-smd-rpm.o obj-$(CONFIG_SDM_DISPCC_845) += dispcc-sdm845.o +obj-$(CONFIG_QCS_GCC_404) += gcc-qcs404.o obj-$(CONFIG_SDM_GCC_845) += gcc-sdm845.o obj-$(CONFIG_SDM_VIDEOCC_845) += videocc-sdm845.o obj-$(CONFIG_SPMI_PMIC_CLKDIV) += clk-spmi-pmic-div.o
drivers/clk/qcom/gcc-qcs404.c new file +2744 -0
2,744 lines not on this page · raw message
include/dt-bindings/clock/qcom,gcc-qcs404.h new file +165 -0
165 lines not on this page · raw message
Signature · 1 line
2.14.4
Re: [PATCH v2 2/2] clk: qcom: gcc: Add global clock controller driver for QCS404
Quoted 13 lines · Vinod Koul
From: Shefali Jain <[email protected]>
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 <[email protected]>Signed-off-by Taniya Das <[email protected]>Co-developed-by Taniya Das <[email protected]>Signed-off-by Anu Ramanathan <[email protected]>[bamse, vkoul: rebase and tidyup for upstream]Signed-off-by Bjorn Andersson <[email protected]>Signed-off-by Vinod Koul <[email protected]>
Quoted 9 lines
--- .../devicetree/bindings/clock/qcom,gcc.txt | 1 + drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/gcc-qcs404.c | 2744 ++++++++++++++++++++ include/dt-bindings/clock/qcom,gcc-qcs404.h | 165 ++ 5 files changed, 2919 insertions(+) create mode 100644 drivers/clk/qcom/gcc-qcs404.c create mode 100644 include/dt-bindings/clock/qcom,gcc-qcs404.h
For the DT bits,
Re: [PATCH v2 2/2] clk: qcom: gcc: Add global clock controller driver for QCS404
In reply to Vinod KoulQuoting Vinod Koul (2018-10-10 07:51:38)
Quoted 6 lines
From: Shefali Jain <[email protected]>
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.
Quoted 8 lines
Signed-off-by Shefali Jain <[email protected]>Signed-off-by Taniya Das <[email protected]>Co-developed-by Taniya Das <[email protected]>Signed-off-by Anu Ramanathan <[email protected]>[bamse, vkoul: rebase and tidyup for upstream]Signed-off-by Bjorn Andersson <[email protected]>Signed-off-by Vinod Koul <[email protected]>---
Applied to clk-next with some minor cosmetic touches.