]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[ARM] OMAP3 clock: add omap3_core_dpll_m2_set_rate()
authorPaul Walmsley <paul@pwsan.com>
Wed, 28 Jan 2009 19:27:42 +0000 (12:27 -0700)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 8 Feb 2009 17:50:40 +0000 (17:50 +0000)
commit0eafd4725cf5d828e76e474b8991a228bbdd3f2b
tree797186618cb16d1ddb3f42a1ac9c9d4f84bdc7c1
parent87246b7567f7d1951bfcea29875523ef435c0ebf
[ARM] 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).

linux-omap source commit is 7f8b2b0f4fe52238c67d79dedcd2794dcef4dddd.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap2/clock34xx.c
arch/arm/mach-omap2/clock34xx.h