Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: arch/arm/mach-tegra/tegra2_clocks.c

Issue 6116004: Add 1.2GHz cpu clock support for T25 (Closed) Base URL: http://git.chromium.org/git/kernel-next.git@chromeos-2.6.36
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« arch/arm/mach-tegra/cpu-tegra.c ('K') | « arch/arm/mach-tegra/cpu-tegra.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: arch/arm/mach-tegra/tegra2_clocks.c
diff --git a/arch/arm/mach-tegra/tegra2_clocks.c b/arch/arm/mach-tegra/tegra2_clocks.c
index 1622de8bd06510aa37a750234f287f1f4a71bdda..fe0e11f0d74793f2446e0f7eeb20191635c8ef71 100644
--- a/arch/arm/mach-tegra/tegra2_clocks.c
+++ b/arch/arm/mach-tegra/tegra2_clocks.c
@@ -789,6 +789,7 @@ static int tegra2_pll_div_clk_set_rate(struct clk *c, unsigned long rate)
unsigned long parent_rate = clk_get_rate(c->parent);
pr_debug("%s: %s %lu\n", __func__, c->name, rate);
+
Olof Johansson 2011/01/12 01:05:28 Unrelated change, please discard
jimmzhang 2011/01/12 01:22:56 will be removed.
if (c->flags & DIV_U71) {
divider_u71 = clk_div71_get_divider(parent_rate, rate);
if (divider_u71 >= 0) {
@@ -1513,6 +1514,12 @@ static struct clk tegra_pll_u = {
};
static struct clk_pll_freq_table tegra_pll_x_freq_table[] = {
+ /* 1.2 GHz */
+ { 12000000, 1200000000, 600, 6, 1, 12},
+ { 13000000, 1200000000, 923, 10, 1, 12},
+ { 19200000, 1200000000, 750, 12, 1, 8},
+ { 26000000, 1200000000, 600, 13, 1, 12},
+
/* 1 GHz */
{ 12000000, 1000000000, 1000, 12, 1, 12},
{ 13000000, 1000000000, 1000, 13, 1, 12},
@@ -1564,7 +1571,7 @@ static struct clk tegra_pll_x = {
.ops = &tegra_pllx_ops,
.reg = 0xe0,
.parent = &tegra_clk_m,
- .max_rate = 1000000000,
+ .max_rate = 1200000000,
Olof Johansson 2011/01/12 01:05:28 Is it safe to set max_rate here? Shouldn't you upd
jimmzhang 2011/01/12 01:22:56 The max value is still limited by the cpu frequenc
Olof Johansson 2011/01/12 18:53:07 Ok, sounds good.
.u.pll = {
.input_min = 2000000,
.input_max = 31000000,
@@ -1713,7 +1720,7 @@ static struct clk tegra_clk_cclk = {
.inputs = mux_cclk,
.reg = 0x20,
.ops = &tegra_super_ops,
- .max_rate = 1000000000,
+ .max_rate = 1200000000,
};
static struct clk tegra_clk_sclk = {
@@ -1731,7 +1738,7 @@ static struct clk tegra_clk_virtual_cpu = {
.name = "cpu",
.parent = &tegra_clk_cclk,
.ops = &tegra_cpu_ops,
- .max_rate = 1000000000,
+ .max_rate = 1200000000,
.u.cpu = {
.main = &tegra_pll_x,
.backup = &tegra_pll_p,
« arch/arm/mach-tegra/cpu-tegra.c ('K') | « arch/arm/mach-tegra/cpu-tegra.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698