Commit 1887c3a6 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Mike Turquette

clk: axi-clkgen: Add support for v2

This patch adds support for the new v2 version of the axi-clkgen core.
Unfortunately the method of accessing the registers is quite different on v2,
while the content still stays largely the same. So the patch adds a small
abstraction layer which implements the specific read and write functions for v1
and v2 in callback functions.
Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
parent 62ac983b
...@@ -5,7 +5,7 @@ This binding uses the common clock binding[1]. ...@@ -5,7 +5,7 @@ This binding uses the common clock binding[1].
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
Required properties: Required properties:
- compatible : shall be "adi,axi-clkgen". - compatible : shall be "adi,axi-clkgen-1.00.a" or "adi,axi-clkgen-2.00.a".
- #clock-cells : from common clock binding; Should always be set to 0. - #clock-cells : from common clock binding; Should always be set to 0.
- reg : Address and length of the axi-clkgen register set. - reg : Address and length of the axi-clkgen register set.
- clocks : Phandle and clock specifier for the parent clock. - clocks : Phandle and clock specifier for the parent clock.
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment