]> git.baikalelectronics.ru Git - kernel.git/commit
clk: convert ARM RealView to common clk
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 6 Aug 2012 16:32:08 +0000 (18:32 +0200)
committerMike Turquette <mturquette@linaro.org>
Sat, 25 Aug 2012 00:42:10 +0000 (17:42 -0700)
commit89e41bdd0f1de93a38f0928c01f89e0c94b61c2c
treeed001ee708df4131ccbefd4f7a98756ce860aa5d
parente37b0e26d93166bc6a580fc7ff169feffffeddb1
clk: convert ARM RealView to common clk

This converts the ARM RealView machine over to using the common
clock. The approach is similar to the one used for the Integrator,
and we're reusing the ICST wrapper code.

We have to put the clock intialization in the timer init function
for the clocks to be available when initializing the timer,
keeping them in early_init() is too early for the common clk.

Since we now have to go down and compile drivers/clk/versatile
a CONFIG_COMMON_CLK_VERSATILE symbol has been added so the proper
code gets compiled into the kernel for either machine. A leftover
CLK_VERSATILE in the Integrator Kconfig was fixed up to use
the new symbol as well.

Tested on ARM RealView PB1176.

Cc: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
13 files changed:
arch/arm/Kconfig
arch/arm/mach-realview/core.c
arch/arm/mach-realview/include/mach/clkdev.h [deleted file]
arch/arm/mach-realview/realview_eb.c
arch/arm/mach-realview/realview_pb1176.c
arch/arm/mach-realview/realview_pb11mp.c
arch/arm/mach-realview/realview_pba8.c
arch/arm/mach-realview/realview_pbx.c
drivers/clk/Kconfig
drivers/clk/Makefile
drivers/clk/versatile/Makefile
drivers/clk/versatile/clk-realview.c [new file with mode: 0644]
include/linux/platform_data/clk-realview.h [new file with mode: 0644]