davinci: support changing the clock rate in clock framework
authorSekhar Nori <nsekhar@ti.com>
Mon, 31 Aug 2009 10:18:03 +0000 (15:48 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 25 Nov 2009 18:21:20 +0000 (10:21 -0800)
commitd6a61563f9e934ef20a1338780082f63802c8908
tree543d650b9c87c6a63974db565d803ad26bf1ee38
parentde381a91f544008f4f99571e2ef1f60b92d5f0cf
davinci: support changing the clock rate in clock framework

clk_round_rate, clk_set_rate have been updated to handle dynamic
frequency changes.

The motivation behind the changes is to support dynamic CPU frequency
change.

davinci_set_pllrate() changes the PLL rate of a given PLL. This function
has been presented as a generic function though it has been tested only
on OMAP-L138 EVM. No other currently available DaVinci device will probably
use this function, but any future device specific changes will hopefully be
small enough to get taken care using a cpu_is_xxx() macro.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/clock.c
arch/arm/mach-davinci/clock.h