From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: Tony Lindgren <tony@atomide.com>,
Jarkko Nikula <jarkko.nikula@bitmer.com>,
linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/2] OMAP4: mcbsp: Clock reparenting support
Date: Thu, 22 Dec 2011 18:23:53 +0200 [thread overview]
Message-ID: <4EF35999.5040607@ti.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1112161730080.12660@utopia.booyaka.com>
Hi Paul,
On 12/17/2011 02:37 AM, Paul Walmsley wrote:
> What do you think about using clkdev alias lines and hwmod optional clks
> for this instead? With these mechanisms, you can give clocks a consistent
> "role name" for a given device, even if the underlying clock changes on
> different platforms.
I need to look into the clock framework, but sounds promising.
I can see quite big difference between the clock3xxx_data, and
clock44xx_data regarding to McBSPs.
Need to understand why, and what need to be changed to achieve what I want.
> So in the mach-omap2/clock*_data.c files, you'd do something like
>
> CLK("omap-mcbsp.1", "pad_fck", &mcbsp_clks, CK_3XXX),
>
> for OMAP3, and
>
> CLK("omap-mcbsp.1", "pad_fck", &pad_clks_clk, CK_44XX),
>
> for OMAP4.
>
> Then in the hwmod data files, you'd add them as optional clocks -
> something like:
>
> static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
> { .role = "pad_fck", .clk = "mcbsp_clks" },
> };
>
> for OMAP3, and
>
> static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
> { .role = "pad_fck", .clk = "pad_clks_clk" },
> };
>
> for OMAP4.
>
> I think this might work for your needs?
Is it OK if I do this as an incremental patch as soon as I figured out
the way to do it nicely?
Thank you,
Péter
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2011-12-22 16:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-15 9:37 [PATCH 0/2] OMAP4: McBSP: Fix clock reparenting Peter Ujfalusi
2011-12-15 9:37 ` [PATCH 1/2] OMAP2+: mcbsp: Restructure clk reparenting code Peter Ujfalusi
2011-12-15 9:37 ` [PATCH 2/2] OMAP4: mcbsp: Clock reparenting support Peter Ujfalusi
2011-12-17 0:37 ` Paul Walmsley
2011-12-22 16:23 ` Peter Ujfalusi [this message]
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=4EF35999.5040607@ti.com \
--to=peter.ujfalusi@ti.com \
--cc=jarkko.nikula@bitmer.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=tony@atomide.com \
/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).