]> git.baikalelectronics.ru Git - kernel.git/commit
clk: socfpga: fix clock driver for 3.15
authorDinh Nguyen <dinguyen@altera.com>
Mon, 14 Apr 2014 12:59:32 +0000 (07:59 -0500)
committerMike Turquette <mturquette@linaro.org>
Wed, 30 Apr 2014 18:44:01 +0000 (11:44 -0700)
commit1e336fe20a254720ad66097098b0831054ff2f4a
treecc53c7037909941ef532dab93e1bf7de15d9f7ec
parenta7563090e73b40f192e8d59084ab7d606cee6737
clk: socfpga: fix clock driver for 3.15

commit [dcd3d9dfc clk: respect the clock dependencies in of_clk_init]
exposed a flaw in the socfpga clock driver and prevents the platform
from booting on 3.15-rc1.

Because the "altr,clk-mgr" is not really a clock, it should not be using
CLK_OF_DECLARE, instead we should be mapping the clk-mgr's base address
one of the functional clock init function. Use the socfpga_pll_init function
to map the clk_mgr_base_addr as this clock should always be initialized first.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
Tested-by: Pavel Machek <pavel@denx.de>
drivers/clk/socfpga/clk-pll.c
drivers/clk/socfpga/clk.c