arm: socfpga: clock: Trim down code duplication
authorMarek Vasut <marex@denx.de>
Sat, 13 Sep 2014 06:27:16 +0000 (08:27 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 6 Oct 2014 15:46:49 +0000 (17:46 +0200)
commit5d8ad0cd3a472f9eaa3b8c63b6ad5d889fce6183
tree119200ab014f3351e3c344f0f351416019bf0f3f
parenta832ddba55f79801b6f75b79e96c3f5e1469335a
arm: socfpga: clock: Trim down code duplication

Pull out functions to read frequency of Main clock VCO and
PLL clock VCO as the code is duplicated multiple times.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@altera.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Tom Rini <trini@ti.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Pavel Machek <pavel@denx.de>
Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Acked-by: Pavel Machek <pavel@denx.de>
arch/arm/cpu/armv7/socfpga/clock_manager.c