Skip to contentSkip to conversation

ARM: tegra30: clocks: add AHB and APB clocks

PATCH New Joseph Lo 2 participants 2 messages Oct 29, 2012

Subsystems (3)
lore
Share & tools
lore

Joseph Lo

author
#0 lore raw

PATCH v2 1/1 ARM: tegra30: clocks: add AHB and APB clocks

Adding the AHB and APB bus clock for Tegra30.

---
V2:
* fix the round_rate func when "rate >= parent_rate"

---
 arch/arm/mach-tegra/common.c              |    4 +
 arch/arm/mach-tegra/tegra30_clocks.c      |  106 +++++++++++++++++++++++++++++
 arch/arm/mach-tegra/tegra30_clocks.h      |    1 +
 arch/arm/mach-tegra/tegra30_clocks_data.c |   46 +++++++++++++
 4 files changed, 157 insertions(+), 0 deletions(-)
arch/arm/mach-tegra/common.c +4 -0
index 0b0a5f5..177f164 100644
@@ -104,6 +104,10 @@ static __initdata struct tegra_clk_init_table tegra30_clk_init_table[] = {
 	{ "clk_m",	NULL,		0,		true },
 	{ "pll_p",	"clk_m",	408000000,	true },
 	{ "pll_p_out1",	"pll_p",	9600000,	true },
+	{ "pll_p_out4",	"pll_p",	102000000,	true },
+	{ "sclk",	"pll_p_out4",	102000000,	true },
+	{ "hclk",	"sclk",		102000000,	true },
+	{ "pclk",	"hclk",		51000000,	true },
 	{ NULL,		NULL,		0,		0},
 };
 #endif
arch/arm/mach-tegra/tegra30_clocks.c +106 -0

112 lines not on this page · raw message

arch/arm/mach-tegra/tegra30_clocks.h +1 -0
index f2f88fe..7a34adb 100644
@@ -34,6 +34,7 @@ extern struct clk_ops tegra_clk_out_ops;
 extern struct clk_ops tegra30_super_ops;
 extern struct clk_ops tegra30_blink_clk_ops;
 extern struct clk_ops tegra30_twd_ops;
+extern struct clk_ops tegra30_bus_ops;
 extern struct clk_ops tegra30_periph_clk_ops;
 extern struct clk_ops tegra30_dsib_clk_ops;
 extern struct clk_ops tegra_nand_clk_ops;
arch/arm/mach-tegra/tegra30_clocks_data.c +46 -0

58 lines not on this page · raw message

Signature · 1 line
1.7.0.4
#1 lore raw

PATCH v2 1/1 ARM: tegra30: clocks: add AHB and APB clocks

Quoted 1 line · Joseph Lo

Adding the AHB and APB bus clock for Tegra30.

I have applied this to Tegra's tree for 3.8. Thanks.