-
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.
metag: init common clk and use "core" clk
If the common clock framework is enabled, call of_clk_init(NULL) in time_init() to register device tree clocks with the clock framework. After this time_init() calls a new function init_metag_clocks(), which looks for a clock named "core" in the node compatible with "img,meta" (usually the root node). If found the get_core_freq machine callback is overridden to obtain the core clock frequency using that clock. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Mike Turquette <mturquette@linaro.org> Cc: Grant Likely <grant.likely@linaro.org> Cc: Rob Herring <rob.herring@calxeda.com> Cc: devicetree-discuss@lists.ozlabs.org
- Loading branch information
James Hogan
committed
Jun 13, 2013
1 parent
c24d297
commit caa279d
Showing
4 changed files
with
106 additions
and
3 deletions.
There are no files selected for viewing
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,30 @@ | ||
* Meta Processor Binding | ||
|
||
This binding specifies what properties must be available in the device tree | ||
representation of a Meta Processor Core, which is the root node in the tree. | ||
|
||
Required properties: | ||
|
||
- compatible: Specifies the compatibility list for the Meta processor. | ||
The type shall be <string> and the value shall include "img,meta". | ||
|
||
Optional properties: | ||
|
||
- clocks: Clock consumer specifiers as described in | ||
Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
|
||
- clock-names: Clock consumer names as described in | ||
Documentation/devicetree/bindings/clock/clock-bindings.txt. | ||
|
||
Clocks are identified by name. Valid clocks are: | ||
|
||
- "core": The Meta core clock from which the Meta timers are derived. | ||
|
||
* Examples | ||
|
||
/ { | ||
compatible = "toumaz,tz1090", "img,meta"; | ||
|
||
clocks = <&meta_core_clk>; | ||
clock-names = "core"; | ||
}; |
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