clk: vexpress: Add separate SP810 driver
authorPawel Moll <pawel.moll@arm.com>
Thu, 18 Apr 2013 17:23:22 +0000 (18:23 +0100)
committerMike Turquette <mturquette@linaro.org>
Thu, 18 Apr 2013 18:41:10 +0000 (11:41 -0700)
commit6e973d2c438502dcf956e76305258ba7d1c7d1d3
treee9b85815c35794b1b3a219e4ae755bfca2319f4a
parent476ba5ffa412cc170aa20fd135648b8f14a4baef
clk: vexpress: Add separate SP810 driver

Factor out the SP810 clocking code into a separate driver,
selecting better (faster) parent at clk_prepare() time.
This is to avoid problems with clocking infrastructure
initialisation order, in particular to avoid dependency
of fixed clock being initialized before SP810. It also
makes vexpress platform OF-based clock initialisation code
unnecessary.

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Tested-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
[mturquette@linaro.org: add .unprepare, FIXME comment, cleaned up code]
arch/arm/mach-vexpress/v2m.c
drivers/clk/versatile/Makefile
drivers/clk/versatile/clk-sp810.c [new file with mode: 0644]
drivers/clk/versatile/clk-vexpress.c