linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: tegra: No 7.1 super clk dividers on Tegra20
@ 2013-02-08 12:44 Peter De Schrijver
  2013-02-08 17:38 ` Stephen Warren
  2013-03-06 20:40 ` Stephen Warren
  0 siblings, 2 replies; 4+ messages in thread
From: Peter De Schrijver @ 2013-02-08 12:44 UTC (permalink / raw)
  To: pdeschrijver
  Cc: linux-tegra, Stephen Warren, Mike Turquette, Prashant Gaikwad,
	Joseph Lo, linux-kernel

Unlike Tegra30, Tegra20 does not have a 7.1 divider for the CPU superclk.
Remove the clocks related to the divider.

Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
---
 drivers/clk/tegra/clk-tegra20.c |   36 ++----------------------------------
 1 files changed, 2 insertions(+), 34 deletions(-)

diff --git a/drivers/clk/tegra/clk-tegra20.c b/drivers/clk/tegra/clk-tegra20.c
index 4612b2e..90ae8f3 100644
--- a/drivers/clk/tegra/clk-tegra20.c
+++ b/drivers/clk/tegra/clk-tegra20.c
@@ -711,8 +711,8 @@ static void tegra20_pll_init(void)
 }
 
 static const char *cclk_parents[] = { "clk_m", "pll_c", "clk_32k", "pll_m",
-				      "pll_p_cclk", "pll_p_out4_cclk",
-				      "pll_p_out3_cclk", "clk_d", "pll_x" };
+				      "pll_p", "pll_p_out4",
+				      "pll_p_out3", "clk_d", "pll_x" };
 static const char *sclk_parents[] = { "clk_m", "pll_c_out1", "pll_p_out4",
 				      "pll_p_out3", "pll_p_out2", "clk_d",
 				      "clk_32k", "pll_m_out1" };
@@ -721,38 +721,6 @@ static void tegra20_super_clk_init(void)
 {
 	struct clk *clk;
 
-	/*
-	 * DIV_U71 dividers for CCLK, these dividers are used only
-	 * if parent clock is fixed rate.
-	 */
-
-	/*
-	 * Clock input to cclk divided from pll_p using
-	 * U71 divider of cclk.
-	 */
-	clk = tegra_clk_register_divider("pll_p_cclk", "pll_p",
-				clk_base + SUPER_CCLK_DIVIDER, 0,
-				TEGRA_DIVIDER_INT, 16, 8, 1, NULL);
-	clk_register_clkdev(clk, "pll_p_cclk", NULL);
-
-	/*
-	 * Clock input to cclk divided from pll_p_out3 using
-	 * U71 divider of cclk.
-	 */
-	clk = tegra_clk_register_divider("pll_p_out3_cclk", "pll_p_out3",
-				clk_base + SUPER_CCLK_DIVIDER, 0,
-				TEGRA_DIVIDER_INT, 16, 8, 1, NULL);
-	clk_register_clkdev(clk, "pll_p_out3_cclk", NULL);
-
-	/*
-	 * Clock input to cclk divided from pll_p_out4 using
-	 * U71 divider of cclk.
-	 */
-	clk = tegra_clk_register_divider("pll_p_out4_cclk", "pll_p_out4",
-				clk_base + SUPER_CCLK_DIVIDER, 0,
-				TEGRA_DIVIDER_INT, 16, 8, 1, NULL);
-	clk_register_clkdev(clk, "pll_p_out4_cclk", NULL);
-
 	/* CCLK */
 	clk = tegra_clk_register_super_mux("cclk", cclk_parents,
 			      ARRAY_SIZE(cclk_parents), CLK_SET_RATE_PARENT,
-- 
1.7.7.rc0.72.g4b5ea.dirty


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: tegra: No 7.1 super clk dividers on Tegra20
  2013-02-08 12:44 [PATCH] clk: tegra: No 7.1 super clk dividers on Tegra20 Peter De Schrijver
@ 2013-02-08 17:38 ` Stephen Warren
  2013-02-11  9:52   ` Peter De Schrijver
  2013-03-06 20:40 ` Stephen Warren
  1 sibling, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2013-02-08 17:38 UTC (permalink / raw)
  To: Peter De Schrijver
  Cc: linux-tegra, Stephen Warren, Mike Turquette, Prashant Gaikwad,
	Joseph Lo, linux-kernel

On 02/08/2013 05:44 AM, Peter De Schrijver wrote:
> Unlike Tegra30, Tegra20 does not have a 7.1 divider for the CPU superclk.
> Remove the clocks related to the divider.

I assume there's no particular need to take this for 3.9; it can wait
until 3.10?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: tegra: No 7.1 super clk dividers on Tegra20
  2013-02-08 17:38 ` Stephen Warren
@ 2013-02-11  9:52   ` Peter De Schrijver
  0 siblings, 0 replies; 4+ messages in thread
From: Peter De Schrijver @ 2013-02-11  9:52 UTC (permalink / raw)
  To: Stephen Warren
  Cc: linux-tegra, Stephen Warren, Mike Turquette, Prashant Gaikwad,
	Joseph Lo, linux-kernel

On Fri, Feb 08, 2013 at 06:38:39PM +0100, Stephen Warren wrote:
> On 02/08/2013 05:44 AM, Peter De Schrijver wrote:
> > Unlike Tegra30, Tegra20 does not have a 7.1 divider for the CPU superclk.
> > Remove the clocks related to the divider.
> 
> I assume there's no particular need to take this for 3.9; it can wait
> until 3.10?

No. There isn't. These clocks aren't used yet because we don't have CPU DVFS.

Cheers,

Peter.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] clk: tegra: No 7.1 super clk dividers on Tegra20
  2013-02-08 12:44 [PATCH] clk: tegra: No 7.1 super clk dividers on Tegra20 Peter De Schrijver
  2013-02-08 17:38 ` Stephen Warren
@ 2013-03-06 20:40 ` Stephen Warren
  1 sibling, 0 replies; 4+ messages in thread
From: Stephen Warren @ 2013-03-06 20:40 UTC (permalink / raw)
  To: Peter De Schrijver
  Cc: linux-tegra, Stephen Warren, Mike Turquette, Prashant Gaikwad,
	Joseph Lo, linux-kernel

On 02/08/2013 05:44 AM, Peter De Schrijver wrote:
> Unlike Tegra30, Tegra20 does not have a 7.1 divider for the CPU superclk.
> Remove the clocks related to the divider.

I have applied this to Tegra's for-3.10/fixes branch.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-06 20:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-08 12:44 [PATCH] clk: tegra: No 7.1 super clk dividers on Tegra20 Peter De Schrijver
2013-02-08 17:38 ` Stephen Warren
2013-02-11  9:52   ` Peter De Schrijver
2013-03-06 20:40 ` Stephen Warren

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).