davinci: make clock rate re-calculation easy
authorSekhar Nori <nsekhar@ti.com>
Mon, 31 Aug 2009 10:18:02 +0000 (15:48 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 25 Nov 2009 18:21:20 +0000 (10:21 -0800)
commitde381a91f544008f4f99571e2ef1f60b92d5f0cf
treef15d31d2a7de9379e3fac9300eb2a2a190eab4a4
parentf02bf3b396846f3da60b4962aeaae8652e20f0dd
davinci: make clock rate re-calculation easy

Make clock rate recalculation easy by having a re-calculate
function for each clock.

The existing functions for calculation of output rates of PLL
and PLL-derived sysclks have been convered to the new
re-calculate API.

A new function is introduced to take care of rate
(re)calculation for leaf clocks.

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