Skip to contentSkip to conversation

clk: tegra: Make gr2d and gr3d clocks children of pll_c

PATCH Applied Thierry Reding 3 participants 3 messages Apr 2, 2013 – Apr 3, 2013 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 clk: tegra: Make gr2d and gr3d clocks children of pll_c

By default these clocks are children of pll_m, but in downstream kernels they are reparented to pll_c. While at it, decrease their frequencies to 300 MHz because the defaults aren't in the specified range.

gr2d can reportedly run at much higher frequencies, but 300 MHz works and is a more conservative default.

---
Changes in v2:
- make the same changes for Tegra30

 drivers/clk/tegra/clk-tegra20.c | 2 ++
 drivers/clk/tegra/clk-tegra30.c | 2 ++
 2 files changed, 4 insertions(+)
drivers/clk/tegra/clk-tegra20.c +2 -0
index bf19400..b020beb 100644
@@ -1247,6 +1247,8 @@ static __initdata struct tegra_clk_init_table init_table[] = {
 	{host1x, pll_c, 150000000, 0},
 	{disp1, pll_p, 600000000, 0},
 	{disp2, pll_p, 600000000, 0},
+	{gr2d, pll_c, 300000000, 0},
+	{gr3d, pll_c, 300000000, 0},
 	{clk_max, clk_max, 0, 0}, /* This MUST be the last entry */
 };
 
drivers/clk/tegra/clk-tegra30.c +2 -0
index ba6f51b..b8b241d 100644
@@ -1911,6 +1911,8 @@ static __initdata struct tegra_clk_init_table init_table[] = {
 	{disp1, pll_p, 600000000, 0},
 	{disp2, pll_p, 600000000, 0},
 	{twd, clk_max, 0, 1},
+	{gr2d, pll_c, 300000000, 0},
+	{gr3d, pll_c, 300000000, 0},
 	{clk_max, clk_max, 0, 0}, /* This MUST be the last entry. */
 };
 
Signature · 1 line
1.8.2
#2 lore raw
In reply to a message not in the archive
Quoted 6 lines · Thierry Reding

By default these clocks are children of pll_m, but in downstream kernels they are reparented to pll_c. While at it, decrease their frequencies to 300 MHz because the defaults aren't in the specified range.

gr2d can reportedly run at much higher frequencies, but 300 MHz works and is a more conservative default.

Applied to Tegra's for-3.10/clk branch. I assumed that Peter's and Mike's acks carried over to V2.

#3 lore raw
In reply to a message not in the archive
Quoted 35 lines · Thierry Reding

By default these clocks are children of pll_m, but in downstream kernels they are reparented to pll_c. While at it, decrease their frequencies to 300 MHz because the defaults aren't in the specified range.

gr2d can reportedly run at much higher frequencies, but 300 MHz works and is a more conservative default.

---
Changes in v2:
- make the same changes for Tegra30

 drivers/clk/tegra/clk-tegra20.c | 2 ++
 drivers/clk/tegra/clk-tegra30.c | 2 ++
 2 files changed, 4 insertions(+)
drivers/clk/tegra/clk-tegra20.c +2 -0
index bf19400..b020beb 100644
@@ -1247,6 +1247,8 @@ static __initdata struct tegra_clk_init_table init_table[] = {
 	{host1x, pll_c, 150000000, 0},
 	{disp1, pll_p, 600000000, 0},
 	{disp2, pll_p, 600000000, 0},
+	{gr2d, pll_c, 300000000, 0},
+	{gr3d, pll_c, 300000000, 0},
 	{clk_max, clk_max, 0, 0}, /* This MUST be the last entry */
 };
 
drivers/clk/tegra/clk-tegra30.c +0 -0
index ba6f51b..b8b241d 100644

drivers/clk/tegra/clk-tegra30.c static __initdata struct tegra_clk_init_table init_table[] = { · line 1918

Quoted 8 lines
drivers/clk/tegra/clk-tegra30.c +2 -0
@@ -1911,6 +1911,8 @@ static __initdata struct tegra_clk_init_table init_table[] = {
 	{disp1, pll_p, 600000000, 0},
 	{disp2, pll_p, 600000000, 0},
 	{twd, clk_max, 0, 1},
+	{gr2d, pll_c, 300000000, 0},
+	{gr3d, pll_c, 300000000, 0},
 	{clk_max, clk_max, 0, 0}, /* This MUST be the last entry. */
 };
 

Thanks, looks good.

Terje