From: Kevin Hilman <khilman@ti.com>
To: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: linux-omap@vger.kernel.org, vishwanath.bs@ti.com
Subject: Re: [PATCH 1/3] omap2plus: clock: Add an alias cpu_ck to be used in common cpufreq driver
Date: Thu, 10 Mar 2011 14:13:29 -0800 [thread overview]
Message-ID: <87zkp2hbee.fsf@ti.com> (raw)
In-Reply-To: <1298614239-32196-2-git-send-email-santosh.shilimkar@ti.com> (Santosh Shilimkar's message of "Fri, 25 Feb 2011 11:40:37 +0530")
Santosh Shilimkar <santosh.shilimkar@ti.com> writes:
> Add an alias clock node for cpu clock control on all OMAP2PLUS devices.
> The intention is avoid cpu_is_xxxx() checks in the common cpufreq driver.
>
> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Rather than having hard-coded clkdev nodes, Since CPUfreq will be the
only user of these clocks, it might make sense to just use cpu_is_* in
the CPUfreq init and do clk_add_alias().
> ---
> arch/arm/mach-omap2/clock2420_data.c | 1 +
> arch/arm/mach-omap2/clock2430_data.c | 1 +
> arch/arm/mach-omap2/clock3xxx_data.c | 1 +
> arch/arm/mach-omap2/clock44xx_data.c | 1 +
> 4 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/clock2420_data.c b/arch/arm/mach-omap2/clock2420_data.c
> index 0a992bc..3efe45b 100644
> --- a/arch/arm/mach-omap2/clock2420_data.c
> +++ b/arch/arm/mach-omap2/clock2420_data.c
> @@ -1799,6 +1799,7 @@ static struct omap_clk omap2420_clks[] = {
> CLK(NULL, "ssi_l4_ick", &ssi_l4_ick, CK_242X),
> /* virtual meta-group clock */
> CLK(NULL, "virt_prcm_set", &virt_prcm_set, CK_242X),
> + CLK(NULL, "cpu_ck", &virt_prcm_set, CK_242X),
Are there any other users of virt_prcm_set? Probably could get rid of
it now.
> /* general l4 interface ck, multi-parent functional clk */
> CLK(NULL, "gpt1_ick", &gpt1_ick, CK_242X),
> CLK(NULL, "gpt1_fck", &gpt1_fck, CK_242X),
> diff --git a/arch/arm/mach-omap2/clock2430_data.c b/arch/arm/mach-omap2/clock2430_data.c
> index c047dcd..25b1c2d 100644
> --- a/arch/arm/mach-omap2/clock2430_data.c
> +++ b/arch/arm/mach-omap2/clock2430_data.c
> @@ -1903,6 +1903,7 @@ static struct omap_clk omap2430_clks[] = {
> CLK(NULL, "ssi_l4_ick", &ssi_l4_ick, CK_243X),
> /* virtual meta-group clock */
> CLK(NULL, "virt_prcm_set", &virt_prcm_set, CK_243X),
> + CLK(NULL, "cpu_ck", &virt_prcm_set, CK_243X),
ditto
> /* general l4 interface ck, multi-parent functional clk */
> CLK(NULL, "gpt1_ick", &gpt1_ick, CK_243X),
> CLK(NULL, "gpt1_fck", &gpt1_fck, CK_243X),
> diff --git a/arch/arm/mach-omap2/clock3xxx_data.c b/arch/arm/mach-omap2/clock3xxx_data.c
> index 403a4a1..655d1a9 100644
> --- a/arch/arm/mach-omap2/clock3xxx_data.c
> +++ b/arch/arm/mach-omap2/clock3xxx_data.c
> @@ -3224,6 +3224,7 @@ static struct omap_clk omap3xxx_clks[] = {
> CLK(NULL, "mcbsp_clks", &mcbsp_clks, CK_3XXX),
> CLK(NULL, "sys_clkout1", &sys_clkout1, CK_3XXX),
> CLK(NULL, "dpll1_ck", &dpll1_ck, CK_3XXX),
> + CLK(NULL, "cpu_ck", &dpll1_ck, CK_3XXX),
> CLK(NULL, "dpll1_x2_ck", &dpll1_x2_ck, CK_3XXX),
> CLK(NULL, "dpll1_x2m2_ck", &dpll1_x2m2_ck, CK_3XXX),
> CLK(NULL, "dpll2_ck", &dpll2_ck, CK_34XX | CK_36XX),
> diff --git a/arch/arm/mach-omap2/clock44xx_data.c b/arch/arm/mach-omap2/clock44xx_data.c
> index e8cb32f..4d5ede3 100644
> --- a/arch/arm/mach-omap2/clock44xx_data.c
> +++ b/arch/arm/mach-omap2/clock44xx_data.c
> @@ -3058,6 +3058,7 @@ static struct omap_clk omap44xx_clks[] = {
> CLK(NULL, "dpll_iva_m4x2_ck", &dpll_iva_m4x2_ck, CK_443X),
> CLK(NULL, "dpll_iva_m5x2_ck", &dpll_iva_m5x2_ck, CK_443X),
> CLK(NULL, "dpll_mpu_ck", &dpll_mpu_ck, CK_443X),
> + CLK(NULL, "cpu_ck", &dpll_mpu_ck, CK_443X),
> CLK(NULL, "dpll_mpu_m2_ck", &dpll_mpu_m2_ck, CK_443X),
> CLK(NULL, "per_hs_clk_div_ck", &per_hs_clk_div_ck, CK_443X),
> CLK(NULL, "per_hsd_byp_clk_mux_ck", &per_hsd_byp_clk_mux_ck, CK_443X),
Kevin
next prev parent reply other threads:[~2011-03-10 22:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-25 6:10 [PATCH 0/3] [pm-wip/cpufreq] cpufreq cleanup and SMP support Santosh Shilimkar
2011-02-25 6:10 ` [PATCH 1/3] omap2plus: clock: Add an alias cpu_ck to be used in common cpufreq driver Santosh Shilimkar
2011-03-10 22:13 ` Kevin Hilman [this message]
2011-03-14 9:19 ` Santosh Shilimkar
2011-02-25 6:10 ` [PATCH 2/3] omap: cpufreq: Split omap1 and omap2plus cpufreq drivers Santosh Shilimkar
2011-02-25 7:17 ` Vishwanath Sripathy
2011-02-25 7:22 ` Santosh Shilimkar
2011-02-25 8:19 ` DebBarma, Tarun Kanti
2011-02-25 6:10 ` [PATCH 3/3] omap2plus: cpufreq: Add SMP support to cater OMAP4430 Santosh Shilimkar
2011-02-25 8:10 ` DebBarma, Tarun Kanti
2011-03-10 22:27 ` Kevin Hilman
2011-03-10 22:28 ` [PATCH 0/3] [pm-wip/cpufreq] cpufreq cleanup and SMP support Kevin Hilman
2011-03-11 5:54 ` Santosh Shilimkar
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=87zkp2hbee.fsf@ti.com \
--to=khilman@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=santosh.shilimkar@ti.com \
--cc=vishwanath.bs@ti.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 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.