ARM: zynq: add clk binding support to the ttc

Add support for retrieving TTC configuration from device tree.  This
includes the ability to pull information about the driving clocks from
the of_clk bindings.

Signed-off-by: Josh Cartwright <josh.cartwright@ni.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
Josh Cartwright
2012-10-31 13:56:14 -06:00
committed by Michal Simek
parent 0f586fbf6f
commit 91dc985c5e
3 changed files with 224 additions and 118 deletions

View File

@@ -32,3 +32,13 @@
&ps_clk {
clock-frequency = <33333330>;
};
&ttc0_0 {
status = "ok";
compatible = "xlnx,ttc-counter-clocksource";
};
&ttc0_1 {
status = "ok";
compatible = "xlnx,ttc-counter-clockevent";
};