Skip to content
Commit 494bfec9 authored by Shawn Guo's avatar Shawn Guo Committed by Mike Turquette
Browse files

clk: add of_clk_src_onecell_get() support



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: default avatarShawn Guo <shawn.guo@linaro.org>
Reviewed-by: default avatarRob Herring <rob.herring@calxeda.com>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent 09b9b2b2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment