Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1402805
| Path | csiph.com!1.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Gabriel Fernandez <gabriel.fernandez@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 02/11] drivers: clk: st: Add clock propagation for audio clocks |
| Date | Wed, 18 May 2016 10:50:03 +0200 |
| Message-ID | <rA5l1-87e-35@gated-at.bofh.it> (permalink) |
| References | <rA5kZ-87e-3@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nqeFwZZ5wjCKRXBZnYUUCRa2UnAqYScJJuKm1OIk7iw=; b=dvDuO4lPmJQCtpBhk/rW9YAwhJx7M8wjeaOtn3WJmZ8lNarl/oxynEjEPznGPywJ8T Yf/YcWn0TvvVPsuQ7KV4cNt0HHlE1AHIPF2v3/E8Dxu5spCPI9nKefJJe8d3ZeESWY5e AkCYCuGH2cMZMr+U3AXlXVnBw/9a5U2rYgdJE= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nqeFwZZ5wjCKRXBZnYUUCRa2UnAqYScJJuKm1OIk7iw=; b=OIA5Wwc9cChtJ8st9lyfiajklQgGClt4Z8tRdt+AX99EKkMK6wbNPZpHRbdcYw8mCj tnA12hZNskw62hwyX20PZHwAbTj2Gct/b2WzpkYp3G0sCQMDFOIxTFSlA2qXINZpoJhS tVtQpsBASIJwMm37RTnZWBf4nW3qO2JLIegLKoCClRbXdHbMOO28mbFf3XuKM59gfdLf WRuloIc9h5qNj2r/TNAxyHlhkXn9d7DM7YJKbCqvVz15nh3ResJDo6kZe/VEO+0+kpGF 5cU3R+QeHH0KIl6B5D5WJc1Qa46KpPJ6MngRIt+eJa3x/T1G/7V0EMLrHcQtIRNCP3x0 MH1A== |
| X-Gm-Message-State | AOPr4FWTa4tk+5LjtP3217ANGOtaqmr/1M0rsubKwA0qZjuZC72OFwNApUMrPVL5w46/V6l6 |
| X-Received | by 10.28.194.69 with SMTP id s66mr6216629wmf.88.1463560914108; Wed, 18 May 2016 01:41:54 -0700 (PDT) |
| X-Mailer | git-send-email 1.9.1 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 80 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@stlinux.com, linux-clk@vger.kernel.org, Lee Jones <lee.jones@linaro.org>, Peter Griffin <peter.griffin@linaro.org>, <arnaud.pouliquen@st.com>, <benjamin.gaignard@st.com>, <vincent.abriou@st.com> |
| X-Original-Date | Wed, 18 May 2016 10:41:23 +0200 |
| X-Original-Message-ID | <1463560892-7209-3-git-send-email-gabriel.fernandez@linaro.org> |
| X-Original-References | <1463560892-7209-1-git-send-email-gabriel.fernandez@linaro.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1402805 |
Show key headers only | View raw
This patch allows fine tuning of the quads FS for audio clocks
accuracy.
Signed-off-by: Olivier Bideau <olivier.bideau@st.com>
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@linaro.org>
---
.../devicetree/bindings/clock/st/st,flexgen.txt | 1 +
drivers/clk/st/clk-flexgen.c | 24 ++++++++++++++++++++++
2 files changed, 25 insertions(+)
diff --git a/Documentation/devicetree/bindings/clock/st/st,flexgen.txt b/Documentation/devicetree/bindings/clock/st/st,flexgen.txt
index b7ee5c7..15b33c7 100644
--- a/Documentation/devicetree/bindings/clock/st/st,flexgen.txt
+++ b/Documentation/devicetree/bindings/clock/st/st,flexgen.txt
@@ -60,6 +60,7 @@ This binding uses the common clock binding[2].
Required properties:
- compatible : shall be:
"st,flexgen"
+ "st,stih407-clkgend0", "st,flexgen" (enable clock propagation on parent)
- #clock-cells : from common clock binding; shall be set to 1 (multiple clock
outputs).
diff --git a/drivers/clk/st/clk-flexgen.c b/drivers/clk/st/clk-flexgen.c
index 627267c..3ff51ec 100644
--- a/drivers/clk/st/clk-flexgen.c
+++ b/drivers/clk/st/clk-flexgen.c
@@ -15,6 +15,10 @@
#include <linux/of.h>
#include <linux/of_address.h>
+struct clkgen_data {
+ unsigned long flags;
+};
+
struct flexgen {
struct clk_hw hw;
@@ -259,6 +263,18 @@ static const char ** __init flexgen_get_parents(struct device_node *np,
return parents;
}
+static const struct clkgen_data clkgen_d0 = {
+ .flags = CLK_SET_RATE_PARENT,
+};
+
+static const struct of_device_id flexgen_of_match[] = {
+ {
+ .compatible = "st,stih407-clkgend0",
+ .data = &clkgen_d0,
+ },
+ {}
+};
+
static void __init st_of_flexgen_setup(struct device_node *np)
{
struct device_node *pnode;
@@ -267,6 +283,8 @@ static void __init st_of_flexgen_setup(struct device_node *np)
const char **parents;
int num_parents, i;
spinlock_t *rlock = NULL;
+ const struct of_device_id *match;
+ struct clkgen_data *data = NULL;
unsigned long flex_flags = 0;
int ret;
@@ -282,6 +300,12 @@ static void __init st_of_flexgen_setup(struct device_node *np)
if (!parents)
return;
+ match = of_match_node(flexgen_of_match, np);
+ if (match) {
+ data = (struct clkgen_data *)match->data;
+ flex_flags = data->flags;
+ }
+
clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL);
if (!clk_data)
goto err;
--
1.9.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 02/11] drivers: clk: st: Add clock propagation for audio clocks Gabriel Fernandez <gabriel.fernandez@linaro.org> - 2016-05-18 10:50 +0200
Re: [PATCH 02/11] drivers: clk: st: Add clock propagation for audio clocks Rob Herring <robh@kernel.org> - 2016-05-25 19:30 +0200
Re: [PATCH 02/11] drivers: clk: st: Add clock propagation for audio clocks Gabriel Fernandez <gabriel.fernandez@linaro.org> - 2016-05-26 12:00 +0200
Re: [PATCH 02/11] drivers: clk: st: Add clock propagation for audio clocks Rob Herring <robh@kernel.org> - 2016-05-26 14:50 +0200
Re: [STLinux Kernel] [PATCH 02/11] drivers: clk: st: Add clock propagation for audio clocks loic pallardy <loic.pallardy@st.com> - 2016-05-26 15:10 +0200
Re: [STLinux Kernel] [PATCH 02/11] drivers: clk: st: Add clock propagation for audio clocks Rob Herring <robh@kernel.org> - 2016-05-26 15:30 +0200
Re: [STLinux Kernel] [PATCH 02/11] drivers: clk: st: Add clock propagation for audio clocks loic pallardy <loic.pallardy@st.com> - 2016-05-27 09:30 +0200
Re: [STLinux Kernel] [PATCH 02/11] drivers: clk: st: Add clock propagation for audio clocks Rob Herring <robh@kernel.org> - 2016-05-27 17:50 +0200
Re: [STLinux Kernel] [PATCH 02/11] drivers: clk: st: Add clock propagation for audio clocks Gabriel Fernandez <gabriel.fernandez@linaro.org> - 2016-05-30 09:40 +0200
csiph-web