clk: ti: change clock init to use generic of_clk_init
authorTero Kristo <t-kristo@ti.com>
Fri, 12 Sep 2014 12:01:57 +0000 (15:01 +0300)
committerTero Kristo <t-kristo@ti.com>
Mon, 29 Sep 2014 08:51:13 +0000 (11:51 +0300)
commitc08ee14cc6634457948bc5e26584697208baa02a
tree67c01eedd8ea2c125ea462653e3d4ba8969f24c4
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9
clk: ti: change clock init to use generic of_clk_init

Previously, the TI clock driver initialized all the clocks hierarchically
under each separate clock provider node. Now, each clock that requires
IO access will instead check their parent node to find out which IO range
to use.

This patch allows the TI clock driver to use a few new features provided
by the generic of_clk_init, and also allows registration of clock nodes
outside the clock hierarchy (for example, any external clocks.)

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Cc: Mike Turquette <mturquette@linaro.org>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Jyri Sarha <jsarha@ti.com>
Cc: Stefan Assmann <sassmann@kpanic.de>
Acked-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/io.c
arch/arm/mach-omap2/prm_common.c
drivers/clk/ti/clk.c
include/linux/clk/ti.h