[PATCH] OMAP3: set the core dpll clk rate in its set_rate function.
Avinash.H.M
avinashhm at ti.com
Mon May 9 08:29:40 EDT 2011
The debug l3_ick/rate is not displaying the actual rate of the clock in
hardware. This is because, the core dpll set_rate function doesn't update the
clk.rate. After fixing, the l3_ick/rate is displaying proper values.
Signed-off-by: Shweta Gulati <shweta.gulati at ti.com>
Signed-off-by: Avinash.H.M <avinashhm at ti.com>
Cc: Rajendra Nayak <rnayak at ti.com>
Cc: Paul Wamsley <paul at pwsan.com>
---
* The patch is based on v2.6.39-rc6
* The patch is tested on zoom3.
* The patch is based on discussions from
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg48518.html
arch/arm/mach-omap2/clkt34xx_dpll3m2.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/clkt34xx_dpll3m2.c b/arch/arm/mach-omap2/clkt34xx_dpll3m2.c
index b10d9ef..2a77faf 100644
--- a/arch/arm/mach-omap2/clkt34xx_dpll3m2.c
+++ b/arch/arm/mach-omap2/clkt34xx_dpll3m2.c
@@ -118,6 +118,7 @@ int omap3_core_dpll_m2_set_rate(struct clk *clk, unsigned long rate)
sdrc_cs0->rfr_ctrl, sdrc_cs0->actim_ctrla,
sdrc_cs0->actim_ctrlb, sdrc_cs0->mr,
0, 0, 0, 0);
+ clk->rate = rate;
return 0;
}
--
1.7.1
More information about the linux-arm-kernel
mailing list