From: viresh.kumar@st.com (Viresh Kumar)
To: linux-arm-kernel@lists.infradead.org
Subject: Query: clk: Defining new struct clk_foo types
Date: Thu, 5 Apr 2012 15:43:49 +0530 [thread overview]
Message-ID: <4F7D705D.7050004@st.com> (raw)
In-Reply-To: <20120405095835.GB20478@pengutronix.de>
On 4/5/2012 3:28 PM, Sascha Hauer wrote:
> If you have a gate and a divider then register a gate and a divider.
> We don't need clk providers for combination of these, the clock
> framework will handle it just fine.
Thanks Sashca, but i didn't get your reply completely.
Lets see if i can understand it with help of an example:
I have uart's clock that can be gated and its rate derived as a divider.
So to define static clock structures, i do following:
DEFINE_CLK_GATE(uart_gate_clk, "uart_parent", &uart_parent_clk, 0,
0xd0000000, 5, 0, NULL);
DEFINE_CLK_DIVIDER(uart_divider_clk, "uart_parent", &uart_parent_clk,
0, 0xd0000080, 4, 2, 0, NULL);
You are suggesting this?
If yes, I don't know how it will work. How will clk get work
with dev_id: "uart0". Which one will it pick?
Confused. :(
--
viresh
next prev parent reply other threads:[~2012-04-05 10:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-05 7:05 Query: clk: Defining new struct clk_foo types Viresh Kumar
2012-04-05 9:58 ` Sascha Hauer
2012-04-05 10:13 ` Viresh Kumar [this message]
2012-04-05 10:30 ` Sascha Hauer
2012-04-05 10:40 ` Viresh Kumar
2012-04-05 13:12 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F7D705D.7050004@st.com \
--to=viresh.kumar@st.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.