All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] ARM: tegra: Add pllc clock init table
@ 2012-04-13 22:42 ` Stephen Warren
  0 siblings, 0 replies; 14+ messages in thread
From: Stephen Warren @ 2012-04-13 22:42 UTC (permalink / raw)
  To: Olof Johansson, Colin Cross
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Allen Martin,
	Olof Johansson, Stephen Warren

From: Allen Martin <amartin-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>

(cherry picked from commit 54f28b336f2ba3da93a459d22e32944823960d08
in the chromeos-2.6.38 kernel)

swarren adds:

pll_c will be used as a clock source. Fill in tegra_pll_c_freq_table[]
so that it's possible to explicitly initialize the PLL.

NVIDIA's downstream nv-3.1 kernel and the ChromeOS kernel have different
pll_c tables. nv-3.1 contains entries for 522MHz and 598MHz output,
whereas the ChromeOS kernel contains entries for 600MHz output. I chose
to upstream the ChromeOS values for now, since the 600MHz rate appears
to match the default rate of this PLL when the HW boots.

Signed-off-by: Allen Martin <amartin-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Olof Johansson <olofj-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Signed-off-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
 arch/arm/mach-tegra/tegra2_clocks.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-tegra/tegra2_clocks.c b/arch/arm/mach-tegra/tegra2_clocks.c
index cf4999b..0bf0f2d 100644
--- a/arch/arm/mach-tegra/tegra2_clocks.c
+++ b/arch/arm/mach-tegra/tegra2_clocks.c
@@ -1486,6 +1486,10 @@ static struct clk tegra_clk_m = {
 };
 
 static struct clk_pll_freq_table tegra_pll_c_freq_table[] = {
+	{ 12000000, 600000000, 600, 12, 1, 8 },
+	{ 13000000, 600000000, 600, 13, 1, 8 },
+	{ 19200000, 600000000, 500, 16, 1, 6 },
+	{ 26000000, 600000000, 600, 26, 1, 8 },
 	{ 0, 0, 0, 0, 0, 0 },
 };
 
-- 
1.7.0.4

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

end of thread, other threads:[~2012-04-16 15:51 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-13 22:42 [PATCH 1/5] ARM: tegra: Add pllc clock init table Stephen Warren
2012-04-13 22:42 ` Stephen Warren
     [not found] ` <1334356926-4275-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-04-13 22:42   ` [PATCH 2/5] ARM: tegra: reparent sclk to pll_c_out1 Stephen Warren
2012-04-13 22:42     ` Stephen Warren
2012-04-13 22:42   ` [PATCH 3/5] ARM: tegra: change pll_p_out4's rate to 24MHz Stephen Warren
2012-04-13 22:42     ` Stephen Warren
2012-04-13 22:42   ` [PATCH 4/5] ARM: tegra: don't hard-code USB ULPI PHY reset_gpio Stephen Warren
2012-04-13 22:42     ` Stephen Warren
2012-04-13 22:42   ` [PATCH 5/5] ARM: tegra: add USB ULPI PHY reset GPIO to device tree Stephen Warren
2012-04-13 22:42     ` Stephen Warren
2012-04-15  0:33   ` [PATCH 1/5] ARM: tegra: Add pllc clock init table Olof Johansson
2012-04-15  0:33     ` Olof Johansson
     [not found]     ` <20120415003303.GA10967-O5ziIzlqnXUVNXGz7ipsyg@public.gmane.org>
2012-04-16 15:51       ` Stephen Warren
2012-04-16 15:51         ` Stephen Warren

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.