clk: add of_clk_src_onecell_get() support
authorShawn Guo <shawn.guo@linaro.org>
Wed, 22 Aug 2012 13:36:27 +0000 (21:36 +0800)
committerMike Turquette <mturquette@linaro.org>
Sat, 8 Sep 2012 01:30:19 +0000 (18:30 -0700)
For those SoCs that have hundreds of clock outputs, their clock
DT bindings could reasonably define #clock-cells as 1 and require
the client device specify the index of the clock it consumes in the
cell of its "clocks" phandle.

Add a generic of_clk_src_onecell_get() function for this purpose.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>

No differences found