Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1273148 > unrolled thread

[PATCH v4 1/5] clk: qcom: msm8916: Move xo and sleep clocks into DT

Started byGeorgi Djakov <georgi.djakov@linaro.org>
First post2015-11-19 15:00 +0100
Last post2015-11-21 01:50 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v4 1/5] clk: qcom: msm8916: Move xo and sleep clocks into DT Georgi Djakov <georgi.djakov@linaro.org> - 2015-11-19 15:00 +0100
    Re: [PATCH v4 1/5] clk: qcom: msm8916: Move xo and sleep clocks into  DT Stephen Boyd <sboyd@codeaurora.org> - 2015-11-21 01:50 +0100

#1273148 — [PATCH v4 1/5] clk: qcom: msm8916: Move xo and sleep clocks into DT

FromGeorgi Djakov <georgi.djakov@linaro.org>
Date2015-11-19 15:00 +0100
Subject[PATCH v4 1/5] clk: qcom: msm8916: Move xo and sleep clocks into DT
Message-ID<qwxUL-1Bc-25@gated-at.bofh.it>
Move the xo and sleep clocks to device-tree, instead of hard-coding
them in the driver. This allows us to insert the RPM clocks (if they
are enabled) in between the on-board oscillators and the actual clock.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
---
 drivers/clk/qcom/gcc-msm8916.c |   16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/drivers/clk/qcom/gcc-msm8916.c b/drivers/clk/qcom/gcc-msm8916.c
index d0a0313d6bef..8cc9b2868b41 100644
--- a/drivers/clk/qcom/gcc-msm8916.c
+++ b/drivers/clk/qcom/gcc-msm8916.c
@@ -3356,18 +3356,16 @@ MODULE_DEVICE_TABLE(of, gcc_msm8916_match_table);
 
 static int gcc_msm8916_probe(struct platform_device *pdev)
 {
-	struct clk *clk;
+	int ret;
 	struct device *dev = &pdev->dev;
 
-	/* Temporary until RPM clocks supported */
-	clk = clk_register_fixed_rate(dev, "xo", NULL, CLK_IS_ROOT, 19200000);
-	if (IS_ERR(clk))
-		return PTR_ERR(clk);
+	ret = qcom_cc_register_board_clk(dev, "xo_board", "xo", 19200000);
+	if (ret)
+		return ret;
 
-	clk = clk_register_fixed_rate(dev, "sleep_clk_src", NULL,
-				      CLK_IS_ROOT, 32768);
-	if (IS_ERR(clk))
-		return PTR_ERR(clk);
+	ret = qcom_cc_register_sleep_clk(dev);
+	if (ret)
+		return ret;
 
 	return qcom_cc_probe(pdev, &gcc_msm8916_desc);
 }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1274575 — Re: [PATCH v4 1/5] clk: qcom: msm8916: Move xo and sleep clocks into DT

FromStephen Boyd <sboyd@codeaurora.org>
Date2015-11-21 01:50 +0100
SubjectRe: [PATCH v4 1/5] clk: qcom: msm8916: Move xo and sleep clocks into DT
Message-ID<qx4xj-6i8-3@gated-at.bofh.it>
In reply to#1273148
On 11/19, Georgi Djakov wrote:
> Move the xo and sleep clocks to device-tree, instead of hard-coding
> them in the driver. This allows us to insert the RPM clocks (if they
> are enabled) in between the on-board oscillators and the actual clock.
> 
> Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
> ---

Applied to clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web