-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: integrator: switch to fetch clocks from device tree
This atomic commit changes the Integrator clock implementation and the machines to register clocks from the device tree and use these instead of the previous hard-coded clocks. In the clock implementation all hard-coded clocks and the special initialization function call goes away, and is replaced by two compatible strings for the two clocks available on the core module. Cc: Mike Turquette <mturquette@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
- Loading branch information
Linus Walleij
committed
Feb 13, 2014
1 parent
9cf3138
commit 09c978b
Showing
5 changed files
with
80 additions
and
60 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
Documentation/devicetree/bindings/clock/arm-integrator.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Clock bindings for ARM Integrator Core Module clocks | ||
|
||
Auxilary Oscillator Clock | ||
|
||
This is a configurable clock fed from a 24 MHz chrystal, | ||
used for generating e.g. video clocks. It is located on the | ||
core module and there is only one of these. | ||
|
||
This clock node *must* be a subnode of the core module, since | ||
it obtains the base address for it's address range from its | ||
parent node. | ||
|
||
|
||
Required properties: | ||
- compatible: must be "arm,integrator-cm-auxosc" | ||
- #clock-cells: must be <0> | ||
|
||
Optional properties: | ||
- clocks: parent clock(s) | ||
|
||
Example: | ||
|
||
core-module@10000000 { | ||
xtal24mhz: xtal24mhz@24M { | ||
#clock-cells = <0>; | ||
compatible = "fixed-clock"; | ||
clock-frequency = <24000000>; | ||
}; | ||
auxosc: cm_aux_osc@25M { | ||
#clock-cells = <0>; | ||
compatible = "arm,integrator-cm-auxosc"; | ||
clocks = <&xtal24mhz>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
void integrator_clk_init(bool is_cp); | ||
void integrator_impd1_clk_init(void __iomem *base, unsigned int id); | ||
void integrator_impd1_clk_exit(unsigned int id); |