From: shawn.guo@freescale.com (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/1] clk-imx35: Add clko clock support
Date: Wed, 25 Jun 2014 14:53:03 +0800 [thread overview]
Message-ID: <20140625065302.GB2224@dragon> (raw)
In-Reply-To: <2789534.qY6c0ymzGl@ws-stein>
On Mon, Jun 23, 2014 at 08:21:49AM +0200, Alexander Stein wrote:
> > > @@ -49,6 +49,13 @@ static struct clk_onecell_data clk_data;
> > >
> > > static const char *std_sel[] = {"ppll", "arm"};
> > > static const char *ipg_per_sel[] = {"ahb_per_div", "arm_per_div"};
> > > +static const char *clko_select[] = {"ckil", "osc", "osc_audio", "dummy",
> > > + "mpll_075", "mpll", "ppll", "arm",
> > > + "ahb", "ipg", "ipg_per", "usbdiv",
> > > + "esdhc1_div", "ssi1_div_post", "mlb_gate",
> > > + "mshc_gate", "mpll_lock", "csi_div",
> > > + "spdif_div_post", "uart1_gate", "asrc",
> > > + "dptc", "arm_ungated", "nfc_div", "hsp"};
> >
> > Any new string you add here should have a corresponding clk in clock
> > framework.
>
> Ew, ok... As lots of those clocks are not (yet?) supported in the clock framework this list will contains many "dummy" entries, but well I get your point.
>
Right. Either you do not create the string or you create the clock
behind the string together.
...
> > > @@ -260,6 +273,7 @@ int __init mx35_clocks_init(void)
> > > clk_register_clkdev(clk[nfc_div], NULL, "imx25-nand.0");
> > > clk_register_clkdev(clk[csi_gate], NULL, "mx3-camera.0");
> > > clk_register_clkdev(clk[admux_gate], "audmux", NULL);
> > > + clk_register_clkdev(clk[clko_gate], NULL, "clko.0");
> >
> > Will this lookup be used somewhere?
>
> Well, as this is a pretty customizable output clock signal, I think this will only be used in custom board implementation. Or is there any generic driver to configure an arbitrary programmable clock?
>
I prefer to add this lookup only when there is an in-tree user for it.
Shawn
next prev parent reply other threads:[~2014-06-25 6:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-17 7:27 [PATCH 1/1] clk-imx35: Add clko clock support Alexander Stein
2014-06-20 8:15 ` Shawn Guo
2014-06-23 6:21 ` Alexander Stein
2014-06-25 6:53 ` Shawn Guo [this message]
2014-06-25 8:58 ` Alexander Stein
2014-06-25 9:54 ` Russell King - ARM Linux
2014-06-25 13:12 ` Shawn Guo
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=20140625065302.GB2224@dragon \
--to=shawn.guo@freescale.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).