]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
OMAP3 clock: add omap3_core_dpll_m2_set_rate()
authorPaul Walmsley <paul@pwsan.com>
Tue, 8 Jul 2008 02:55:13 +0000 (20:55 -0600)
committerTony Lindgren <tony@atomide.com>
Tue, 5 Aug 2008 12:12:47 +0000 (15:12 +0300)
commit7f8b2b0f4fe52238c67d79dedcd2794dcef4dddd
tree6692002066af542d583a1a2f0723a4a7152308cf
parent0473ee36850f8e6d2386341764b8eb883f973b82
OMAP3 clock: add omap3_core_dpll_m2_set_rate()

Add the omap3_core_dpll_m2_set_rate() function to the OMAP3 clock code,
which calls into the SRAM function omap3_sram_configure_core_dpll() to
change the CORE DPLL M2 divider.  (SRAM code is necessary since rate changes
on clocks upstream from the SDRC can glitch SDRAM accesses.)

Use this function for the set_rate function pointer in the dpll3_m2_ck
struct clk.  With this function in place, PM/OPP code should be able to
alter SDRAM speed via code similar to:

      clk_set_rate(&dpll3_m2_ck, target_rate).

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock34xx.c
arch/arm/mach-omap2/clock34xx.h